Skip to content
Access control Write-up Beginner

Profile Avatar Unlock vulnerability

A profile avatar picker showed some avatars as locked, but the server did not check which avatar was submitted. An attacker could swap the filename of an unlocked avatar for a locked one in the request and use avatars they were not entitled to.

medium.com

Published on medium.com

so while testing a private program, i found an interesting thing on profile change, so i try to change avatar there a so many avatar’s but most of are locked, so i can’t use them, but mujhe tu vahi karna hai jiske liya mujhe roka jaye,

Ajay Kumar, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Impact

A user could set a locked avatar that was meant to be unavailable, though the tester notes the affected domain was out of scope.

What the attacker needed

An account on the site; ability to intercept requests

How it was found

  1. Pick an unlocked avatar and capture the profile update request.
  2. Inspect the page to find the filename of a locked avatar.
  3. Replace the unlocked avatar filename in the request with the locked one.
  4. Forward the request and observe the locked avatar applied.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A website offered a set of profile pictures, with some marked as locked. The page only hid those pictures in the browser, but the server accepted any picture name sent to it. By editing the request, the tester used a locked picture anyway.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.