No error thrown when IDOR attempted while editing address
When a user tried to edit another user's address, the server did not reject the request and instead created a new address on the attacker's own account. Repeating the request with many threads caused large numbers of addresses to be created and the site to return a 503 error.
- Triaged in 3 days
- Fixed in 2 months
- Disclosed after 3 months
Summary:
demo.openmage.org application having features to add, edit and delete addresses. When a user tries to edit the address of another user, the server adds a new address with a new id on the attacker's account. By sending it to an intruder, an attacker may cause Dos.
Steps To Reproduce:
- Create two user accounts demo.openmage.org with different emails
- Add addresses on both accounts
- Edit the address on account 1 and capture the request on burp and send it to the repeater
- Replace the ID of the address on both GET request and referee header with the ID of the address of the account 2
- Submit the request, Now you can see a new address is added on account 1 with a new ID.
(here, when an attacker try to edit the address of another user, the server should not create new address) 6. Now Send the same request to intruder with the id of the address of the victim, and set payload as null byte 7. Start attack with min 60 threads 8. Now you can see many addresses is added on user account 1. and soon you will see 503 Error code
Supporting Material/References:
Kazam_screencast_00000.mp4 From the original on HackerOne
Impact
- It may cause Dos
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the edit endpoint did not verify that the address being edited belonged to the requesting user, and it fell back to creating a new address instead of rejecting the request.
Impact
Repeated requests could create large numbers of addresses and cause a denial of service, shown by the site returning a 503 error.
What the attacker needed
Two free accounts; ability to intercept requests
How it was found
- Create two accounts with different email addresses and add an address to each.
- Capture the request sent when editing an address on the first account and send it to the repeater.
- Replace the address identifier in the request and in the referer header with the identifier of the second account's address.
- Submit the request and observe that a new address is created on the first account.
- Send the same request to the intruder with a null byte payload and at least 60 threads.
- Observe many addresses being created on the first account and eventually a 503 error.
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 report has not been written yet. The Original tab links to the source.
An address book lets you save delivery details. Normally the server should check that an address belongs to you before letting you change it. Here it did not check properly, so a request aimed at someone else's address quietly made a copy on the sender's account, and sending that request many times at once filled the account and overloaded the site.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.