Skip to content
SSRF Disclosed report Intermediate CVE-2020-8205

[Uppy] Internal Server side request forgery (bypass of #786956)

The Uppy file uploader's server-side fetch feature checked the initial host's IP against a blacklist but did not re-check after HTTP redirects. An attacker could supply a URL that redirects to an internal metadata endpoint and retrieve its response, bypassing the previous fix.

mahmoud0x00 Follow

Originally disclosed on HackerOne

Critical 9.3 View original
  • Triaged in 4 days
  • Fixed in 24 days
  • Disclosed after 24 days

I would like to report Internal Server-side request forgery in Uppy It allows the attacker to easily extract information from internal servers

Module

module name: Uppy **version:**1.15.0 npm page: https://www.npmjs.com/package/uppy

Module Description

Uppy is a sleek, modular JavaScript file uploader that integrates seamlessly with any application. It’s fast, easy to use and lets you worry about more important problems than building a file uploader.

Module Stats

[1] weekly downloads: 37,599

Vulnerability

Server-Side Request Forgery (SSRF)

Vulnerability Description

When I checked your fix on #786956, I noticed that you fixed this issue by doing a check on the host 's IP address against a blacklist before passing it to the server to fetch (You can check that here, But you forgot to stop redirection to these IP addresses, therefore attacker can create a host or file and redirect all requests which are being received to a specific internal host, this will bypass your check, in the first phase, System will check if this host is allowed or no, if it is allowed, Server will pass the request. But it won't be able to verify which host is being redirected to.

Steps To Reproduce:

  • feel free to set up a custom Uppy version on your server and try these steps on
  1. Go to https://uppy.io/
  2. Choose download file via a link
  3. Pass this link to the system https://tinyurl.com/gqdv39p (it redirects to http://169.254.169.254/metadata/v1/)
  4. Upload fetched file
  5. Download that file
  6. Open that file and you should see a copy of DigitalOcean 's metadata host response

██████

Supporting Material/References:

███

Wrap up

Select Y or N for the following statements:

  • I contacted the maintainer to let them know: N
  • I opened an issue in the related repository: N

Impact

Unauthorized access to sensitive info on internal hosts/services.

The original report as published on HackerOne, by mahmoud0x00. 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 SSRF protection validated only the original URL's host IP against a blacklist and did not re-validate the destination after HTTP redirects.

Impact

An attacker could gain unauthorised access to sensitive information on internal hosts and services, such as cloud metadata.

What the attacker needed

Uppy Companion server with URL fetch enabled; Attacker controls a redirecting URL; Victim or attacker uses the fetch feature

The fix

Redirects to blacklisted IP addresses should be stopped, as the current check does not cover them.

How it was found

  1. Go to the Uppy website.
  2. Choose to download a file via a link.
  3. Provide a link that redirects to an internal metadata address.
  4. Upload the fetched file.
  5. Download that file.
  6. Open the file to see the metadata host response.

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.

When a website asks its server to download a file from a link, the server makes a request on the user's behalf. If the server can be tricked into requesting internal addresses, it may expose private information. Here, the server checked the first address but not where a redirect led, so an attacker could reach a cloud metadata service.

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 Node.js third-party modules

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.