Record summary

CVE-2023-30212 has a selected CVSS score of 6.1 (medium); EIP currently links 12 repository PoCs, 1 Nuclei template, and 4 lab environments.

Description

OURPHP <= 7.2.0 is vulnerale to Cross Site Scripting (XSS) via /client/manage/ourphp_out.php.

Description source: CVE List

Exploitation context

Available material

Repository PoCs
12
Nuclei templates
1
Lab environments
4

CISA SSVC decision

ExploitationNone
AutomatableNo
Technical impactPartial

CISA Coordinator · SSVC 2.0.3 · Evaluated Feb 3, 2025 · Source: CVE List

Proofs of concept

12

Repository PoCs

GitHubRishipatidar/CVE-2023-30212-POC-DOCKER-FILERepository PoCby RishipatidarStars: 1Not analyzed2 files

85.0 KiB

GitHub

PoC details
GitHubmallutrojan/CVE-2023-30212-LabRepository PoCby mallutrojanStars: 0Not analyzed3 files

3.8 KiB

GitHub

PoC details
GitHubAnandhu990/r-CVE-2023-30212--labRepository PoCby Anandhu990Stars: 0Not analyzed1 file

23 B

GitHub

PoC details
GitHubAnandhu990/CVE-2023-30212-iabRepository PoCby Anandhu990Stars: 0Not analyzed1 file

20 B

GitHub

PoC details
GitHublibas7994/CVE-2023-30212Repository PoCby libas7994Stars: 0Not analyzed1 file

220 B

GitHub

PoC details
GitHublibasmon/-create-a-vulnerable-Docker-environment-that-is-susceptible-to-CVE-2023-30212Repository PoCby libasmonStars: 0Not analyzed1 file

2.2 KiB

GitHub

PoC details
GitHublibasmon/Exploite-CVE-2023-30212-VulnerabilityRepository PoCby libasmonStars: 4Not analyzed8 files

22.1 KiB

GitHub

PoC details
GitHublibasv/Exploite-CVE-2023-30212-vulnerabilityRepository PoCby libasvStars: 0Not analyzed7 files

21.0 KiB

GitHub

PoC details
GitHubkai-iszz/CVE-2023-30212Repository PoCby kai-iszzStars: 0Not analyzed1 file

1.8 KiB

GitHub

PoC details
GitHubimathewvincent/CVE-2023-30212-OURPHP-VulnerabilityRepository PoCby MaThEw-ViNcEnTStars: 0Not analyzed4 files

198.4 KiB

GitHub

PoC details
GitHubarunsnap/CVE-2023-30212-POCRepository PoCby arunsnapStars: 0Not analyzed1 file

2.4 KiB

GitHub

PoC details
GitHubsungmin20/cve-2023-30212Repository PoCby sungmin20Stars: 0Not analyzed6 files

14.1 KiB

GitHub

PoC details

Docker lab environments

4
GitHub

Repository root

mallutrojan/CVE-2023-30212-LabCreated
Model review verdict: Suspicious behavior.Vuln labCVE-2023-30212Dockerfile

1 Dockerfile

AnalysisSuspicious behaviordeepseek-v4-pro:cloud ·

Environment assessment

A Docker-based environment built from a PHP 7.2 Apache image, with MySQL installed and a web application copied from a downloaded zip file. The README describes it as a lab for CVE-2023-30212, a cross-site scripting vulnerability.

Dockerfile:1-51README.md:1-2lab.sh:1-57

Lab assessment

Vulnerability lab

The README explicitly states the repository creates a vulnerable environment for CVE-2023-30212, enabling exploration of the exploitability of this security vulnerability. The Dockerfile builds a web server with a database, and the lab script downloads and deploys a specific web application, consistent with a controlled vulnerability research setup.

README.md:1-2
Lab shapeDockerfile
ServicesUnknown
Compose manifests0
Dockerfiles1
Evidence & reasoningComponents · CVE assessment · exercise context · review boundaries
Components

Services and files described by the evidence

Apache with PHP 7.2

web serverapplication server

Serves the web application on port 80. PHP extensions for MySQL and image processing are installed.

Dockerfile:1-2Dockerfile:5-14Dockerfile:50

MySQL

database server

Installed inside the container, creates a database named 'test', and is started before Apache. The lab script later sets a root password and grants privileges.

Dockerfile:17-24Dockerfile:50lab.sh:55

Web application (from chinaz.com)

vulnerable target application

A zip file downloaded from 'https://down.chinaz.com/api/index/download?id=51308&type=code' and extracted into the document root. The README provides a URL path '/client/manage/ourphp_out.php' suggesting it is the OURPHP application, which is the subject of CVE-2023-30212.

lab.sh:30-35README.md:20

lab.sh

setup script

