Skip to content
DoS Disclosed report Intermediate CVE-2015-0228

mod_lua: Crash in websockets PING handling

A stack recursion crash existed in the mod_lua module when a Lua script used the websocket upgrade function. A malicious client could send a crafted PING request to crash the server process.

guido Follow

Originally disclosed on HackerOne

  • Fixed in 7 days
  • Paid in 10 months
  • Disclosed after 7 days

A stack recursion crash in the mod_lua module was found. A Lua script executing the r:wsupgrade() function could crash the process if a malicious client sent a carefully crafted PING request. This issue affected releases 2.4.7 through 2.4.12 inclusive.

https://httpd.apache.org/security/vulnerabilities_24.html

The original report as published on HackerOne, by guido. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

How it worked

Root cause

Likely the websocket PING handling in mod_lua recursed without a depth limit, so a crafted PING frame caused unbounded stack recursion.

Impact

A malicious client could crash the server process, causing a denial of service for that process.

What the attacker needed

Mod_lua enabled; a Lua script calls r:wsupgrade(); attacker can send websocket PING frames

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 report has not been written yet. The Original tab links to the source.

This is a bug in a web server module that lets Lua scripts handle websocket connections. If a script upgrades a connection to a websocket, a bad client can send a special ping message that causes a stack recursion crash, stopping the server process.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More by guido

View all

49 more disclosed reports, best first.

More from Internet Bug Bounty

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.