CVE-2026–41940: cPanel ve WHM Sistemlerinde Kimlik Doğrulama A
cPanel and WHM contained an authentication bypass in the cpsrvd daemon where CRLF characters in HTTP Basic Authorization headers were not sanitised before being written to session files, allowing an attacker to inject administrative session data. An unauthenticated attacker could gain root-level access to the hosting server and control all hosted accounts.
Published on medium.com
Modern internet altyapısının temel taşlarından biri olan web barındırma kontrol panelleri, milyonlarca web sitesinin, veritabanının ve e-posta sisteminin yönetimini merkezi bir noktada toplar. Bu ekosistemin en baskın oyuncusu olan cPanel ve Web Host Manager (WHM), 2026 yılının başlarında internet tarihinin en kritik…
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 cpsrvd daemon did not sanitise CRLF characters in HTTP Basic Authorization headers before writing them into session files, allowing session data injection.
Impact
An unauthenticated attacker could gain root access to the hosting server, leading to full control over all hosted accounts, data theft, and service disruption; the report notes active exploitation and that 2FA is bypassed.
What the attacker needed
Internet-facing cPanel/WHM instance; no credentials required
The fix
The vulnerability was fixed by updating cPanel to the latest version and restarting the cpsrvd service; network-level mitigations such as restricting administrative ports were also recommended.
How it was found
- Discover exposed cPanel instances and version information via scanning engines and endpoint queries.
- Send a POST request to the login endpoint to obtain a session cookie.
- Send a request with a malformed Authorization header containing CRLF characters to inject session data.
- Trigger the server to reload the session file, causing it to treat the attacker as root.
- Verify root access by calling an API endpoint.
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.
This report describes a flaw in cPanel and WHM, which are control panels used to manage web hosting servers. The software failed to clean up special newline characters in login headers, so an attacker could trick the server into creating a session file that says they are the root administrator. That let them take full control of the server without any password.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.