Skip to content
SSRF Disclosed report Intermediate

SSRF/XSPA in labs.data.gov/dashboard/validate

A validator endpoint on labs.data.gov fetched a user-supplied URL server-side and returned different error messages depending on whether a port on the target host was open. An attacker could use this to probe internal services and ports that are not reachable from the internet.

haxta4ok00 Follow

Originally disclosed on HackerOne

Bounty$300 Medium 4.6 View original
  • Fixed in 12 days
  • Paid in 12 days
  • Disclosed after 2.6 years

Hi.

This vulnerability allows access to all ports locally. Which is not visible from the web.

1)We need an interim site file index.php 2)Next we write in index.php

<? header("Location: http://localhost:25"); ?>

3)Next go to https://labs.data.gov/dashboard/validate

And write url - for example http://example/index.php

If the port will be open (locally) that we will see the inscription

Source http://example/index.php Schema federal-v1.1 Valid JSON false Errors The validator was unable to determine if this was valid JSON F224225

if not open

Source http://example/index.php Schema non-federal Errors File not found or couldn't be downloaded F224224

final url for example https://labs.data.gov/dashboard/validate?schema=federal-v1.1&output=browser&datajson_url=http%3A%2F%2Fexample%2Findex.php&qa=true&as_sfid=your_sfid&as_fid=your_fid

thank you ,haxta4ok00

Attachments

false_port_258.png
false_port_258.png From the original on HackerOne
true_open_port_25_local.png
true_open_port_25_local.png

The original report as published on HackerOne, by haxta4ok00. 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 validator fetched the supplied datajson_url without restricting it to public addresses, and its distinct error messages leaked whether the connection succeeded.

What the attacker needed

Ability to host a page that redirects; validator accepts arbitrary URLs

How it was found

  1. Host a small page that redirects visitors to a local address on a chosen port.
  2. Open the validator page on labs.data.gov.
  3. Submit the address of your page as the data URL.
  4. Compare the returned error text to learn whether the port is open.

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.

The site has a feature that downloads a file from a web address you give it. The server does the download, not your browser, so you can point it at addresses inside the server's own network. By watching which error message comes back, you can tell whether a service is listening on a given port, even though you could never reach that service yourself.

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 haxta4ok00

View all

32 more disclosed reports, best first.

More from GSA Bounty

View all

The newest disclosed reports for this program.

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.