Skip to content
Memory corruption Disclosed report Advanced

Heap-Buffer-Overread in contains_whitespace when calling parser_validate after supplying a maliciously crafted buffer to parser_parse

A fuzz crash case caused a heap-buffer-overread in the contains_whitespace function when parser_validate was called after parser_parse with a maliciously crafted buffer. The crash was not exploitable in the library's primary use case, but a length check was added to prevent it.

l33thaxor Follow

Originally disclosed on HackerOne

Bounty$2,000 View original
  • Triaged in under an hour
  • Fixed in 11 days
  • Paid in 11 days
  • Disclosed after 22 days

Summary by the program

A fuzz crash case was discovered, resulting in a heap-buffer-overread in the contains_whitespace function. This crash was not exploitable in the primary use case of the library, however a length check was added to prevent this case from triggering. This report was awarded a one-time bounty as it was the first valid submission for this target. Future crashes will need to be exploitable to be eligible for bounties for this component going forward.

The original report as published on HackerOne, by l33thaxor. 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 missing length check before reading the buffer in contains_whitespace, allowing an out-of-bounds read.

Impact

The crash was not exploitable in the library's primary use case.

What the attacker needed

Crafted buffer passed to parser_parse; parser_validate called afterwards

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.

A program read past the end of a memory buffer while checking for whitespace characters. This kind of bug can crash the program, but the report says it could not be used to attack the library in its normal use.

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 by l33thaxor

View all

4 more disclosed reports, best first.

More from Cosmos

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.