SandboxJSにサンドボックスを回避される脆弱性、ホストのグローバルオブジェクトを改変される
Summary
SandboxJSには、サンドボックス内のコードがホスト側のグローバルオブジェクトに任意のプロパティを書き込める脆弱性があります。書き込んだ内容は同じプロセス内の別のサンドボックスにも残るため、影響が広がるおそれがあります。影響を受けるのは0.8.36より前のバージョンで、0.8.36で修正されています。CVSSは10.0で、早急な対応が必要です。SandboxJSを利用している場合は、0.8.36以降へ更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
SandboxJSには、サンドボックス内のコードがホスト側のグローバルオブジェクトに任意のプロパティを書き込める脆弱性があります。書き込んだ内容は同じプロセス内の別のサンドボックスにも残るため、影響が広がるおそれがあります。影響を受けるのは0.8.36より前のバージョンで、0.8.36で修正されています。CVSSは10.0で、早急な対応が必要です。SandboxJSを利用している場合は、0.8.36以降へ更新してください。
Original description The description as published by the source.
SandboxJS is a JavaScript sandboxing library. Prior to 0.8.36, SandboxJS blocks direct assignment to global objects (for example Math.random = ...), but this protection can be bypassed through an exposed callable constructor path: this.constructor.call(target, attackerObject). Because this.constructor resolves to the internal SandboxGlobal function and Function.prototype.call is allowed, attacker code can write arbitrary properties into host global objects and persist those mutations across sandbox instances in the same process. This vulnerability is fixed in 0.8.36.
Source: NIST National Vulnerability Database NVD
References
- exploit security-advisories@github.com