Commit 1035da6
committed
fix: defense-in-depth bridge hardening
Three changes to lib/bridge.js, each independently low-risk and landing
as part of the v3.10.6 polish pass:
1. **AggregateError added to errorsList** (resolves GHSA-vwrp-x96c-mhwq
doc drift). The result writeup and ATTACKS.md Cat 20 already listed
AggregateError as protected, but it wasn't actually in the code's
`errorsList`. Adding it makes the docs accurate, extends
`protectedHostObjects` coverage to AggregateError.prototype +
constructor, and extends `thisAddIdentityMapping` to its prototype.
2. **`nodejs.util.promisify.custom` added to symbol denylist**
(defense-in-depth follow-up to GHSA-47x8-96vw-5wg6). Mirrors
`nodejs.util.inspect.custom` and `nodejs.rejection`. No live exploit
today, but the surface — host machinery invoking a sandbox-defined
handler with host-realm arguments — is the same shape, so
pre-emptive denial is cheap.
3. **`rebindHandlerConstructor` helper exposed** (closes
GHSA-v37h-5mfm-c47c Layer-3 coverage gap). The original sentinel
rebind covered the four core handler classes inside bridge.js but
not subclasses defined in setup-sandbox.js (BufferHandler).1 parent d3270cf commit 1035da6
1 file changed
Lines changed: 31 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
162 | 163 | | |
163 | 164 | | |
164 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
165 | 174 | | |
166 | 175 | | |
167 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
168 | 181 | | |
169 | 182 | | |
170 | 183 | | |
| |||
2174 | 2187 | | |
2175 | 2188 | | |
2176 | 2189 | | |
| 2190 | + | |
| 2191 | + | |
| 2192 | + | |
| 2193 | + | |
| 2194 | + | |
| 2195 | + | |
| 2196 | + | |
| 2197 | + | |
| 2198 | + | |
| 2199 | + | |
| 2200 | + | |
| 2201 | + | |
| 2202 | + | |
| 2203 | + | |
| 2204 | + | |
| 2205 | + | |
| 2206 | + | |
2177 | 2207 | | |
2178 | 2208 | | |
2179 | 2209 | | |
| |||
0 commit comments