Skip to content
SSRF Disclosed report Intermediate

Server-Side Request Forgery in "icons.bitwarden.net"

The icon-fetching service at icons.bitwarden.net accepted a user-supplied domain and fetched it without validating that the resolved address was external. An attacker could supply a domain that resolves to a loopback address to bypass the localhost restriction and reach internal resources.

njgadhiya Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • Fixed in 7 days
  • Disclosed after 37 days

As, I already checked with support team via portal, due to domain confirmation I checked with them. Here, adding the required information:

##Title: Server-Side Request Forgery in "icons.bitwarden.net". ##URL: https://icons.bitwarden.net/spoofed.burpcollaborator.net/icon.png ##Parameter: REST based in "https://icons.bitwarden.net/{DOMAIN-HERE}/icon.png" ##Summary: The application failed to validate the vulnerable URL which led to internal port scanning through SSRF vulnerability. ##Severity: High

##Proof of Concept:

  1. The application shows "https://icons.bitwarden.net/localhost/icon.png". - 400 Bad Request.
  2. The application shows https://icons.bitwarden.net/spoofed.burpcollaborator.net/icon.png - 404 Not Found.

Note: Furthermore, an attacker would be able to perform host discovery and internal port scanning which I did not perform as the scope was not mentioned in the list so better that you can proceed with the above Proof of Concept steps.

##Recommendation: In the above steps, localhost was restricted but was able to bypass using domain "spoofed.burpcollaborator.net" which resolves "127.0.0.1". The application should resolve the domain and restrict access to internal resources.

Impact

  • An attacker would be able to perform SSRF attack to retrieve internal infrastructure information.

The original report as published on HackerOne, by njgadhiya. 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 application blocked the string 'localhost' but did not resolve the supplied domain and reject private or loopback IP addresses before making the request.

Impact

An attacker could perform host discovery and internal port scanning to retrieve internal infrastructure information; the reporter did not actually perform the scanning.

What the attacker needed

Ability to request the icon URL with a chosen domain

How it was found

  1. Request the icon URL with 'localhost' as the domain and observe a 400 Bad Request.
  2. Request the icon URL with a domain that resolves to [redacted] and observe a 404 Not Found, showing the restriction was bypassed.

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.

This service takes a domain name from the URL and fetches an icon from it. The problem is that it only blocked the literal word 'localhost' but did not check where the domain actually points. By using a domain that resolves to the local machine, an attacker could make the server talk to itself or to internal services.

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 njgadhiya

View all

1 more disclosed report, best first.

More from Bitwarden

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.