Command Injection, Information
The 404 error page reflected the requested URL path without proper handling, allowing an attacker to craft a link that displays arbitrary text and a fake website address. An attacker could trick users into visiting a malicious site by making the error page appear to redirect them.
Originally disclosed on HackerOne
- Disclosed after 15 days
Dear Sir,
I am going to share information about content spoofing vulnerability present in 404 page. This vulnerability may not consider as in-scope but you can put it as informative.
Description :
"Content spoofing, also referred to as content injection or virtual defacement, is an attack targeting a user made possible by an injection vulnerability in a web application. When an application does not properly handle user supplied data, an attacker can supply content to a web application, typically via a parameter value, that is reflected back to the user. "
Attacker can modify page content in a way that "The requested URL /https://eng.uber.com has been changed to https://www.fakewebsite.com. so please visit https://www.fakewebsite.com as your requested link was not found on this server."
Affected URL: https://eng.uber.com
Vulnerability reference: https://www.owasp.org/index.php/Content_Spoofing
Please find attachment for POC.
Attachments

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 application reflected user-supplied URL path data in the 404 error page without encoding or validation, enabling content spoofing.
Impact
An attacker could trick users into visiting a fake website by displaying a misleading message on the legitimate error page, though the report notes this may be considered out of scope.
What the attacker needed
Victim clicks a crafted link
How it was found
- Craft a URL containing the desired spoofed text and a fake website address in the path.
- Visit the crafted URL on the affected domain.
- Observe the 404 error page displaying the injected text and fake 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 can't find a page, it often shows an error message that includes the address you typed. If the site doesn't clean that address before showing it, an attacker can put their own message and a link to a fake site in the address. Then the error page looks like it's telling you to go to the fake site.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.