Skip to content

HackerOne

shopify-scripts

Every publicly disclosed report for shopify-scripts, what kind of bugs they were and what was paid.

disclosed reports
159
with a public bounty
86
median public bounty
$800
public bounties in all
$250k
Scope, rewards and live status on bugbounty.fyi Paused Bounty not published

Disclosed reports

Newest first. Only what shopify-scripts chose to make public.

Memory corruption $1,000

NULL pointer dereference in `mrb_check_frozen`

A crash occurs in mrb_check_frozen when remove_instance_variable is called on an integer, dereferencing an attacker-controlled address. This could cause denial of service and possibly an arbitrary memory read.

shopify-scripts

Memory corruption $1,000

Buffer overflow in yywarning_s

A warning-formatting function in the mruby compiler concatenated a message and a string into a fixed 256-byte stack buffer without checking length. A crafted input could overflow the buffer and crash the process, with the authors suggesting possible control of execution flow via stack smashing.

shopify-scripts

Memory corruption $1,000

Invalid read in `str_replace_partial`

A memory-safety bug in mruby's string replacement routine causes an out-of-bounds read when a crafted script triggers the affected code path. The reporter states this could potentially lead to information disclosure.

shopify-scripts

DoS $800

Crash in mrb_ary_push

A crafted mruby script causes the interpreter to dereference a null array pointer inside mrb_ary_push, leading to a crash. An attacker who can supply Ruby code to mruby could crash the process, giving a denial of service.

shopify-scripts

DoS $800

SEGV on ary_concat

A crafted Ruby script using a return inside an each block combined with an ensure clause causes mruby to dereference a null pointer in the array concatenation code. An attacker who can supply Ruby code to mruby could crash the interpreter.

shopify-scripts

Memory corruption $800

heap-buffer-overflow in OP_R_BREAK

A crafted Ruby snippet using a lambda with a break statement causes mruby's virtual machine to read memory outside an allocated stack buffer. An attacker could crash the interpreter (mirb) with this input, but the report claims no more than a denial of service.

shopify-scripts

Informational
Memory corruption $800

heap-use-after-free in OP_RESCUE

A crafted Ruby script causes mruby to write to a heap buffer that has already been freed, triggering a heap-use-after-free detected by AddressSanitizer. The interpreter aborts, so an attacker who can supply script input could crash the process.

shopify-scripts

DoS

mruby heredoc notation

A crafted mruby script using the heredoc notation causes the interpreter to crash with a segmentation fault in the VM execution loop. An attacker who can supply a script to mruby could crash the process, giving a denial of service.

shopify-scripts

Memory corruption $800

Invalid read leading to a segfault

The mruby bytecode compiler reads freed memory while resolving jump instructions during code generation, because a reallocation invalidates a pointer it still uses. A crafted Ruby script can therefore crash the interpreter with a segmentation fault.

shopify-scripts

Low
Business logic

Clearing , Shifting and Pop Value from Frozen Array

In mruby, the pop, shift and clear methods on an Array did not check whether the array was frozen, so a frozen array could still be modified. An attacker able to run Ruby code could remove or clear elements of an array that was meant to be immutable.

shopify-scripts

Informational
Memory corruption $800

Use after free in mruby-mpdecimal

A use-after-free occurs in mruby-mpdecimal when a script calls to_d on the result of inspect, causing the decimal object to be freed and then read during garbage collection at shutdown, crashing the interpreter under ASAN.

shopify-scripts

Memory corruption

Heap Overflow in fiber_switch triggered from Fiber.transfer

The mruby fiber implementation copies arguments passed to Fiber.transfer into a fixed-size stack buffer without checking how many were supplied. An attacker who can run Ruby code could pass 64 or more arguments and overflow the heap, potentially crashing or corrupting memory.

shopify-scripts

High
Memory corruption

OP_SCALL in LHS of a OP_ASGN resulting in arbitrary memory write

A code generation flaw in mruby's compiler for assignment expressions with a method call on the left-hand side causes the compiler to omit pushing a register, leading to use of an incorrect register. This allows an attacker to craft Ruby code that triggers an out-of-bounds memory write via the array concatenation opcode, potentially leading to code execution.

shopify-scripts

Critical
DoS

SIGSEGV - mark_context_stack

A short Ruby script using nested blocks, yield and ensure causes mruby's garbage collector to dereference a null pointer while marking a context stack, crashing the interpreter. An attacker who can supply Ruby code to mruby could crash the process.

shopify-scripts

Memory corruption

SIGABRT - mirb and mruby

A crafted Ruby script causes a heap corruption in mruby's stack extension, leading to a realloc error and SIGABRT. An attacker could crash the interpreter by supplying a malicious script.

shopify-scripts

Memory corruption

SIGABRT - mirb - Double Free

A double-free in mruby's mirb interpreter occurs when running a crafted Ruby script, causing a crash and denial of service.

shopify-scripts

DoS

SIGSEGV in mrb_vm_exec

A crafted Ruby script causes mruby's virtual machine to dereference an invalid pointer, leading to a segmentation fault. An attacker who can supply Ruby code to mruby could crash the interpreter.

shopify-scripts

Memory corruption

SIGSEGV in mrb_class

A crafted Ruby script causes a segmentation fault in mruby's mrb_class function when run in mirb. An attacker could crash the interpreter, leading to denial of service.

shopify-scripts

DoS

SIGABRT in mrb_debug_info_append_file

A crafted Ruby script causes mruby's compiler to abort with an assertion failure in mrb_debug_info_append_file. An attacker could crash the interpreter by supplying such a script.

shopify-scripts

DoS

Crash in ary_concat()

A short, malformed Ruby snippet causes the mruby interpreter to crash with a segmentation fault inside the array concatenation routine. An attacker who can submit code to an mruby sandbox could crash the interpreter process.

shopify-scripts

Memory corruption

heap use-after-free in mrb_vm_exec()

A short Ruby script that defines a class whose constructor calls itself recursively causes mruby's virtual machine to write to a stack buffer that has already been freed. An attacker who can run Ruby code on the interpreter could trigger a heap use-after-free, which the ASAN trace shows as a write of 12 bytes into freed memory.

shopify-scripts

Memory corruption

SIGABRT - in free

A crafted Ruby script using a hash with an array key causes memory corruption in mruby, leading to a crash (SIGABRT) in mirb.

shopify-scripts

Memory corruption

SIGSEGV in mrb_str_inum

A crafted Ruby script causes mruby to crash with a segmentation fault when calling Integer() on an object whose to_str returns an empty string.

shopify-scripts

Memory corruption

SIGSEGV in mrb_vm_exec

A crafted Ruby script causes mruby's virtual machine to jump to a null program counter, resulting in a segmentation fault. An attacker could crash the interpreter by supplying such a script.

shopify-scripts