Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Intelligence View
⚡ tsecurity.de Intelligence

Breaking 2FA in WordPress: Account Takeover via CSRF in Google Authenticator

In the WordPress ecosystem, security plugins are the first line of defense. However, when they fail, the impact can be critical.

In this article, we analyze a Cross-Site Request Forgery (CSRF) vulnerability in the Google Authenticator plugin (<= 0.55) that allows something extremely severe:

Overwrite an administrator’s 2FA secret without their consent.

Technical Summary

  • Affected Plugin: Google Authenticator (WordPress)
  • Version: <= 0.55
  • CWE: CWE-352 (CSRF)
  • Authentication Required: None (the victim must be logged in as an administrator)
function save_submitted_setup_page() { 
$user = wp_get_current_user();
$secret = empty($_POST['GA_secret']) ? '' : sanitize_text_field($_POST['GA_secret']);
$otp = empty($_POST['GA_otp_code']) ? '' : sanitize_text_field($_POST['GA_otp_code']);

if ($timeslot = $this->verify($secret, $otp, $relaxed_mode, '')) {
update_user_option($user->ID, 'googleauthenticator_secret', $secret, true);
update_user_option($user->ID, 'googleauthenticator_enabled', 'enabled', true);
}
}

Root Cause

The developer completely omitted critical security controls:

  • ❌ check_admin_referer()
  • ❌ wp_verify_nonce()

This enables classic CSRF attacks against an extremely sensitive functionality: 2FA configuration.

Real-World Attack Scenario

The attack is not just theoretical — it is highly exploitable and, when combined with social engineering, results in full account takeover:

1. Attacker Preparation

  • Generates a valid secret (e.g., KRUGS4ZANFZSA43B)
  • Adds it to their own Google Authenticator app
  • Sets up a phishing site

2. Social Engineering

  • Sends an email such as: Critical 2FA security update required

3. Victim Interaction

  • Adds the attacker’s secret to their app
  • Generates a valid OTP
  • Enters it into the malicious website

4. CSRF Execution

  • The browser sends a legitimate POST request (without a nonce)
  • WordPress accepts it as valid

5. Result

  • The 2FA secret is replaced
  • The admin is locked out
  • The attacker gains full access

Attack Demonstration

https://medium.com/media/6242ba7398727b3455d35cb8771c8f08/href

Impact

  • Full account takeover
  • Persistence
  • Complete 2FA bypass
  • Loss of access for the legitimate administrator

Breaking 2FA in WordPress: Account Takeover via CSRF in Google Authenticator was originally published in InfoSec Write-ups on Medium, where people are continuing the conversation by highlighting and responding to this story.

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Breaking 2FA in WordPress: Account Takeover via CSRF in Google Authenticator

Thematisch verwandte Begriffe: Breaking, WordPress, Account, Takeover · 6 Treffer

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-93956 | A flaw has been found in olivier-ls PHP-FTS up to 1.1.2. Affected by thi…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick