-
Notifications
You must be signed in to change notification settings - Fork 54
Testbeds/CVE 2026 33032 #231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
sanjaymahajan14
wants to merge
7
commits into
google:main
Choose a base branch
from
sanjaymahajan14:testbeds/cve-2026-33032
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
28bc733
added testbeds for CVE-2026-33032
sanjaymahajan14 3b2bae5
Update ports for safe version
sanjaymahajan14 91aa557
Update container name of nginx safe version
sanjaymahajan14 eebdc45
Update container name of vulnerable version
sanjaymahajan14 68f66e5
Add curl command for testing the vulnerability
sanjaymahajan14 0ed8a82
Add curl command for testing the vulnerability of safe version
sanjaymahajan14 0b4490e
Rename directory to nginx-ui
sanjaymahajan14 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| # Authentication bypass in Nginx UI MCP endpoint (CVE-2026-33032) | ||
|
|
||
| Nginx UI versions 2.3.3 and earlier expose the /mcp_message endpoint without authentication when the IP allowlist is empty. A remote unauthenticated attacker can invoke privileged Model Context Protocol (MCP) operations. | ||
|
|
||
|
|
||
| ## Vulnerable Version | ||
| ### Setup | ||
| Start an NginxUI version 2.3.3: | ||
|
|
||
| ```bash | ||
| docker compose up -d nginx-ui-vuln | ||
| ``` | ||
|
|
||
| ### Testing the vulnerability | ||
| ``` | ||
| curl -X POST localhost:8080/mcp_message -d "{\"jsonrpc\":\"2.0\",\"method\":\"initialize\",\"params\":{\"protocolVersion\":\"2024-11-05\",\"capabilities\":{},\"clientInfo\":{\"name\":\"bcd\",\"version\":\"1.0\"}},\"id\":1}" | ||
| ``` | ||
| Response: | ||
| ``` | ||
| {"jsonrpc":"2.0","id":null,"error":{"code":-32602,"message":"Missing sessionId"}} | ||
| ``` | ||
| ## Safe Version | ||
| ### Setup | ||
| Start an NginxUI version 2.3.4: | ||
|
|
||
| ```bash | ||
| docker compose up -d nginx-ui-safe | ||
| ``` | ||
|
|
||
|
sanjaymahajan14 marked this conversation as resolved.
|
||
| ### Testing the vulnerability | ||
| ``` | ||
| curl -X POST localhost:8081/mcp_message -d "{\"jsonrpc\":\"2.0\",\"method\":\"initialize\",\"params\":{\"protocolVersion\":\"2024-11-05\",\"capabilities\":{},\"clientInfo\":{\"name\":\"abc\",\"version\":\"1.0\"}},\"id\":1}" | ||
| ``` | ||
| Response: | ||
| ``` | ||
| {"message":"Authorization failed"} | ||
| ``` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| services: | ||
| nginx-ui-vuln: | ||
| image: uozi/nginx-ui:v2.3.3 | ||
| container_name: nginx-ui-vuln | ||
| restart: always | ||
| # Expose the ports safely to the outside world | ||
| ports: | ||
| - "8080:80" # Nginx public web traffic proxy | ||
| - "9000:9000" # Nginx UI web interface dashboard | ||
| environment: | ||
| - NGINX_UI_SERVER_RUN_MODE=release | ||
| - NGINX_UI_IGNORE_DOCKER_SOCKET=true | ||
| - NGINX_UI_SERVER_SKIP_INSTALLATION=true | ||
| # Explicitly keep the UI listening internally on 9000 | ||
| - NGINX_UI_SERVER_PORT=9000 | ||
| volumes: | ||
| - ./data:/etc/nginx-ui | ||
| - ./nginx:/etc/nginx | ||
| - ./ssl:/etc/ssl | ||
| - ./logs:/var/log/nginx | ||
| - ./www:/var/www/html | ||
| nginx-ui-safe: | ||
| image: uozi/nginx-ui:v2.3.4 | ||
| container_name: nginx-ui-safe | ||
| restart: always | ||
| # Expose the ports safely to the outside world | ||
| ports: | ||
| - "8081:80" # Nginx public web traffic proxy | ||
| - "9001:9000" # Nginx UI web interface dashboard | ||
| environment: | ||
| - NGINX_UI_SERVER_RUN_MODE=release | ||
| - NGINX_UI_IGNORE_DOCKER_SOCKET=true | ||
| - NGINX_UI_SERVER_SKIP_INSTALLATION=true | ||
| # Explicitly keep the UI listening internally on 9000 | ||
| - NGINX_UI_SERVER_PORT=9000 | ||
| volumes: | ||
| - ./data:/etc/nginx-ui | ||
| - ./nginx:/etc/nginx | ||
| - ./ssl:/etc/ssl | ||
| - ./logs:/var/log/nginx | ||
| - ./www:/var/www/html | ||
|
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.