Microsoft HTTP.sys — 1 vulnerability check

noctis ships 1 vulnerability check for Microsoft HTTP.sys, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.

← All products · Feeds on GitHub

Microsoft Windows HTTP.sys Range Header RCE (CVE-2015-1635 / MS15-034)

CVECVE-2015-1635
Severitycritical · CVSS 9.8
Categoryrce — Remote code execution
Serviceshttp, https
Detectionhttp_request, match · highest QoD 75
Feedtests/vulnerabilities/microsoft-httpsys/CVE-2015-1635.yaml

Tests Microsoft HTTP.sys for the MS15-034 integer-overflow range bug. A control request (no Range) must return 200; an oversized-Range request (bytes=0-18446744073709551615) must return 416 "The requested range is not satisfiable" from a Microsoft/IIS server. The differential prevents a blanket-416 host from being flagged.

How noctis detects it

  1. HTTP(S) request GET /
  2. HTTP(S) request GET /
  3. Checks overflow_resp.body for requested range is not satisfiable → finding QoD 75: HTTP.sys MS15-034 overflow: oversized Range returned … with Server=…; control request returned …

References:

Feed source — tests/vulnerabilities/microsoft-httpsys/CVE-2015-1635.yaml
# Microsoft Windows HTTP.sys Remote Code Execution — CVE-2015-1635 (MS15-034)
#
# HTTP.sys (the kernel-mode HTTP stack behind IIS) mishandles an oversized
# Range header. A request carrying `Range: bytes=0-18446744073709551615`
# (0 .. 2^64-1) triggers an integer overflow in the range-length arithmetic;
# an unpatched stack answers the probe with HTTP 416 and the text
# "The requested range is not satisfiable" from a Microsoft/IIS server, while a
# patched stack rejects or clamps the range and answers normally (200/400).
#
# Detection (safe, non-destructive): a single inert oversized-Range probe —
# no DoS payload, no blue-screen trigger. The finding is a DIFFERENTIAL:
#   * a NORMAL request (no oversized Range) must return 200 (control), and
#   * the oversized-Range request must return the 416 overflow signature
#     from a Microsoft/IIS banner.
# Requiring the 200 control rules out a host that blanket-returns 416 to
# everything (which is not the HTTP.sys overflow).
uid: 6299dc89-b1ee-4287-898d-625e337a9075
name: "Microsoft Windows HTTP.sys Range Header RCE (CVE-2015-1635 / MS15-034)"
description: |
  Tests Microsoft HTTP.sys for the MS15-034 integer-overflow range bug.
  A control request (no Range) must return 200; an oversized-Range request
  (bytes=0-18446744073709551615) must return 416 "The requested range is not
  satisfiable" from a Microsoft/IIS server. The differential prevents a
  blanket-416 host from being flagged.
cves: [CVE-2015-1635]
cvss: 9.8
severity: critical
category: rce
confidence_base: 0.25
tags: [microsoft, http.sys, httpsys, iis, ms15-034, range, rce, kev]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2015-1635"
  - "https://github.com/technion/erlvulnscan"
  - "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2015/CVE-2015-1635.yaml"
  - "https://www.rapid7.com/db/?q=CVE-2015-1635"

steps:
  # ── Control probe: a normal request (no oversized Range) ──────────────────
  # On a genuine HTTP.sys host this returns 200. If a host answers this with
  # 416 too, it is a blanket-416 responder, not the overflow, and the final
  # match's `control_resp.status == 200` guard rejects it.
  - id: control-probe
    action: http_request
    method: GET
    path: "/"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    store_as: control_resp

  # ── Overflow probe: the inert oversized Range header ──────────────────────
  - id: overflow-probe
    action: http_request
    method: GET
    path: "/"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    headers:
      Range: "bytes=0-18446744073709551615"
    store_as: overflow_resp

  # ── Differential match ────────────────────────────────────────────────────
  # Fires only when: the oversized-Range probe returns 416 with the overflow
  # text, from a Microsoft/IIS server banner, AND the control (no-Range) request
  # returned 200. Patched hosts (200/400 to the overflow probe) and blanket-416
  # hosts (control != 200) both fail the guard.
  - id: overflow-match
    action: match
    source: overflow_resp.body
    pattern: "requested range is not satisfiable"
    case_insensitive: true
    condition: 'overflow_resp.status == 416 && control_resp.status == 200 && ("server" in overflow_resp.headers) && (overflow_resp.headers["server"].to_lower().contains("microsoft") || overflow_resp.headers["server"].to_lower().contains("iis"))'
    on_match:
      finding:
        confidence_delta: 0.50
        qod: 75
        evidence: "HTTP.sys MS15-034 overflow: oversized Range returned {{overflow_resp.status}} with Server={{overflow_resp.headers.server}}; control request returned {{control_resp.status}}"
      stop: true

View these feeds on GitHub