Nginx security advisory (CVE-2017-7529)
A flaw in nginx's range filter allowed a crafted request to trigger an integer overflow, causing incorrect range processing and potentially leaking sensitive information. With standard modules, an attacker could obtain a cache file header that might contain the backend server's IP address or other sensitive data.
mailman.nginx.org
Published on mailman.nginx.org
A security issue was identified in nginx range filter. A specially crafted request might result in an integer overflow and incorrect processing of ranges, potentially resulting in sensitive information leak (CVE-2017-7529).
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 an integer overflow in the range filter's calculation of range offsets, leading to out-of-bounds processing.
Impact
An attacker could obtain a cache file header, which may contain the backend server's IP address or other sensitive information; with third-party modules, denial of service or worker memory disclosure is potentially possible, though no such modules are known.
What the attacker needed
Nginx 0.5.6 to 1.13.2; response served from cache
The fix
The issue was fixed in nginx 1.13.3 and 1.12.1; for older versions, setting max_ranges to 1 was offered as a temporary workaround.
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.
nginx is a web server that can cache responses. When a client asks for only part of a file (a range request), nginx calculates where that part starts and ends. A bug in that calculation let a malicious request read a little bit of memory it should not see, such as the header of a cached file.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.