Nginx security advisory (CVE-2013-2028)
A stack-based buffer overflow in nginx worker processes could be triggered by a specially crafted request, potentially allowing arbitrary code execution. The flaw affected versions 1.3.9 through 1.4.0 and was fixed in 1.5.0 and 1.4.1.
mailman.nginx.org
Published on mailman.nginx.org
Greg MacManus, of iSIGHT Partners Labs, found a security problem in several recent versions of nginx. A stack-based buffer overflow might occur in a worker process while handling a specially crafted request, potentially resulting in arbitrary code execution (CVE-2013-2028).
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 a stack-based buffer overflow in nginx's handling of chunked transfer-encoding requests.
Impact
A remote attacker could potentially execute arbitrary code on the server, though the advisory only says 'might' and 'potentially'.
What the attacker needed
Nginx 1.3.9 - 1.4.0; ability to send crafted requests
The fix
The problem was fixed in nginx 1.5.0 and 1.4.1, and a patch is available.
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 buffer overflow is when a program writes more data into a fixed-size memory area than it can hold, which can corrupt nearby memory. Here, a malicious request to the nginx web server could cause this, and in the worst case an attacker might run their own code on the server.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.