Order-phishing via Payment ID URL
The payment page accepted an order ID as a GET parameter, allowing an attacker to craft a link that would make a victim pay for the attacker's order. The researcher described this as a phishing attack, though the impact was limited because the form was available to anonymous users.
- Triaged in under an hour
- Disclosed after 7 hours
Summary by the researcher
The issue discovered was trivial, and did not present much security impact (as the form was available for anonymous users).
It was one of the my early reports here (my 1st week on H1 with zero knowledge), with a lot of technical mistakes, so enjoy the reading :D. Here is the funniest quote:
Basically it is not usual CSRF, but modified kind of CSRF (with GET scenario, since the POST scenario not works due to X-Frame-Options set to SAMEORIGIN)
Thanks to @albinowax for being patient with me. It was very important for me in those early days
The report
Hello. I discovered the endpoint, which allows the attacker conduct the fishing attack to other users and they can pay for attacker's order. Why this can happen? On the site, order id parameter sends to the https://portswigger.net/CCPayment.aspx as POST, but attacker can append it as GET and it will works:
Example: https://portswigger.net/CCPayment.aspx?id=DD6BE85CDD50DC829C0354F83E5C67
Steps to reproduce:
- Go to the https://portswigger.net/buy/ and fill the form.
- Click "Confirm details".
- Click "Pay by credit card".
- Catch the POST request from ССpayment.aspx with order id:
POST /CCPayment.aspx HTTP/1.1 [...Headers...]
id=05BC4BF36F9BB32E80F4B581BF4859
- Now append the id as GET parameter. You will have link like https://portswigger.net/CCPayment.aspx?id=05BC4BF36F9BB32E80F4B581BF4859
- Now you can conduct phishing attack with this link, and users can pay for your order.
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 payment page accepted the order ID as a GET parameter, enabling an attacker to share a link that charges a victim for the attacker's order.
Impact
An attacker could trick a victim into paying for the attacker's order via a crafted link, though the form was available to anonymous users and the researcher noted the issue did not present much security impact.
What the attacker needed
Victim clicks a link; victim completes payment
How it was found
- Go to the buy page and fill the form.
- Click 'Confirm details'.
- Click 'Pay by credit card'.
- Capture the POST request to CCPayment.aspx containing the order id.
- Append the id as a GET parameter to form a link.
- Use the link in a phishing attack so victims pay for the attacker's order.
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.
When you buy something online, the payment page often uses an order number to know what you're paying for. Here, that order number could be put directly into a web link. An attacker could send that link to someone else, and if they clicked it and paid, the money would go to the attacker's order instead of their own. This is a kind of trick called phishing, where attackers fool people into doing something harmful.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.