修正版未確認を含むAIKTP

AIKTP 5.0.7以下 - 予測可能なaiktpz_tokenと/checkToken総当たりオラクルを介した認証不要の予測可能なトークンによる認可回避

元情報の公開:2026/11/19 05:53 / 元情報の更新:2026/11/19 18:32(日本時間)

日本語訳

WordPress用プラグイン「AIKTP」は、5.0.7以下のすべてのバージョンで、予測可能なトークンによる認可回避の脆弱性があります。プラグインの同期トークンaiktpz_tokenが、暗号学的でないPHPのuniqid()関数で生成されることが原因です。この関数は実時刻に基づく値を生成し、生成時刻の不確かな1秒ごとに約100万個のマイクロ秒単位の候補が存在します。一方、認証不要で呼び出し頻度の制限もないRESTエンドポイント/wp-json/aiktp/checkToken(permission_callback => __return_trueで登録)が、トークンに対する公開の総当たりオラクルとして機能します。

同時に、check_valid_tokenとそのラッパーverify_aiktp_token_with_edit_capability、verify_aiktp_token_with_upload_capabilityの権限チェックは、実際のREST呼び出し元ではなく、サーバー側に保存された管理者アカウント(aiktp_authorオプション)だけを調べます。そのため、トークンを所持するだけで、外部からのどのリクエストにも管理者相当の権限が与えられます。

認証されていない攻撃者が同期トークンを復元し、POST /wp-json/aiktp/createpostを呼び出してサイト管理者名義の任意の投稿を公開し、POST /wp-json/aiktp/doUpdatePostWithImageURLで任意の既存投稿の本文を上書きし、POST /wp-json/aiktp/doUploadImageToWPでリモートのメディアを取り込んで任意の投稿のアイキャッチ画像に設定できます。さらに、aiktpz_tokenオプションが一度も初期化されていない場合、check_valid_token内の緩い比較により、checkTokenオラクルは空のトークンの送信に対して成功を返します。これにより、総当たりを一切必要としない、手間のかからない回避が可能です。

原文(英語)

AIKTP <= 5.0.7 - Unauthenticated Authorization Bypass via Predictable Token via Predictable 'aiktpz_token' + '/checkToken' Brute-Force Oracle

The AIKTP plugin for WordPress is vulnerable to Authorization Bypass via Predictable Token in all versions up to, and including, 5.0.7. The vulnerability exists because the plugin's sync token (`aiktpz_token`) is generated using PHP's non-cryptographic `uniqid()` function — producing a wall-clock-derived value with approximately one million microsecond candidates per uncertain generation second — while the unauthenticated, unthrottled REST endpoint `/wp-json/aiktp/checkToken` (registered with `permission_callback => __return_true`) acts as a public brute-force oracle for the token; simultaneously, the capability checks in `check_valid_token` and its wrappers (`verify_aiktp_token_with_edit_capability`, `verify_aiktp_token_with_upload_capability`) inspect only a server-side stored Administrator account (option `aiktp_author`) rather than the actual REST caller, meaning possession of the token alone grants Administrator-equivalent authority to any external request. This makes it possible for unauthenticated attackers to recover the sync token and then invoke `POST /wp-json/aiktp/createpost` to publish arbitrary posts attributed to a site Administrator, `POST /wp-json/aiktp/doUpdatePostWithImageURL` to overwrite the body content of any existing post, and `POST /wp-json/aiktp/doUploadImageToWP` to import remote media and attach it as the featured image of any post. Additionally, when the `aiktpz_token` option has never been initialized, the `checkToken` oracle returns success for an empty token submission due to a loose comparison in `check_valid_token`, providing a zero-effort bypass that requires no brute-forcing whatsoever.

引用元:Wordfence

確認と対応の進め方

WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。

修正版が未確認の製品は、まず提供元の最新情報を確認してください。記事の取得時点より後に修正版が公開されている場合があります。

プラグインの代替を探す場合は、必要な機能と既存データの移行方法を確認してください。削除前にバックアップを確保し、代替製品の動作を検証してください。

プラグインの管理・更新方法(WordPress公式・日本語)
代替プラグインを探す(WordPress公式)

運営元KanriPressのサービス案内

サイトを守る備えを、今日から始めませんか。

「KanriPress WP Sakimori」は、ファイアウォールと仮想パッチで攻撃に備え、マルウェア検査と継続監視でサイトの異変を捉えます。毎日のバックアップで万一に備え、月次レポートで保護・監視の状況も確認。日々の管理負担を抑えながらWordPressを守る仕組みを、月額2,200円(税込)で導入できます。

サービス内容・料金を見る