Skip to content
DoS Disclosed report Intermediate

SIGSEGV in array_copy - array.c:71

A malformed input file causes a segmentation fault in mruby's array_copy function at array.c:71. An attacker could crash the interpreter by supplying this file.

ilsani Follow

Originally disclosed on HackerOne

Bounty$800 Medium View original
  • Triaged in 2 hours
  • Fixed in 7 days
  • Paid in 7 days
  • Disclosed after 9 days

File [2] as input causes a segfault in mruby.

mruby crashes in ary_copy (array.c:71):

Program received signal SIGSEGV, Segmentation fault.
0x000000000040e088 in array_copy (src=<optimized out>, size=<optimized out>, dst=<optimized out>) at /tmp/mruby/src/array.c:71
71          dst[i] = src[i];

Test platform: Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1+deb8u1 x86_64 GNU/Linux

The original report as published on HackerOne, by ilsani. 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 bounds check or invalid pointer in array_copy when handling the crafted input.

What the attacker needed

Ability to supply input file to mruby

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 segmentation fault is a crash that happens when a program tries to access memory it shouldn't. Here, a specially crafted file makes the mruby interpreter crash, which could be used to disrupt a service that processes untrusted files.

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 ilsani

View all

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