Skip to content
Open redirect Disclosed report Intermediate

External authentication prompt injection via unsafe remote file include at https://firefox-newtab-proxy.getpocket.com/docs

The Firefox New Tab proxy page loads remote YAML/JSON configuration from an arbitrary URL supplied in the 'url' parameter, allowing an attacker to host a malicious config that displays a fake authentication prompt. Victims who enter credentials into this prompt send them, along with their IP address, to the attacker's server where they are stored in plain text.

todayisnew Follow

Originally disclosed on Mozilla

  • Fixed in 5 days
  • Paid in 18 days
  • Disclosed after 5 days
Text
Good day, I truly hope it treats you great on your side of the screen :)

I have found that your have a site which is vulnerable to a remote file include to an arbitrary host - in this case, I am able to load my own content from todayisnewpoc.surge.sh.

There is sanitization of the data being loaded from todayisnewpoc.surge.sh, which can prevent some common attack vectors/know payloads, but I am still able to inject a custom authentication prompt which loads when visiting the page.

This prompt is being served from an arbitrary location (authorization.site), which can be modified as needed to be as convincing as possible to any possible victim. Imagine yourdomain.authorization.site, for example. Depending on the browser being used, a message can be included along with the prompt to make it seem more trustworthy.

When a victim enters their information into the prompt, it is sent to the arbitrary location being used by the attacker (authorization.site) along with their IP address, and stored in plain text for the attacker to use when desired.

Additionally, if the victim closes the first prompt, an attacker can serve arbitrary text on the page to encourage them to authorize. If they do so by clicking on the Authorize button, then clicking on the subsequent Authorize button, the victim will again be shown my external authentication prompt from authorization.site

POC:

https://firefox-newtab-proxy.getpocket.com/docs?url=https://todayisnewpoc.surge.sh/auth2.yaml


How to fix: Restrict the ability to load external json/yaml files via the configUrl and url parameters, or implement an allowed-list for domains which can load via these parameters.

May you be well on your side of the screen :)

-Eric

The original report as published on Mozilla's Bugzilla, by todayisnew. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

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 accepts an arbitrary URL in the 'url' parameter and fetches remote configuration without restricting it to trusted domains.

Impact

An attacker could steal credentials and IP addresses from victims who interact with the fake prompt, though some sanitisation may block certain payloads.

What the attacker needed

Victim visits a crafted URL; attacker hosts a malicious config file

The fix

The application should restrict loading of external JSON/YAML files via the configUrl and url parameters, or implement an allow-list of permitted domains.

How it was found

  1. Host a malicious YAML configuration file on an attacker-controlled server.
  2. Craft a URL to the vulnerable page with the 'url' parameter pointing to the malicious file.
  3. Send the crafted URL to a victim.
  4. The victim visits the page and sees a fake authentication prompt served from the attacker's domain.
  5. The victim enters credentials, which are sent to the attacker's server along with their IP address.

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 website lets you tell it where to fetch a configuration file from by putting a web address in the page link. The attacker pointed that link at their own server, which served a fake login box. When someone typed their details into that box, the details went straight to the attacker.

What is Open redirect?

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.

More by todayisnew

View all

12 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.