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.
- 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.
- s.imgur.com -> desktop-assets -> js
In the following pages(But not limited too), we see:
- https://imgur.com/upload
- https://imgur.com/account/settings/*
- https://{username}.imgur.com/all
- https://imgur.com/account/messages
- s.imgur.com -> include -> js
- As we can see on the following pages this contains a "minified" folder and then all the uniminified corresponding source code files.
- See █████████
- s.imgur.com -> include -> js
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!
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
- Inspect loaded JavaScript sources on the main site and note minified files.
- Visit specific pages such as the upload page and account settings.
- Observe that the include/js path contains a minified folder with unminified source files.
- 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.