CSS leaks SCSS debug info
The compiled CSS file contained SCSS debug information that revealed file system paths, source file names, and software details. An attacker could use this to learn about the server's internal structure and technology stack.
- Triaged in under an hour
- Fixed in 5 days
- Paid in 5 days
- Disclosed after 5 days
Download CSS style sheet referenced from the HTML and do:
grep -oP "file.:.*?scss" application-facbdb64a504bb08ec272860320e1941.css | sort | uniq
As you can see it exposes information about the file system, source CSS files and software used.
See enclosed file for a dump of the output of the command above.
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 SCSS compiler was configured to include debug comments in the production CSS output.
What the attacker needed
None
How it was found
- Download the CSS file referenced in the HTML.
- Run a grep command to extract strings containing 'file:' and ending with 'scss'.
- Sort and deduplicate the results to see the exposed information.
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 developers write styles in a language called SCSS, it gets converted into normal CSS for browsers. Sometimes the conversion tool leaves behind comments that show the original file paths and tool names. This report found that those comments were still in the public CSS file, so anyone could read them and learn about the server's setup.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.