Skip to content
XSS Disclosed report Beginner

Error Page Text Injection #106350

An error page reflected attacker-controlled text from the URL path, allowing a crafted link to display a message directing users to an external site. The attacker could trick a victim into visiting a malicious domain via the injected text.

geekboy Follow

Originally disclosed on HackerOne

  • Triaged in 28 hours
  • Fixed in 34 days
  • Paid in 35 days
  • Disclosed after 58 days

Hello Team ,

####Description : This report is similar to #106350 , as we can see in report an user or attacker is able to inject his text into error page and can trap to user to visit other site by adding following link /test/%2f../It%20has%20been%20changed%20by%20a%20new%20one%20https://www.Attacker.com%20so%20go%20to%20the%20new%20one%20since%20this%20one after the Domain name , and it got fixed after that report with static 404 error page ,

but i got place where old fix is not getting apply , so i hope u will like to fix this too .

####POC URL : https://withinsecurity.com/wp-admin/test/%2f../It%20has%20been%20changed%20by%20a%20new%20one%20https://www.Attacker.com%20so%20go%20to%20the%20new%20one%20since%20this%20one

Please let me know if any more info needed !

Thank You Geekboy :)

Attachments

withinsecurity.com.PNG
withinsecurity.com.PNG From the original on HackerOne

The original report as published on HackerOne, by geekboy. 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 error page reflects the requested URL path without sanitising or encoding it, allowing text injection.

Impact

An attacker could trick users into visiting a malicious site by displaying a fake message on the trusted error page.

What the attacker needed

Victim clicks a crafted link

The fix

The error page should be fixed, for example by using a static page.

How it was found

  1. Craft a URL with a path containing a double-encoded slash followed by attacker text and a link.
  2. Visit the crafted URL on the target site.
  3. Observe the error page displaying the injected text and link.

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 a website shows an error page, it sometimes copies part of the web address into the page. Here, the site copied text from the address without cleaning it, so an attacker could put a fake message on the error page telling people to go to another website. This is dangerous because users trust the site's own pages.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by geekboy

View all

11 more disclosed reports, best first.

More from withinsecurity

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.