Skip to content
DoS Disclosed report Intermediate

Null pointer dereference regression in parse.y

A regression from a specific commit makes the mruby parser crash on a minimal input, which could potentially be a denial of service.

haquaman Follow

Originally disclosed on HackerOne

Bounty$1,000 Low View original
  • Triaged in 3 days
  • Fixed in 12 days
  • Paid in 21 days
  • Disclosed after 22 days

Hi,

Just pulled the latest mruby code, and found that some of my fuzzing test cases now crash. Bisected it to commit 227daa881137d5251e03eea0883b9b574a1f064e. Reverting this change no longer causes a crash.

The minimised file causing the crash is:

f ()

Also affects mruby-engine.

Cheers,

Hugh

The original report as published on HackerOne, by haquaman. 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 regression in the parser introduced by the referenced commit, causing a crash.

Impact

Causes the mruby interpreter to crash when parsing the minimal input.

What the attacker needed

Ability to supply input to mruby parser

The fix

Reverting the commit fixes the crash, but the underlying issue should be fixed properly.

How it was found

  1. Pull the latest mruby code.
  2. Run the minimised input file containing 'f ()'.
  3. Observe the crash.

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 small code change made the parser crash on a very simple input, which could let someone cause a crash by sending that input.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More by haquaman

View all

28 more disclosed reports, best first.

More from shopify-scripts

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.