WebP Express 0.25.15以下 - saltおよびapi-key-cryptedパラメータの不正なbcryptソルトを介した認証不要の認可回避
元情報の公開:2026/11/26 11:46 / 元情報の更新:2026/11/27 00:47(日本時間)
日本語訳
WordPress用プラグイン「WebP Express」は、0.25.15以下のすべてのバージョンで、不正なbcryptソルトを介した認可回避の脆弱性があります。
runAccessChecks()関数が、攻撃者の指定したsalt POSTパラメータを十分に検証せず、そのままPHPのcrypt()へ渡すことが原因です。ソルトにbcryptで有効な文字集合[./0-9A-Za-z]以外の文字が含まれると、crypt()は空文字列を返します。その結果を攻撃者が制御するapi-key-crypted POSTパラメータと==で緩く比較するため、空の値を送信すると一致し、チェックを通過できます。
認証されていない攻撃者がウェブサービスのAPIキー認証チェックを回避し、クラウド変換用エンドポイントへ任意の画像ファイルをアップロードできます。ファイルはwp-content/webp-express/webp-images/wpc/配下の予測可能で公開アクセス可能なパスに残ります。
ホワイトリストの「Require api-key to be crypted in transfer?」設定でも、この回避は防げません。この設定が制御するのは平文のAPIキーを比較する分岐だけで、脆弱なロジックを含む暗号化キーの分岐には影響しないためです。
原文(英語)
WebP Express <= 0.25.15 - Unauthenticated Authorization Bypass via Malformed Bcrypt Salt via 'salt' and 'api-key-crypted' Parameters
The WebP Express plugin for WordPress is vulnerable to Authorization Bypass via Malformed Bcrypt Salt in all versions up to, and including, 0.25.15. This is due to insufficient validation of the attacker-supplied `salt` POST parameter in the `runAccessChecks()` function, which passes the unvalidated salt directly to PHP's `crypt()` — causing it to return an empty string when the salt contains characters outside the valid bcrypt alphabet `[./0-9A-Za-z]` — and then loosely compares the resulting empty string against the attacker-controlled `api-key-crypted` POST parameter using `==`, allowing an empty submission to match and satisfy the check. This makes it possible for unauthenticated attackers to bypass the web service API-key authentication check and upload arbitrary image files to the cloud-conversion endpoint, where they persist at a predictable, publicly reachable path under `wp-content/webp-express/webp-images/wpc/`. The 'Require api-key to be crypted in transfer?' whitelist setting does not mitigate this bypass, as it only gates the plaintext API-key comparison branch and has no effect on the crypted-key branch containing the vulnerable logic.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。