Fortifying Your Defenses: The Critical KerioControl Firewall RCE
A CRLF injection in unauthenticated endpoints of KerioControl firewalls allows HTTP response splitting, which can lead to reflected XSS and then RCE by stealing CSRF tokens to access admin interfaces. Attackers could execute arbitrary commands on exposed devices.
Published on medium.com
In the relentless battleground of cybersecurity, vigilance is our strongest asset. Imagine an attacker, thousands of miles away, effortlessly seizing control of your firewall — your first line of defense against digital threats.
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 improper sanitisation of user input in unauthenticated endpoints, allowing CRLF sequences to be injected into HTTP headers and cause response splitting.
Impact
Attackers could execute arbitrary commands remotely, compromising networks, exfiltrating sensitive data, and deploying malware; over 12,000 systems remained exposed as of February 2025.
What the attacker needed
KerioControl versions 9.2.5 to 9.4.5; Network access to the device; Victim (admin) interaction for XSS
The fix
The vulnerability was fixed in KerioControl 9.4.5 Patch 1, and additional mitigations include restricting admin access and monitoring logs.
How it was found
- Target unauthenticated endpoints such as /nonauth/addCertException.cs.
- Inject CRLF sequences via HTTP parameters to split the response.
- Use the response splitting to achieve reflected XSS.
- Steal CSRF tokens via XSS to access admin interfaces.
- Execute arbitrary system commands on the device.
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.
A firewall is a device that filters network traffic to protect a network. This bug lets an attacker send special characters in a web request that trick the firewall's web server into splitting its response, which can run malicious code in an admin's browser and eventually take full control of the device.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.