Skip to content
RCE Write-up Advanced

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.

Deven Chhajed Follow

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.

Deven Chhajed, on medium.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

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

  1. Target unauthenticated endpoints such as /nonauth/addCertException.cs.
  2. Inject CRLF sequences via HTTP parameters to split the response.
  3. Use the response splitting to achieve reflected XSS.
  4. Steal CSRF tokens via XSS to access admin interfaces.
  5. 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.

More by Deven Chhajed

View all

3 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.