Skip to content
SSRF Write-up Advanced

Double Compromise: Unearthing Unauthenticated SSRF and Weaponized XSS on Legacy Oracle…

An unauthenticated SSRF in the databaseIdentifier parameter allowed internal port scanning and CRLF-based protocol smuggling toward a WebLogic admin port, while a reflected XSS in the URL path enabled session riding and silent database export exfiltration using hidden DOM state tokens.

k4r33m Follow

Published on medium.com

When assessing enterprise perimeters, legacy subdomains often hide complex architectural flaws. During a recent engagement targeting a single subdomain running an End-of-Life (EOL) stack — Oracle BI Discoverer 11.1.1.7.0 and Apache 2.2.22 — I uncovered two distinct, high-impact vulnerabilities.

K4r33m, on medium.com

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 missing input validation on the database connection parameter and unsanitised reflection of the URL path in an error page, combined with missing HttpOnly on session cookies.

Impact

The SSRF could reach internal management services and the XSS could silently exfiltrate database reports from authenticated users, though the text does not demonstrate actual RCE.

What the attacker needed

Network access to the target; victim clicks a crafted link; victim is authenticated

The fix

The report recommends disabling EZConnect, whitelisting TNS aliases, adding egress filtering, applying context-aware HTML encoding to URL paths, and setting HttpOnly on session cookies.

How it was found

  1. Send a request to the directPartialConnect endpoint with an out-of-band host in the databaseIdentifier parameter to confirm outbound DNS and TCP connections.
  2. Probe internal addresses and ports and compare Oracle error messages to fingerprint open services.
  3. Inject CRLF characters into the parameter to bypass the TNS parser and interact with the internal WebLogic service, noting longer response times.
  4. Request an invalid path containing a URL-encoded script tag to trigger reflected XSS in the 400 error body.
  5. Use the XSS to read hidden stateStr and stateID tokens from the victim's DOM.
  6. Forge a POST to the exportdata endpoint with the stolen tokens and exfiltrate the exported worksheet.

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.

The server let anyone tell it which database address to connect to, so an attacker could use it to probe internal machines that are not reachable from the internet. Separately, a crafted link made the site run attacker JavaScript in a logged-in user's browser, which could quietly export and steal database reports.

What is SSRF?

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.

More by k4r33m

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.