UpdateLoginProfile

iam:UpdateLoginProfile to reset the console password of a more privileged user and take over their sign-in.

ဖတ်ချိန် ၁ မိနစ်၂၀၂၆ အောက် ၅ တွင် ပြင်ဆင်ခဲ့သည်florianametteပါဝင်ကူညီသူ ၁ ဦး
သင့်လက်ထောက်တွင် မေးရန် (MCP)GitHub တွင် ပြင်ရန်

iam:UpdateLoginProfile resets the console password of a user that already has a login profile. Against a more privileged user, set a password you know and sign in as them.

Reset the password#

bash
aws iam update-login-profile --user-name <privileged-user> \
  --password 'Newpass123!' --no-password-reset-required

Exploitation notes#

  • This is disruptive if the user actively signs in, since their old password stops working, so it is a deliberate choice against accounts that are not in interactive use.
  • If the target has no profile yet, use CreateLoginProfile instead.
  • Console MFA, where enforced, still gates sign-in even after a password reset.

Tools#

  • AWS CLI (iam update-login-profile).
  • Pacu (iam__privesc_scan).

References#