id: CVE-2024-23055

info:
  name: Plone Docker - Host Header Injection
  author: theamanrawat
  severity: medium
  description: |
    Plone Docker Official Image 5.2.13 (5221) is vulnerable to Host Header Injection due to improper validation of input by the HOST headers. This can lead to Cross-Site Scripting (XSS) attacks when the malicious Host header value is reflected in the response.
  impact: |
    Remote attackers can execute arbitrary code on the server, potentially leading to full system compromise.
  remediation: |
    Update to the latest version of Plone Docker or apply security patches addressing HOST header validation.
  reference:
    - https://github.com/c0d3x27/CVEs/tree/main/CVE-2024-23055
    - https://github.com/advisories/GHSA-fpqg-fv5v-vhpr
    - https://nvd.nist.gov/vuln/detail/CVE-2024-23055
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2024-23055
    epss-score: 0.05374
    epss-percentile: 0.90204
    cwe-id: CWE-79
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.component:"Plone"
  tags: cve,cve2024,plone,xss,host-header,injection

http:
  - raw:
      - |
        GET / HTTP/1.1
        Host: {{randstr}}.tld

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '{{randstr}}.tld'
          - 'PORTAL_URL'
        condition: and

      - type: word
        part: header
        words:
          - "text/html"

      - type: status
        status:
          - 200
# digest: 4a0a00473045022040435cc9b04af839c2f242db191198dbf53f5753ec1e1b3eb4274e5ae5f8bdc9022100db527f711fd11b9f3086e85a40697ed9687eb9167da83b680a7648c1c9b5d646:922c64590222798bb761d5b6d8e72950