Skip to content

Hunt prep

Before you test shopify-scripts

What 159 disclosed reports say about shopify-scripts: what was found and paid, what was fixed, and where it may be worth looking next.

with a public bounty
86
median public bounty
$800
highest public bounty
$18k

Gaps worth testing 14

Ideas drawn from this program's disclosed reports and our class lessons. None of them is a known bug: each is a place to look, and the reports linked under it are why. Check the current scope before testing anything.

  1. 1

    Type confusion via reassigned core constants in other builtins

    Memory corruption Read the lesson

    Reports show that reassigning constants such as Decimal, Range, NoMethodError and exception classes causes type confusion and crashes. Test other builtin constants and class names that internal C code resolves at runtime, such as Struct, Time, Proc and Symbol, to see whether the same pattern of runtime lookup without a type check still exists in less-travelled extensions.

  2. 2

    Integer overflow in string and array length checks

    Memory corruption Read the lesson

    Several reports show integer overflow in length arithmetic in str_substr, mrb_ary_set, mrb_ary_splice and array_copy. Test other string and array routines that compute offsets or sizes from user-supplied indices, especially slice, insert, replace and shift paths, since fixes appear to have been applied function by function rather than centrally.

  3. 3

    Use-after-free when the VM stack is reallocated

    Memory corruption Read the lesson

    Reports repeatedly show stale pointers after stack extension or reallocation in range creation, rescue handling, callinfo and OP_ARYCAT. Test other opcodes and builtin methods that call back into Ruby (for example comparison, to_str, to_int and to_ary hooks) while the stack can grow, to look for the same stale-pointer pattern in paths not yet covered.

  4. 4

    Null dereference in array routines with non-array values

    DoS Read the lesson

    Null pointer crashes recur in ary_concat, mrb_ary_push and mrb_ary_concat when a null or non-array value reaches the routine. Test other array and enumerable methods that accept values from user code, such as unshift, splice, flatten and values_at, with unusual argument types and control-flow combinations to see whether the missing null check persists elsewhere.

  5. 5

    Format string width and precision edge cases in sprintf

    Memory corruption Read the lesson

    Multiple reports cover integer overflow and negative-length handling in mrb_str_format and the sprintf gem with very large widths and positional arguments. Test other format specifiers, precision values and positional argument combinations, including zero and negative widths, to see whether the length checks are complete across all conversion types.

  6. 6

    Time extension bounds checks on out-of-range fields

    Info disclosure Read the lesson

    Reports show out-of-bounds reads in timegm and mrb_time_asctime when month or time values are out of range, plus a TOCTTOU issue in Time initialisation. Test other Time methods and fields such as day, year, hour and zone with extreme values, and re-entrant argument objects, to see whether validation is applied consistently across the extension.

  7. 7

    Garbage collector marking of unusual object graphs

    Memory corruption Read the lesson

    Crashes in mrb_gc_mark, mark_context_stack and mark_tbl recur across reports, often involving Fibers, Procs and malformed class definitions. Test garbage collection while holding references from suspended Fibers, ensure blocks and deeply nested modules, since the collector's marking logic has been a repeated weak point.

  8. 8

    Codegen errors and double free in nested ireps

    Memory corruption Read the lesson

    Reports show double frees and stale pointers in the compiler error path, including the filename double free and dispatch_linked reading a freed buffer. Test other codegen failure paths, such as deeply nested expressions, oversized argument lists and invalid syntax trees, to see whether error cleanup still frees objects it does not own.

  9. 9

    Frozen object mutation through less common methods

    Business logic Read the lesson

    Reports note that clearing, shifting and popping a frozen array and deleting keys from a frozen hash violate design expectations. Test other mutating methods on frozen strings, arrays and hashes, such as replace, insert, concat and merge, to see whether the frozen check is enforced consistently across the core library.

  10. 10

    Recursion depth limits at the C level

    DoS Read the lesson

    One report shows legal Ruby programs causing tight C-level recursion and a process stack overflow because only the Ruby stack is tracked. Test other recursive interpreter paths, such as nested ensure blocks, recursive to_s or inspect overrides and deeply nested data structures, to see whether C-level depth is bounded in paths beyond the one fixed.

  11. 11

    Symbol and method table lookups with wrong object types

    Memory corruption Read the lesson

    Reports show crashes in kh_get_mt, kh_put_iv and sym_validate_len when a string or corrupted value is treated as a class or symbol table. Test method lookup and symbol interning with objects whose type changes at runtime, and with boundary symbol lengths, to see whether type validation is complete in the lookup paths.

  12. 12

    String modification and replacement self-reference paths

    Memory corruption Read the lesson

    Reports cover use-after-free in str_replace and str_replace_partial, plus mrb_str_modify writing to memory not marked writable. Test string methods that can reference the receiver as an argument, such as replace, prepend, concat and setbyte, with aliased and frozen strings, to see whether the self-replace and copy-on-write paths are safe.

  13. 13

    Heredoc and parser edge cases causing hangs

    DoS Read the lesson

    Reports show an infinite loop with zero-length heredoc identifiers and a parser regression crashing on minimal input. Test other heredoc forms, empty identifiers and malformed syntax near parser boundaries, since parser robustness has produced both hangs and crashes and fixes may not cover all variants.

  14. 14

    initialize_copy on uninitialised builtin objects

    Memory corruption Read the lesson

    Reports show crashes when initialize_copy runs on Time, Proc and Range objects whose initialisation was skipped or overridden. Test dup and clone on other builtin classes with overridden or removed initialisers, such as String, Array, Hash and Decimal, to see whether copy routines still assume a fully initialised target.

Public bounties only; many reports disclose without the amount.

ClassReportsPaidMedianHighestIn all
DoS lesson 85 47 $800 $10k $162k
Memory corruption lesson 71 38 $800 $18k $87k
Info disclosure lesson 1 1 $100 $100 $100
Business logic lesson 2 0 – – $0

What was fixed

All reports

The newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.