Skip to content
RCE Disclosed report Beginner

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.

khiladibayal Follow

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

POC : https://eng.uber.com/has%20been%20changed%20to%20https%3A%2F%2Fwww.fakewebsite.com.%20so%20please%20visit%20https%3A%2F%2Fwww.fakewebsite.com%20as%20your%20requested%20link

Vulnerability reference: https://www.owasp.org/index.php/Content_Spoofing

Please find attachment for POC.

Attachments

uber_content_spoofing.png
uber_content_spoofing.png From the original on HackerOne

The original report as published on HackerOne, by khiladibayal. 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 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

  1. Craft a URL containing the desired spoofed text and a fake website address in the path.
  2. Visit the crafted URL on the affected domain.
  3. 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.

More from Uber

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.