WP Job Portal 2.7.2以下 - wpjobportal-socialid Cookieによるアカウント乗っ取りを介した認証不要の権限昇格
元情報の公開:2026/11/26 11:07 / 元情報の更新:2026/11/26 23:36(日本時間)
日本語訳
WordPress用プラグイン「WP Job Portal – AI-Powered Recruitment System for Company or Job Board website」は、2.7.2以下のすべてのバージョンで、アカウント乗っ取りにつながる認証回避の脆弱性があります。
WPJOBPORTALuser::__construct()では、wpjobportal-socialid Cookieが空でないかを、sanitize_key()の適用前の未加工の値で判定します。そのため、[a-z0-9_-]以外の文字だけで構成された値が判定を通過し、その後sanitize_key()で空文字列に変換されます。この空文字列がWHERE socialid = ''というデータベースクエリの値として使われ、socialid列が空の最初のポータルアカウントに一致します。
認証されていない攻撃者が既存のWP Job PortalのEmployer(雇用主)またはJobseeker(求職者)アカウントに関連付けられ、被害者の会社、求人情報、履歴書、応募を作成・編集・削除できます。さらに、saveuserからsyncWPUserName()への経路で、連携するWordPressユーザーの名、姓、表示名を上書きできます。
ソーシャルログインで登録していないすべてのポータルアカウントは、socialidがデフォルトの空値のままであるため、ほぼすべてのインストール環境で悪用できます。savecompanyやsaveuserなど後続処理のnonceは、すでに乗っ取られたセッション内で発行され、攻撃者自身の後続リクエストに対して有効になるため、nonceチェックではこの問題を軽減できません。
攻撃が成功すると、攻撃者は特定のWordPressユーザーに関連付けられた、すでに権限のある別のWP Job Portal Employer/Jobseekerアカウントを制御できます。攻撃者の元のアカウント自体が昇格するわけではありません。
原文(英語)
WP Job Portal <= 2.7.2 - Unauthenticated Privilege Escalation via Account Takeover to 'wpjobportal-socialid' Cookie
The WP Job Portal – AI-Powered Recruitment System for Company or Job Board website plugin for WordPress is vulnerable to Authentication Bypass leading to Account Takeover in all versions up to, and including, 2.7.2 This is due to a flaw in `WPJOBPORTALuser::__construct()` where the non-empty guard on the `wpjobportal-socialid` cookie is evaluated against the raw cookie value before `sanitize_key()` is applied — allowing a value composed entirely of characters outside `[a-z0-9_-]` to pass the guard, be reduced to an empty string by `sanitize_key()`, and be used as the literal value in a `WHERE socialid = ''` database query that matches the first portal account whose `socialid` column is empty. This makes it possible for unauthenticated attackers to be bound to an existing WP Job Portal Employer or Jobseeker account, gaining the ability to create, edit, and delete the victim's companies, job listings, resumes, and applications, as well as overwrite the linked WordPress user's first name, last name, and display name via the `saveuser`→`syncWPUserName()` path. Exploitation is viable on virtually all installations because every portal account not registered through the social-login flow retains the default empty `socialid` value; nonce checks on downstream actions such as `savecompany` and `saveuser` do not mitigate this issue because those nonces are minted within the already-hijacked session and validate against the attacker's own subsequent requests. Successful exploitation gives the attacker control of a distinct, already-privileged WP Job Portal Employer / Jobseeker (bound to a specific WordPress user) account; it does not promote the attacker's original account.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。