Automates environment setup: installs Docker and unzip if missing, downloads the vulnerable application zip, builds the Docker image, runs the container with port 80 exposed, and configures MySQL root password to 'adarsh'.

lab.sh:1-57
CVE assessment

How the supplied evidence relates each vulnerability

CVE-2023-30212

Supported by supplied evidence

The README explicitly associates the lab with CVE-2023-30212 and provides a proof-of-concept XSS payload targeting a specific endpoint. The downloaded application and the URL path match the OURPHP product known to be affected by this CVE.

README.md:1-2README.md:20
Exercise context

Requirements and sequence described by the evidence

Prerequisites

  • Docker must be installed or the script will install it via apt.lab.sh:4-13
  • The script requires sudo privileges to install packages and add the user to the docker group.lab.sh:8-10
  • Port 80 must be available on the host for the container mapping.lab.sh:44
  • The operator must manually complete the application setup via a browser at http://localhost.README.md:16-18

Evidence-described exercise path

  1. Clone the repository and run lab.sh to build and start the Docker container.README.md:10-14
  2. Access http://localhost in a browser and complete the application setup (create a user with a password).README.md:16-18
  3. Trigger the XSS vulnerability by visiting the crafted URL: http://localhost/client/manage/ourphp_out.php?ourphp_admin=logout&out=%3C/script%3E%3Cscript%3Ealert(`xss`)%3C/script%3EREADME.md:20
Safety-review evidence

Behaviors behind the stored safety assessment

Suspicious behavior

The lab script downloads a zip file from an external third-party URL (down.chinaz.com) and executes it inside the container. The downloaded content is uninspected and its behavior is unknown. Additionally, the script uses 'docker exec' to set a hardcoded MySQL root password ('adarsh') inside the running container. While the lab is documented for CVE-2023-30212, the reliance on an uninspected external payload and the hardcoded credential constitute suspicious indicators.

lab.sh:30-35lab.sh:55

Indicators requiring review

  • The setup script downloads a zip file from an external third-party URL (down.chinaz.com) and extracts it into the container. The content is uninspected and could contain unexpected behavior beyond the stated XSS exercise.lab.sh:30-35
  • The script sets a hardcoded MySQL root password ('adarsh') inside the container via 'docker exec'. This credential is not documented as a lab requirement and could be used for unauthorized access if the container is exposed.lab.sh:55
Review boundaries

What the analysis did not establish

  • The downloaded zip file from down.chinaz.com is not included in the evidence packet; its contents and behavior are uninspected.
  • The Dockerfile COPY instruction references a local 'file' source that is not present in the repository; the actual application is supplied by the external download.
  • The lab script uses 'docker exec' to configure MySQL, which requires the container to be running and may fail if the container is not ready.
Model interpretation

This review is limited to the supplied lab evidence packet. It does not assert that the environment runs, reproduces a vulnerability, or is safe to execute. Contract: eip-docker-lab-analysis-v1.

GitHub

docker-compose.yaml

sungmin20/cve-2023-30212Created
Vuln labCVE-2023-30212Compose · builds

1 Compose manifest · 1 Dockerfile · 1 service

Analysisdeepseek-v4-pro:cloud ·

Environment assessment

A Docker Compose environment that builds a PHP 7.4 Apache container exposing port 8088. It copies a vulnerable LFI script and a malicious PHP script into the web root.

docker-compose.yaml:1-7Dockerfile:1-10

Lab assessment

Vulnerability lab

The README explicitly states it is a PoC for CVE-2023-30212, a PHP LFI vulnerability, and the included files (vulnerable.php, malicious.php) are designed to demonstrate the exploit.

README.md:1-5
Lab shapeCompose · builds
Services1
Compose manifests1
Dockerfiles1
Evidence & reasoningComponents · CVE assessment · exercise context · review boundaries
Components

Services and files described by the evidence

cve-lfi

vulnerable web serverexploit target

A PHP 7.4 Apache service built from the local Dockerfile. It serves vulnerable.php (LFI entry point) and malicious.php (command execution) on port 8088.

docker-compose.yaml:3-5Dockerfile:1-8

vulnerable.php

LFI vulnerability

A PHP script that includes a file specified by the 'file' GET parameter without sanitization, enabling local file inclusion.

vulnerable.php:1-5

malicious.php

payloadcommand execution

A PHP script that executes 'touch /tmp/pwned' via the system() function, used to demonstrate arbitrary command execution after LFI.

malicious.php:1
CVE assessment

How the supplied evidence relates each vulnerability

CVE-2023-30212

Supported by supplied evidence

The README describes the environment as a PoC for CVE-2023-30212, and the provided vulnerable.php and malicious.php demonstrate a PHP LFI leading to remote code execution, consistent with the CVE description.

README.md:1-5vulnerable.php:1-5malicious.php:1
Exercise context

