Foreman(フォーマン)で認可不備の脆弱性、他ユーザーのアクセストークンを不正に作成されるおそれ
Summary
Foremanのパーソナルアクセストークン発行APIに認可不備があり、権限を持つ利用者が他のユーザーの名義でトークンを作成できます。作られたトークンで被害者になりすまされ、管理者アカウントを含むアカウントを乗っ取られるおそれがあります。CVSSは8.8で、修正版の有無は事実に含まれていないため、最新の情報を確認してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Foremanのパーソナルアクセストークン発行APIに認可不備があり、権限を持つ利用者が他のユーザーの名義でトークンを作成できます。作られたトークンで被害者になりすまされ、管理者アカウントを含むアカウントを乗っ取られるおそれがあります。CVSSは8.8で、修正版の有無は事実に含まれていないため、最新の情報を確認してください。
Original description The description as published by the source.
A flaw was found in Foreman’s Api::V2::PersonalAccessTokensController, where Foreman::Controller::UserAware#find_user resolves the target account using User.find(params[:user_id]) without applying the required parent-user authorization check. An attacker with the create_personal_access_tokens permission can therefore invoke POST /api/v2/users/:user_id/personal_access_tokens with another user’s ID and create a Personal Access Token on their behalf. The resulting plaintext token is returned in the API response, while PersonalAccessToken#check_permissions_after_save only validates create_personal_access_tokens on the token and does not enforce edit_users authorization on the target user. The attacker can then use the forged token to authenticate as the victim, potentially resulting in complete account takeover, including administrator accounts.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- web secalert@redhat.com
- web secalert@redhat.com
- web nvd.nist.gov
- web github.com
- web secalert@redhat.com
- web secalert@redhat.com
- web secalert@redhat.com