# Unauthenticated remote process termination of Arc RPC nodes via custom JS tracer (Boa engine) leads to sustained node DoS

Unauthenticated custom JS tracers on Arc's public RPC let one request abort the Boa engine process or burn worker threads, sustaining node DoS.

- Payout: $10,000
- Severity: high
- Program: Arc
- Found by: cantina-security
- Disclosed: 2026-11-15
- Write-up quality: 9/10
- Original: https://hackerone.com/reports/3966160
- Library page: https://bugbountylibrary.com/r/h1%3A3966160
- Tags: area:web3 domain:api domain:web3 impact:dos kind:bounty platform:hackerone sev:high tech:evm tech:rust technique:fuzzing technique:source-review vuln:dos vuln:misconfiguration

**Target:** Public JSON-RPC endpoint debug_traceCall/debug_traceTransaction custom JS tracer (Boa engine via revm-inspectors)
**Root cause:** Public unauthenticated debug_trace* accepts attacker JS executed in-process by Boa 0.21.x with only JS-level loop/recursion limits; native recursion, GC-finalizer panics, regex backtracking and host-glue iteration are unbounded and stack overflows/non-unwinding panics abort the process.
**Steps:**
1. Fingerprint engine via tracer sandbox (TypedArray global, no Error.stack, TypeError message) to confirm Boa 0.21.x + revm-inspectors.
2. Send `debug_traceCall` with params `[{from:0x0,to:0x0,data:'0x'},'latest',{tracer:"({result:function(ctx,db){...},fault:function(){},step:function(){}})"}]`.
3. Kill vector A: `Function('('.repeat(150))` inside result callback -> parser native recursion -> SIGABRT (live: 30s internal error).
4. Kill vector B: build Map, loop `m.entries()` 199000 times -> GC finalizer BorrowMutError -> non-unwinding abort (live: 30s internal error, backend down).
5. Burn: `/^(a+)+$/.test('a'.repeat(N)+'!')` with N=26 -> 2.28s, x4 per +2 chars, uninterruptible.
6. Exhaust: `var a=[]; a.length=16777215; toHex(a)` -> native iteration builds 33.5MB string live; 0xffffffff -> ~137s CPU + >12GB RSS + 8.6GB output string in lab.
7. Loop kill requests (`sustain` mode) to keep fleet in crash-restart cycle.
**How found:** Fingerprinted the tracer sandbox byte-for-byte to identify Boa 0.21.x, built a target-matched local lab with real JsInspector, then systematically probed which native paths escape the JS loop/recursion limits and which panics are non-unwinding.
**Exploitation:** Unauthenticated attacker (or any website via reflected CORS with credentials) POSTs a single ~200-byte JSON-RPC debug_traceCall with a malicious tracer string; the node executes it in-process, aborting the worker or pinning threads, and repeating keeps backends cycling so the public RPC stays degraded.
**Escalation:** Chained with arbitrary-origin CORS reflection (Access-Control-Allow-Credentials: true) to enable drive-by browser-based DoS; sustain mode loops kills to prevent recovery.
**Insight:** JS sandbox limits that count only bytecode loop iterations and JS-level recursion leave native work (regex backtracking, parser/serializer recursion, host-glue array iteration, GC finalizers) unbounded; and panics inside GC finalizers are non-unwinding, so catch_unwind cannot save an in-process engine — test whether the engine has an interrupt API before trusting any timeout.

## Proof of concept (copied exactly from the original report)

**Map+GC BorrowMutError process-kill tracer**

```
({result:function(ctx,db){ var m=new Map();"
            " for(var i=0;i<1000;i++) m.set(i,i);"
            " for(var j=0;j<199000;j++){ m.entries(); }"
            " return 'SURVIVED'; },fault:function(){},step:function(){}})
```