Requirements and sequence described by the evidence

Prerequisites

  • Docker and Docker Compose must be installed to build and run the environment.README.md:37-39
  • The container must be running and accessible on localhost port 8088.docker-compose.yaml:5README.md:43

Evidence-described exercise path

  1. Start the container with 'docker-compose up -d'.README.md:37-39
  2. Use the LFI vulnerability to read malicious.php source via php://filter.README.md:47-51
  3. Execute malicious.php directly to run the system command.README.md:59-61
  4. Verify command execution by checking for /tmp/pwned inside the container.README.md:63-67
Safety-review evidence

Behaviors behind the stored safety assessment

No harmful behavior observed

All visible behavior is confined to the lab container. The malicious.php payload only creates a file inside the container's /tmp, and there are no host volume mounts, privileged mode, or network connections to external systems. The exercise demonstrates the vulnerability without escaping the lab boundary.

docker-compose.yaml:1-7Dockerfile:1-10malicious.php:1
Review boundaries

What the analysis did not establish

  • The README mentions a base image of php:8.1-apache, but the Dockerfile uses php:7.4-apache; this discrepancy is not resolved.
  • The file index.html is present in the file inventory but not referenced in any evidence; its content is not provided.
  • The README contains embedded images that cannot be inspected.
Model interpretation

This review is limited to the supplied lab evidence packet. It does not assert that the environment runs, reproduces a vulnerability, or is safe to execute. Contract: eip-docker-lab-analysis-v1.

GitHub

Repository root

libasv/Exploite-CVE-2023-30212-vulnerabilityCreated
Vuln labCVE-2023-30212Dockerfile

1 Dockerfile

Analysisdeepseek-v4-pro:cloud ·

Environment assessment

A single Dockerfile builds a PHP 7.2 Apache container with MySQL, intended to host a vulnerable OURPHP application for demonstrating CVE-2023-30212 (XSS). The README provides build, run, and exploit instructions.

dockerfile:1-52README.md:1-91

Lab assessment

Vulnerability lab

The README explicitly states the purpose is to 'create a vulnerable Docker environment that is susceptible to CVE-2023-30212' and provides step-by-step instructions to build, run, and exploit the vulnerability via a crafted URL.

README.md:1-3README.md:79-81
Lab shapeDockerfile
ServicesUnknown
Compose manifests0
Dockerfiles1
Evidence & reasoningComponents · CVE assessment · exercise context · review boundaries
Components

Services and files described by the evidence

php:7.2-apache base image

web serverPHP runtime

Official PHP 7.2 Apache image serving as the base. Apache is configured with mod_rewrite enabled and document root set to /var/www/html. Exposes port 80.

dockerfile:2dockerfile:28dockerfile:31-33dockerfile:45

MySQL server

database server

Default MySQL server installed inside the container. A 'test' database is created during build. Started by the CMD instruction alongside Apache.

dockerfile:18-24dockerfile:48

Web application files

vulnerable application

Files copied from the build context into the document root. The file inventory includes admin.php, index.php, search.php, and others, suggesting a PHP application (likely OURPHP). The README references /client/manage/ourphp_out.php as the vulnerable endpoint.

dockerfile:36README.md:5README.md:79
CVE assessment

How the supplied evidence relates each vulnerability

CVE-2023-30212

Insufficient evidence

The README claims the environment is susceptible to CVE-2023-30212, an XSS vulnerability in OURPHP <= 7.2.0 via /client/manage/ourphp_out.php. However, the supplied evidence does not include the actual application source code (e.g., ourphp_out.php) or any runtime demonstration of the vulnerability. The Dockerfile only sets up the infrastructure; the vulnerability cannot be confirmed from the provided artifacts.

README.md:1-5README.md:79
Exercise context

Requirements and sequence described by the evidence

Prerequisites

  • Docker must be installed on the host to build and run the container.README.md:13-17
  • The Dockerfile and application files must be present in the build context.README.md:9-11
  • The container must be run with port mapping (e.g., -p 8080:80) to access the web server.README.md:27-29

Evidence-described exercise path

  1. Build the Docker image using 'docker build -t test .'README.md:23-25
  2. Run the container with port mapping: 'docker run -d -p 8080:80 test'README.md:27-29
  3. Optionally, exec into the container to configure MySQL privileges (though not strictly required for the XSS exploit).README.md:37-75
  4. Trigger the XSS vulnerability by visiting 'http://localhost:8080/client/manage/ourphp_out.php?ourphp_admin=logout&out=</script><script>alert(xss)</script>'README.md:79
Safety-review evidence

Behaviors behind the stored safety assessment

No harmful behavior observed

The Dockerfile and README describe a self-contained lab environment. The container runs Apache and MySQL internally, exposes only port 80, and does not mount host directories, run in privileged mode, or connect to external networks beyond the base image pull. The exploit URL targets the local container's web application. No hidden, destructive, or host-escaping behavior is evident.

