Skip to content
XSS Write-up Beginner

Alternative link

An Oracle Business Intelligence login page reflected a crafted redirect parameter without sanitisation, allowing an attacker to inject an image tag with an error handler that executes script. An attacker could run arbitrary JavaScript in a victim's browser in the context of the affected site.

motaha22.github.io

Published on motaha22.github.io

This is my first write-up. I was scrolling through twitter and I found this great tip:

Mohamed Taha, on motaha22.github.io

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the redirect parameter was reflected into the HTML response without output encoding, allowing an injected image tag with an onerror handler to execute script.

Impact

An attacker could execute arbitrary JavaScript in a victim's browser on the affected Oracle Business Intelligence login page, which could be used to steal session data or perform actions as the victim.

What the attacker needed

Victim visits a crafted link; target runs vulnerable Oracle BI login page

How it was found

  1. Search Shodan for pages containing the Oracle Business Intelligence login text, optionally filtered by organisation.
  2. Pick a result owned by the target organisation.
  3. Open the login page with a crafted redirect parameter containing an image tag with an error handler.
  4. Observe the script executing and showing the document domain.

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 write-up has not been written yet. The Original tab links to the source.

A login page took a value from the web address and put it straight into the page without cleaning it. By putting special characters in that value, the author made the browser treat part of the page as code, so a script ran. This is called cross-site scripting (XSS): an attacker can make a victim's browser run their code on a trusted site.

What is XSS?

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

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.