Clickjacking on donation page
The donation page could be embedded in an attacker's iframe because it lacked frame protection. An attacker could trick a victim into clicking a donation button that redirected the payment to the attacker's own PayPal account.
b0d8e6c576cada9bb87be7b Follow
Originally disclosed on HackerOne
- Fixed in 6 hours
- Paid in 3 days
- Disclosed after 4 days
Description:
Vulnerable URL: https://wordpressfoundation.org/donate/
Clickjacking on the vulnerable URL allows an attacker to redirect a victim to do a donation at an attacker's page.
Steps To Reproduce:
- To test whether the page is vulnerable to clickjacking or not use this code
- To test whether an attacker is able to trick the victim to donate money to the attacker's payment gateway i) Open the attached page "donation.html " ii) Click on the button give once iii) The page will be redirected to the attacker's PayPal money request page.
*Sorry for the bad UI and please remove my payment-request id after the vulnerability check from donation.html page.
Recommendations
To control where your site can be embedded, use the frame-ancestors directive: Content-Security-Policy: frame-ancestors 'none' (The page cannot be displayed in a frame, regardless of the site attempting to do so.) Content-Security-Policy: frame-ancestors 'self' (The page can only be displayed in a frame on the same origin as the page itself.) Content-Security-Policy: frame-ancestors uri (The page can only be displayed in a frame on the specified origins.)
Impact
If an attacker is successful in tricking the victim to a click jacked page. He can trick the victim to donate money to the attacker's account. An attacker may also craft a page to gather victim's information, He may use also use BEEF hook id to take control of victim's browser.
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 donation page did not send headers or a CSP directive that prevents other sites from embedding it in a frame.
Impact
An attacker could trick a victim into donating money to the attacker's account, and may also gather victim information or use a browser exploitation tool to control the victim's browser.
What the attacker needed
Victim visits attacker's page; victim clicks a button
How it was found
- Create an HTML page that loads the donation URL in an iframe.
- Open the attacker's page and click the 'give once' button.
- The page redirects to the attacker's PayPal money request page.
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.
Clickjacking is when a malicious site loads a real site in an invisible or disguised frame, so your clicks go to the real site without you realising. Here, the donation page could be framed, letting an attacker overlay it and make a victim donate to the attacker's payment page instead of the charity.
What is UI spoofing?
The interface lies to the user: a framed page catches their clicks, or a browser shows the wrong address or a fake prompt. Paid when it leads to a sensitive action or convincing phishing.