Skip to content
Info disclosure Disclosed report Beginner

Sourcemaps and Unminified Source Code Exposed on Pages

Unminified JavaScript source files were exposed on several pages, revealing internal documentation and, via a scan, links to development environments.

gennaro Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • Fixed in 28 days
  • Paid in 4 days
  • Disclosed after 28 days

Hello,

I'm not sure if this was actually meant to be made public on purpose, but I was looking through some of the sources that were loaded and found out the following:

  • https://imgur.com/ - See ██████
    • s.imgur.com -> desktop-assets -> js
      • contains multiple minified JS files as one would usually expect.

In the following pages(But not limited too), we see:

Impact

Assuming the unminified source files were not intentionally left exposed to the public:

  • Loss of internal confidentiality
  • Source code can be stolen
  • Internal documentation exposed to the public can create a target to dev environments that are traditionally not meant to be publicly facing
    • e.g. ███████ shows a link to: ████████████/████████
    • a simple scan I was able to find what seems to be multiple dev builds of the site and access to the git login, VPN login, etc: ██████████.███████/

Though these are not direct exploits to systems, it does create un-needed attention to additional points of entry to source code repos, internal documentation, and potentially other company confidential information.

I hope this was helpful!

The original report as published on HackerOne, by gennaro. 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 a build or deployment misconfiguration that published unminified source files and sourcemaps to the public web server.

Impact

The exposure could lead to loss of confidentiality and draw attention to internal dev environments, though the report notes these are not direct exploits.

What the attacker needed

None

The fix

The unminified source files should be removed from public deployment or restricted to internal use.

How it was found

  1. Inspect loaded JavaScript sources on the main site and note minified files.
  2. Visit specific pages such as the upload page and account settings.
  3. Observe that the include/js path contains a minified folder with unminified source files.
  4. Review the exposed files for internal documentation, and a separate scan found dev builds and login links.

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.

Here, the original readable versions of the minified files were left publicly accessible, letting anyone read the site's internal code and documentation.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from Imgur

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.