SharpEmuのデバッガーフロントエンドに、CSRFで任意のプロセスを実行される脆弱性
Summary
悪意あるWebページを閲覧するだけで、SharpEmuのデバッガーフロントエンドのAPIを外部から操作され、既存のバイナリを利用者の権限で実行される恐れがあります。影響を受けるのは0.0.3-release.3以前の版で、この脆弱性を修正した版は事実として確認できていません。最新の情報を確認してください。
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.
悪意あるWebページを閲覧するだけで、SharpEmuのデバッガーフロントエンドのAPIを外部から操作され、既存のバイナリを利用者の権限で実行される恐れがあります。影響を受けるのは0.0.3-release.3以前の版で、この脆弱性を修正した版は事実として確認できていません。最新の情報を確認してください。
Original description The description as published by the source.
SharpEmu is an experimental PlayStation 5 emulator for Windows and Linux. In version 0.0.3-release.3 and earlier, the repository-provided debugger frontend tooling is vulnerable while running. This tooling is not included in the release archives. The frontend exposes an HTTP API on 127.0.0.1:8765 without authentication or CSRF token. Its do_POST handler in tools/SharpEmu.DebuggerFrontend/debugger_frontend.py does not validate the Origin, Referer, Sec-Fetch-Site, or Host headers. The _read_json_body() function also accepts JSON sent with browser-simple content types instead of requiring application/json . A malicious page that can reach the loopback listener can send cross-origin requests to /api/launch , /api/command , and /api/connect . Chromium may require Local Network Access permission for pages served from public origins. Local-origin pages and other delivery paths are not consistently subject to this restriction. The /api/launch endpoint accepts an attacker-selected emulatorPath if it points to an existing file on the victim’s host. On POSIX systems, that file must also be executable. The endpoint additionally requires an existing ebootPath . The /api/command endpoint exposes debugger operations, including write-memory , set-register , and continue . The /api/connect endpoint can initiate outbound TCP connections. These operations can let an attacker execute an existing binary with the victim’s privileges, control the attached emulated process, or…
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- patch github.com
- patch github.com
- REDHAT Red Hat
- web github.com