Disrupting an Application’s User Registration Process in 10 mins
The profile update endpoint accepted an email address and username supplied by the client, so a user could change their account's email to another person's address without verification. An attacker could then log in with their old email while the profile showed the victim's email, disrupting account registration and attribution.
Published on infosecwriteups.com
So let's start with the introduction of our target. The target that I was hunting on is an e-commerce website.
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
Likely the server trusted client-supplied emailAddress and username fields in the profile update request without verifying ownership or requiring a confirmation step.
Impact
An attacker could set another person's email address on their own account, so later actions were logged under the victim's identity, and no notification was sent to the victim; the attacker could still log in with their old email.
What the attacker needed
A free account; ability to intercept HTTP requests
The fix
The server should not accept client-supplied email or username changes without verifying ownership, for example by requiring a confirmation link sent to the new address.
How it was found
- Create and verify an account on the target site.
- Open the edit profile page and change any basic detail.
- Intercept the save request in a proxy tool.
- Replace the email address and username values with the victim's email address.
- Forward the request and observe the profile now shows the victim's email.
- Log out and log in again with the original attacker email to confirm it still works.
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.
When you edit your profile, the website sends a request to its server containing your details. Here the server trusted whatever email address the browser sent, instead of checking that the user is allowed to change it. That let one person put someone else's email on their own account.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.