Skip to content
Access control Write-up Beginner

Simple & Sweet: Bypass email update restriction to change emails of team members

The email field on the user edit form was made read-only only in the browser, with no server-side check. An admin could remove the read-only attribute and change another team member's email address, which the workflow did not allow.

Sunil Yedla Follow

Published on sunilyedla.medium.com

Hello everyone, I hope you all are healthy and safe. Today I would like to explain my recent find that I have found in 1st week of Jan this year.

Sunil Yedla, on sunilyedla.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

Root cause

The application relied on a client-side read-only attribute to prevent email changes and did not enforce the restriction on the server.

Impact

An admin could change the email address of any other team member, which the workflow did not permit; the victim could still log in with old credentials, but actions would be recorded with the attacker-updated email.

What the attacker needed

Admin role account; access to the user edit form

How it was found

  1. Go to the all users list and open the edit profile page for another user.
  2. Inspect the email field and remove the read-only attribute.
  3. Enter a new email address and submit the form.
  4. The email address is updated successfully.

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.

Some websites try to stop you changing a field by making it read-only in the page you see. But if the server does not check again when the form is sent, you can remove that restriction using browser developer tools and the change goes through. Here an admin could change another user's email even though the site said only the user should be able to.

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.

More by Sunil Yedla

View all

5 more disclosed reports, best first.

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.