Skip to content
UI spoofing Disclosed report Beginner

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:

  1. To test whether the page is vulnerable to clickjacking or not use this code
<!DOCTYPE HTML> <html lang="en-US"> <head> <meta charset="UTF-8"> <meta http-equiv="refresh" content="5"> <title>i Frame</title> </head> <body> <center><h1>THIS PAGE IS VULNERABLE TO CLICKJACKING</h1> <iframe src="https://wordpressfoundation.org/donate/" frameborder="0 px" height="1200px" width="1920px"></iframe> </center> </body> </html>
  1. 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.

The original report as published on HackerOne, by b0d8e6c576cada9bb87be7b. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Create an HTML page that loads the donation URL in an iframe.
  2. Open the attacker's page and click the 'give once' button.
  3. 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.

More from WordPress

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Clickjacking and UI spoofing

The lesson behind this report.

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.