Skip to content
Memory corruption Disclosed report Advanced CVE-2015-4459

type confusion in Sass::ParserState::ParserState(Sass::ParserState const&)

A type confusion bug exists in the Sass parser state copy constructor, causing a crash when dereferencing an invalid pointer. An attacker could likely only cause a local denial of service by supplying a crafted input to sassc.

richo Follow

Originally disclosed on HackerOne

  • Fixed in 3 days
  • Disclosed after 3 days

I haven't actually spent much time on the bug, because it doesn't look super exploitable outside of a local DoS, but the attached PoC will crash sassc in the middle of libsass from latest git, trying to deref $0x8, which appears to be the value of some tag in a tagged union.

Let me know if I can help chasing this down, but I mostly wanted to just punt it over the fence.

The original report as published on HackerOne, by richo. 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 type confusion in the copy constructor of Sass::ParserState, where a tagged union is read with the wrong type, leading to an invalid pointer dereference.

Impact

The bug could cause a local denial of service by crashing sassc, but the reporter does not believe it is super exploitable beyond that.

What the attacker needed

Ability to run sassc on crafted input

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 is a crash bug in a tool that converts Sass stylesheets into CSS. When the tool copies some internal state, it gets confused about what kind of data it is handling and tries to use a bad memory address, which makes the program stop working. The person who found it thinks it is only useful for crashing the tool on your own machine, not for attacking a server.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More from LibSass

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.