
Threaded scanner and two-stage proof-of-concept for CVE-2015-1635 (MS15-034), detecting the HTTP.sys Range header integer overflow via a 416 response probe and 206 control check.
Microsoft Windows 'HTTP.sys' - Remote Code Execution
| field | value |
|---|---|
| CVE | CVE-2015-1635 |
| severity | critical |
| CVSS | 10 (record; NVD primary CVSS:2.0 10.0 AV:N/AC:L/Au:N/C:C/I:C/A:C, secondary CVSS:3.1 9.8, EPSS 0.99999) |
| fixed in | MS15-034: KB3042553 (Windows 7 SP1 / Server 2008 R2 SP1), KB3000849 (Windows 8 / Server 2012), KB3003057 (Windows 8.1 / Server 2012 R2) |
| class | out-of-bounds write in the http.sys kernel driver, remote code execution (CWE-94), CISA KEV listed |
| scanner version | 1.0.0 |
| python | 3.8+ stdlib only, no third-party deps |
If you want the exploit, find it here: https://satoshidisk.com/pay/CT5RUl
HTTP.sys (the kernel-mode http.sys driver that backs IIS and any
HttpListener service) mis-parses the rear bound of the Range header.
With Range: bytes=0-18446744073709551615 the 64-bit end offset
2^64-1 is truncated to the 32-bit value 0xFFFFFFFF (-1) while the
range length rear - front + 1 wraps to 0, so the 416 answer path
copies the range spec past the buffer end and the request is answered
out of order. The nuclei template scores the observable: a reply whose
body carries both words HTTP Error 416 and
The requested range is not satisfiable and whose headers carry the
word Microsoft is the unpatched kernel-mode parser, i.e. vulnerable.
The fix is MS15-034.
HTTP.sys in Microsoft Windows 7 SP1, Windows Server 2008 R2 SP1,
Windows 8, Windows 8.1, and Windows Server 2012 Gold and R2 allows
remote attackers to execute arbitrary code via crafted HTTP requests,
aka "HTTP.sys Remote Code Execution Vulnerability". The parser in
http.sys converts the Range end offset with a ULARGE_INTEGER to
INT helper; for the sentinel value 18446744073709551615 the
conversion keeps only the low 32 bits (0xFFFFFFFF), the computed
length nRearRangeEnd - nFrontRangeEnd + 1 collapses to 0, and the
driver takes the "416 Requested Range Not Satisfiable" path with an
out-of-bounds write of the range structure. Because the driver runs in
kernel context in the IIS request path, one unauthenticated request per
connection is enough for full compromise. NVD keeps the record
critical (CVSS:2.0 10.0) and the entry is in the CISA KEV catalog;
remediation is to apply MS15-034 (or the later rollups that contain
it).
max-request: 1:
GET {{BaseURL}} with request header Range: bytes=0-18446744073709551615
(no redirect following - the direct answer is what is scored).condition: and): both template words
HTTP Error 416 and The requested range is not satisfiable must be
substrings of the reply body.Microsoft (the Server: Microsoft-HTTPAPI/2.0 branding).matchers-condition: and - check() returns True only when all
three word matches hold; any missing element yields False, never a
partial pass. The status (expected 416) is recorded as evidence in
result_b64 because the template itself carries no status matcher.error, not not-vuln.--json sidecar mirrors the same rows for tooling.Scanner:
python scanner/CVE-2015-1635/scanner.py urls.txt [threads] [out.csv] [--json out.json]
urls.txt takes one target per line (# comments skipped, scheme
auto-prepended when missing), e.g. shop.local or
http://shop.local:8080. The IIS/http.sys site usually answers on
port 80 or 443.
python exploit/CVE-2015-1635/exploit.py http://shop.local [--csv out.csv] [--json out.json] [--verbose]
It replays the template probe (Range: bytes=0-18446744073709551615),
re-runs the same URL with the well-formed control range
bytes=0-1 expecting 206 Partial Content + Content-Range, prints
numbered checks 1 to 5, the result dict (stage1 = 416 answer, stage2 =
206 control, token = md5 over the probe value), and the final verdict
line.
RCE POC SUITE
scanner : CVE-2015-1635 v1.0.0 (HTTP.sys, fixed by MS15-034)
endpoint: GET / with header Range: bytes=0-18446744073709551615
matchers: body words 'HTTP Error 416' AND 'The requested range is not satisfiable' AND header word 'Microsoft' (and), expected status 416
threads : 2 | csv: .scratch/scan1635.csv | json: .scratch/scan1635.json
[2026-12-03 13:58:42] loaded 2 target(s) from .scratch/urls1635.txt
[2026-12-03 13:58:42] summary total=2 answered=2 vulnerable=2 errors=0
[2026-12-03 13:58:42] timing wall=4ms avg=2ms max=2ms
[2026-12-03 13:58:42] wrote .scratch/scan1635.csv (2 row(s)) and .scratch/scan1635.json
| column | meaning |
|---|---|
| n | 1-based row number |
| url | target as provided (scheme auto-prepended if missing) |
| status | ok if the HTTP layer answered, error otherwise |
| vulnerable | True/False verdict from check() (all three template words) |
| elapsed_ms | per-target timing |
| token | 12-char md5 over `url |
| result_b64 | base64(JSON) full details (per-matcher evidence, observed status) |
scanner/CVE-2015-1635/scanner.py - threaded black-box scanner.scanner/CVE-2015-1635/README.md - this document.scanner/CVE-2015-1635/DESCRIPTION.md - architecture and probe plan.exploit/CVE-2015-1635/exploit.py - two-stage POC (416 overflow
probe + 206 control range).0 - completed and at least one target scored vulnerable.2 - completed with no vulnerable target (or no targets loaded).http/cves/2015/CVE-2015-1635.yaml