Servoのサンドボックス回避の脆弱性、iframe内のページが無操作で遷移される
Summary
Servoの0.3.0より前では、サンドボックス化されたiframeが宣言的なリフレッシュを使い、利用者の操作なしに自動で画面遷移できてしまいます。埋め込まれた側の内容が差し替えられるフィッシングや、リダイレクトの繰り返しにつながるおそれがあります。修正版として0.3.0が公開されているため、Servoを利用している場合は0.3.0以降へ更新してください。
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.
Servoの0.3.0より前では、サンドボックス化されたiframeが宣言的なリフレッシュを使い、利用者の操作なしに自動で画面遷移できてしまいます。埋め込まれた側の内容が差し替えられるフィッシングや、リダイレクトの繰り返しにつながるおそれがあります。修正版として0.3.0が公開されているため、Servoを利用している場合は0.3.0以降へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| servoservo | — | Not listed |
| crates.ioservo |
< 0.3.0→ 0.3.0 |
0.3.0 |
| rustservo |
< 0.3.0→ 0.3.0 |
0.3.0 |
Original description The description as published by the source.
A sandboxed iframe can auto-navigate itself via declarative refresh even when automatic features should be blocked. This allows attacker-controlled embedded content to redirect itself without user action.
Summary
Servo allows a sandboxed iframe to auto-navigate itself via declarative refresh in configurations that should block automatic features.
The issue reproduces in the must-block rows of the matrix:
sandbox=""sandbox="allow-same-origin"sandbox="allow-forms"sandbox="allow-same-origin allow-forms"
This is a client-side sandbox-policy bypass. It does not by itself prove script execution or parent DOM access, but it does let attacker-controlled sandboxed content redirect itself without user action.
Details
The declarative refresh path is missing sandbox enforcement:
- [components/script/dom/document/document.rs:239]
RefreshRedirectDue::invoke()containsTODO: check sandbox - [components/script/dom/document/document.rs:4522] the refresh scheduler contains
TODO: handle active sandboxing flag
The implementation currently schedules and executes the refresh without enforcing the sandboxed automatic-features restriction described by the HTML spec comments in the same code.
What I observed:
- In Servo, the must-block rows above navigated successfully.
- In Chrome, the same rows were blocked.
PoC
Serve the HTML files in this folder over HTTP.
Files:
- child.html
- [succes…
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- package github.com
- REDHAT Red Hat
- web github.com
- web github.com
- web github.com
- web github.com
- web nvd.nist.gov
- web github.com