WHMCS SQL Injection Could Expose Customer Data and Admin Password Hashes without Login
An unauthenticated SQL injection in WHMCS's shopping cart could let anyone retrieve customer records and administrator password hashes from the database. A second SQL injection in the Client Area requires a logged-in client with the View & Manage Contacts permission and could expose other customers' data and admin hashes.
[email protected] (The Hacker News) Follow
Published on thehackernews.com
{{media:0}}
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
Likely the shopping cart and Client Area build SQL queries from user-supplied input without proper parameterisation, allowing injection.
Impact
An unauthenticated attacker could read customer personal and support information and admin password hashes; the hashes are not working passwords but could be cracked offline. A logged-in client with the View & Manage Contacts permission could read other customers' personal, billing, and support information plus the same admin records.
What the attacker needed
No login for the shopping cart flaw; logged-in client with View & Manage Contacts for the second…; self-hosted installation for manual patching
The fix
The flaws were fixed in WHMCS 9.0.10 and 8.13.8, with 9.1.2 named for the 9.1 series; self-hosted administrators must install the update, while Cloud installations update automatically.
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 a website builds a database query using input from a user without properly separating the two, so the input can change the query's meaning. Here, the shopping cart page could be made to return data it should never show, including customer details and scrambled admin passwords. The scrambled passwords are not usable directly, but an attacker could try to guess them offline.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.