概要
細工した OpenAPI 定義から作ったクライアントを使うと、不正な PHP を実行されるおそれ。
元の説明(英語)を読む
Jane is a set of PHP libraries that generates models and API clients from JSON Schema and OpenAPI specifications. Prior to 7.12.0, the Jane open-api-3 generator emits an OpenAPI header parameter name verbatim as an array key in generated Client/Endpoint method docblocks. A header parameter name containing a PHPDoc closing delimiter can terminate the comment early and place attacker-controlled PHP in class-body position, including an __construct method that runs when the generated Client is instantiated. Exploitation requires generating a client from an attacker-influenced OpenAPI document and then using the generated SDK, and can execute arbitrary PHP with the consuming application's privileges. This issue is fixed in version 7.12.0.
影響を受ける人
Jane で OpenAPI からクライアントを生成する開発者
対策
- Jane を 7.12.0 以降に更新する
- 出所の不明な OpenAPI 定義からは生成しない
国内の動き
本文に同じ CVE 番号のある国内の注意喚起・報道は、まだ無い。
海外の動き
本文に同じ CVE 番号のある海外の注意喚起・報道は、まだ無い。
PoC
公開されている PoC は、まだ見つかっていない。