VYPR
Unrated severityNVD Advisory· Published Jul 11, 2023· Updated Nov 8, 2024

CVE-2023-37656

CVE-2023-37656

Description

WebsiteGuide v0.2 is vulnerable to Remote Command Execution (RCE) via image upload.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected products

2

Patches

Vulnerability mechanics

Root cause

"The application fails to validate the filename during image uploads, allowing directory traversal."

Attack vector

An attacker can upload a file with a crafted filename containing directory traversal sequences like "../../". This allows the attacker to overwrite existing files on the server, including executable code. The vulnerability is triggered via the image upload functionality within the "替换图标" (Replace Icon) feature. By intercepting the upload request and modifying the filename, an attacker can achieve remote command execution [ref_id=1].

Affected code

The vulnerability resides in the `IconViewSet.post` method within the `/websiteapp/views.py` file. Specifically, the `save_path` variable does not sufficiently validate the uploaded filename, permitting path traversal characters such as "../../" [ref_id=1].

What the fix does

The advisory does not provide a patch or specific remediation guidance. However, it implies that proper validation of the uploaded filename to prevent directory traversal and checking the binary content of the uploaded file would mitigate the vulnerability [ref_id=1].

Preconditions

  • configThe WebsiteGuide v0.2 application must be running.
  • authThe attacker needs to be able to access the "分组管理" (Group Management) and subsequently the "网址管理" (Website Management) sections to add a website and then access the "替换图标" (Replace Icon) feature.

Reproduction

Firstly, add a website in "分组管理". After building, visit `http://localhost:8000/admin/website`. Click navigator "网址管理", and then click "替换图标". Click "上传图标" and choose the payload. Then click "确定" to upload. Observe the HTTP request in Burp Suite, send it to the repeater, and replace the filename `..1..1views.py` to `../../views.py`. Click Send. Finally, visit the website page to trigger the API `/api/icon` to observe the downloaded `index.html` at the path `/websiteapp/`, proving RCE [ref_id=1].

Generated on Jun 7, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

1

News mentions

0

No linked articles in our index yet.