How I was able to spoof any Instagram username on Instagram shop
The Instagram shop invoice feature used a client-supplied merchant_id parameter to display the seller's username and avatar, without verifying that the sender controlled that merchant account. An attacker could set merchant_id to any Instagram user's ID, making the invoice appear to come from a verified account and helping them trick victims into believing a purchase was legitimate.
Published on medium.com
After i saw “merchantid” parameter i went and tried again and intercepted the HTTP request then switched the “merchantid” parameter to another Instagram account’s user id and guess what.. It worked!
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 the client-supplied merchant_id parameter to determine the displayed seller identity without verifying that the sender owned that merchant account.
Impact
An attacker could make an invoice appear to come from any Instagram account, including verified ones, which could help them trick victims into believing a purchase was legitimate.
What the attacker needed
Instagram account; Ability to send direct messages; Victim receives the invoice
The fix
The bug was fixed by the vendor, as the report timeline states it was patched.
How it was found
- Find the invoice feature in Instagram direct messages.
- Intercept the HTTP request that sends the invoice.
- Change the merchant_id parameter to another Instagram user's ID.
- Send the invoice and observe that the receiver sees the spoofed username and avatar.
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 receive an invoice in Instagram direct messages, the app shows the seller's name and picture. The app trusted a hidden value in the request to decide which seller to show, instead of checking that the sender actually owned that seller account. So an attacker could change that value to any user's ID and make the invoice look like it came from a verified 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.