id: CVE-2015-1635

info:
  name: Microsoft Windows 'HTTP.sys' - Remote Code Execution
  author: Phillipo
  severity: critical
  description: |
    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."
  impact: |
    Attackers can execute arbitrary code remotely on Windows servers running vulnerable HTTP.sys, potentially leading to complete system compromise and data breach.
  remediation: |
    Apply Microsoft security update MS15-034 immediately to patch the vulnerability.
  reference:
    - https://www.exploit-db.com/exploits/36773
    - https://www.securitysift.com/an-analysis-of-ms15-034/
    - https://nvd.nist.gov/vuln/detail/CVE-2015-1635
    - http://www.securitytracker.com/id/1032109
    - https://github.com/b1gbroth3r/shoMe
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:L/Au:N/C:C/I:C/A:C
    cvss-score: 10
    cve-id: CVE-2015-1635
    cwe-id: CWE-94
    epss-score: 0.9431
    epss-percentile: 0.9995
    cpe: cpe:2.3:o:microsoft:windows_7:-:sp1:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: microsoft
    product: windows_7
    shodan-query:
      - '"Microsoft-IIS" "2015"'
      - '"microsoft-iis" "2015"'
      - cpe:"cpe:2.3:o:microsoft:windows_7"
  tags: cve,cve2015,kev,microsoft,iis,rce,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}"
    headers:
      Range: "bytes=0-18446744073709551615"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "HTTP Error 416"
          - "The requested range is not satisfiable"
        condition: and

      - type: word
        part: header
        words:
          - "Microsoft"
# digest: 490a004630440220194f5f70a4d2dd0339bd7805ad8b8d19f6e7c60ed5e76ca5a3b8c1cc26a2fdb5022021c73067122245ae88749c5661607e59cdfd588e97e6f7cbe356a789ab6a6374:922c64590222798bb761d5b6d8e72950