Skip to content
XSS Disclosed report Beginner

Reflected XSS in legacy CGI script /cgi-bin/████████.pl on ████████ via `████████` parameter

A legacy Perl CGI script reflects the value of a request parameter into its HTML response without encoding it. An attacker could send a crafted link so that arbitrary JavaScript runs in the victim's browser on the site's origin.

marioniangi Follow

Originally disclosed on HackerOne

  • Disclosed after 33 hours

Summary:

The legacy Perl CGI script at https://████████/cgi-bin/████████.pl reflects user-supplied input from the ████████ parameter directly into the HTML response without output encoding. This allows unauthenticated reflected XSS via both GET and POST requests.

Steps To Reproduce:

  1. Send the following GET request (no authentication required):

https://████████/cgi-bin/████████.pl?action=Register&████████=%3Cscript%3Ealert(document.domain)%3C%2Fscript%3E&last=████████&████████=123

  1. Observe the response body contains the payload unencoded:
<br>
<script>alert(document.domain)</script> ████████, Tel: 123
<br>
  1. Confirm via curl:
curl -sk -H "X-HackerOne-Research: ████████" \

"https://████████/cgi-bin/████████.pl?action=Register&████████=%3Cscript%3Ealert(document.domain)%3C%2Fscript%3E&last=████████&████████=123"

Both GET and POST methods are affected. The last and ████████ parameters are also reflected but were not ████████ed beyond confirmation.

Supporting Material/References:

  • curl output confirming unencoded reflection attached
  • Affected script metadata: generator="████████:/cgi-bin/████████.pl", author="████████" (legacy SCA/Essity internal tool)

Impact

Arbitrary JavaScript execution in the ████████ origin against any user following a crafted link. No authentication required. Enables session hijacking, credential phishing under an Essity domain, and content injection/ defacement. The affected script also leaks internal infrastructure metadata (internal hostname ████████ visible in page source).

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

Impact

Arbitrary JavaScript could run in the site's origin for anyone who follows a crafted link, enabling session hijacking, credential phishing and content injection; the page also leaks an internal hostname.

What the attacker needed

Victim clicks a crafted link; no authentication required

How it was found

  1. Send a GET request to the CGI script with a script tag in the parameter and no authentication.
  2. Observe the response body contains the script tag unencoded.
  3. Confirm the reflection with curl.

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.

A web page can include text that came from the visitor's request. If the site puts that text into the page without cleaning it, an attacker can make the page contain a small program (JavaScript) that the visitor's browser runs. That lets the attacker act as the visitor on that site, for example by reading their session or showing a fake login form.

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 marioniangi

View all

1 more disclosed report, best first.

More from Essity

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.