Skip to content
Info disclosure Disclosed report Beginner

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.

guido Follow

Originally disclosed on HackerOne

  • 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.

The original report as published on HackerOne, by guido. 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 SCSS compiler was configured to include debug comments in the production CSS output.

What the attacker needed

None

How it was found

  1. Download the CSS file referenced in the HTML.
  2. Run a grep command to extract strings containing 'file:' and ending with 'scss'.
  3. 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.

More by guido

View all

49 more disclosed reports, best first.

More from HackerOne

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.