Skip to content
SQL injection Write-up Intermediate

Loginizer before 1.6.4 — Unauthenticated SQL Injection

Loginizer before 1.6.4 wrote the submitted username into an SQL query without proper neutralisation, creating an unauthenticated time-based blind SQL injection reachable from the WordPress login page. An attacker could extract usernames, email addresses and password hashes from the WordPress users table, and store crafted values that were later rendered in the admin interface.

wpdeeply.com

Published on wpdeeply.com

An unauthenticated SQL injection in Loginizer’s brute-force protection, reachable from any WordPress login form. Fixed in 1.6.4 — and pushed to over a million sites by a rare WordPress forced update.

The author, on wpdeeply.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The failed-login handling and IP-validation helper placed request values into SQL queries against the plugin's logging tables without sufficient escaping.

Impact

An unauthenticated attacker could extract usernames, email addresses and password hashes, read other database contents accessible to the WordPress database user, and store crafted values later rendered in the admin interface.

What the attacker needed

Reachable WordPress login page; Loginizer below 1.6.4; no account needed

The fix

The vulnerability was fixed in Loginizer 1.6.4, which also tightened input sanitisation elsewhere in the plugin.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

SQL injection is when user input is placed into a database query without being made safe, so the input can change the query's meaning. Here the plugin logged failed login usernames into its database, and an attacker could send a specially crafted username to make the database reveal other data. Because the result was not shown on the page, the attacker measured response times to guess the data one piece at a time.

What is SQL injection?

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.

Similar reports

View all

Same bug class and techniques, clearest first.

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.