dockerfile:1-52README.md:1-91
Review boundaries

What the analysis did not establish

  • The actual application source files (e.g., ourphp_out.php) are not included in the evidence, so the vulnerability cannot be verified.
  • The README contains placeholder commands and references an external download link for the Dockerfile, but the provided Dockerfile is already included.
  • The file inventory lists additional PHP files (admin.php, index.php, search.php) and a binary favicon.ico, but their contents are not provided, limiting full behavioral analysis.
Model interpretation

This review is limited to the supplied lab evidence packet. It does not assert that the environment runs, reproduces a vulnerability, or is safe to execute. Contract: eip-docker-lab-analysis-v1.

GitHub

Repository root

libasmon/Exploite-CVE-2023-30212-VulnerabilityCreated
Vuln labCVE-2023-30212Dockerfile

1 Dockerfile

Analysisdeepseek-v4-pro:cloud ·

Environment assessment

A single Dockerfile based on php:7.2-apache that installs MySQL, creates a 'test' database, copies local application files, and starts Apache and MySQL. The README describes it as a vulnerable Docker environment for CVE-2023-30212, an XSS vulnerability in OURPHP <= 7.2.0.

dockerfile:1-52README.md:1-4

Lab assessment

Vulnerability lab

The README explicitly states the purpose is to 'create a vulnerable Docker environment that is susceptible to CVE-2023-30212' and provides steps to build, run, and exploit the vulnerability. The Dockerfile sets up a PHP/Apache/MySQL stack consistent with hosting a vulnerable OURPHP application.

README.md:1-4
Lab shapeDockerfile
ServicesUnknown
Compose manifests0
Dockerfiles1
Evidence & reasoningComponents · CVE assessment · exercise context · review boundaries
Components

Services and files described by the evidence

php:7.2-apache base image

web serverPHP runtime

Official PHP 7.2 Apache image used as the base. Provides Apache with PHP support.

dockerfile:2

MySQL server

database server

Installed via apt-get, started to create a 'test' database, and started again in the CMD to run alongside Apache.

dockerfile:18-25dockerfile:50

Web application files

vulnerable application

Copied from a local 'file' directory into the Apache document root. The README references OURPHP and an exploit path, indicating these files contain the vulnerable OURPHP application.

dockerfile:37README.md:3-4
CVE assessment

How the supplied evidence relates each vulnerability

CVE-2023-30212

Insufficient evidence

The README claims the environment is susceptible to CVE-2023-30212 and provides an exploit URL. However, the actual application source code (e.g., ourphp_out.php) is not included in the evidence files, so the presence of the vulnerable code cannot be verified.

README.md:3-4README.md:75
Exercise context

Requirements and sequence described by the evidence

Prerequisites

  • Docker must be installed on the host to build and run the image.README.md:11-15
  • The local 'file' directory containing the OURPHP application must be present in the build context.dockerfile:37

Evidence-described exercise path

  1. Build the Docker image using 'docker build -t test .'README.md:21-23
  2. Run the container with port mapping: 'docker run -d -p 8080:80 test'README.md:27-29
  3. Access the vulnerable URL: http://localhost:8080/client/manage/ourphp_out.php?ourphp_admin=logout&out=</script><script>alert(`xss`)</script>README.md:75
Safety-review evidence

Behaviors behind the stored safety assessment

No harmful behavior observed

The Dockerfile and README describe a self-contained lab environment. The only network exposure is port 80 mapped to the host, which is typical for a web-based vulnerability lab. No hidden or unnecessary host compromise, persistence, credential theft, or external connections are indicated.

dockerfile:1-52README.md:1-90
Review boundaries

What the analysis did not establish

  • The actual OURPHP application source files (e.g., ourphp_out.php) are not included in the evidence, so the vulnerability cannot be confirmed.
  • The Dockerfile COPY instruction references a 'file' source, but the file inventory shows no such directory; the build may fail if the directory is missing.
  • The README contains instructions to grant all privileges to 'root'@'localhost' with a password, which is a weak security practice but is presented as part of the lab setup.
Model interpretation

This review is limited to the supplied lab evidence packet. It does not assert that the environment runs, reproduces a vulnerability, or is safe to execute. Contract: eip-docker-lab-analysis-v1.

Nuclei templates

1
ProjectDiscoveryMEDIUMOURPHP <= 7.2.0 - Cross Site ScriptingCVSS 6.1

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.

WeaknessesCWE-79
Authorstheamanrawat
Template tagscve2023cvexssourphpvuln
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CPE: cpe:2.3:a:ourphp:ourphp:*:*:*:*:*:*:*:*

Source: ProjectDiscovery

References

2