Magic Login Mail or QR Codeに管理者アカウントを乗っ取られる脆弱性
Summary
WordPressプラグイン「Magic Login Mail or QR Code」の2.07以前には、管理者のメール宛てのログインリンクを攻撃者が差し替え、管理者権限のセッションを奪われる脆弱性があります。管理者がリンクをクリックすることが悪用の条件です。修正版の情報は公開されていないため、最新の情報を確認してください。
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.
WordPressプラグイン「Magic Login Mail or QR Code」の2.07以前には、管理者のメール宛てのログインリンクを攻撃者が差し替え、管理者権限のセッションを奪われる脆弱性があります。管理者がリンクをクリックすることが悪用の条件です。修正版の情報は公開されていないため、最新の情報を確認してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| katsushi-kawamoriMagic Login Mail or QR Code |
≤ 2.07→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
The Magic Login Mail or QR Code plugin for WordPress is vulnerable to Privilege Escalation via Administrator Account Takeover in versions up to, and including, 2.07. This is due to the curpageurl() function falling back to the raw $_SERVER['HTTP_HOST'] value — with no validation against the site's configured origin via home_url() or site_url() — when get_the_permalink() returns empty or false, allowing an attacker-controlled Host header to become the URL origin of the magic-login link generated by generate_url() and delivered to the target via wp_mail(). This makes it possible for unauthenticated attackers to intercept the one-time uid and token pair sent to a targeted Administrator's email and replay them against the real site, causing autologin_via_url() to call wp_set_auth_cookie() and establish a full Administrator session on the targeted account. Exploitation requires the [magic_login] shortcode to render on a path where get_the_permalink() returns empty or false (such as a 404 page or a block-theme header template part), the web server to forward non-canonical Host headers, the attacker to know the target administrator's email address, and the administrator to click the attacker-originated magic-login link. Successful exploitation gives the attacker control of a distinct, already-privileged Administrator account; it does not promote the attacker's original account. Successful exploitation additionally requires an action by an administrator — the at…
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory