| शीर्षक | wuzhicms <=4.1.0 Arbitrary File Write (RCE) |
|---|
| विवरण | member::setAvatar() accepts a user's avatar upload. The extension of the resulting filename is derived from $_FILES['file']['name'] (the raw, client-supplied filename, which is entirely untrusted), using only strtolower(pathinfo(...)) to extract the extension — with no extension whitelist, no MIME-type validation, and no image-content validation via getimagesize()/exif_imagetype(). The file is then written directly via move_uploaded_file() into the uploadfile/member/<uid>/ directory. This directory is directly served by the web server and PHP execution is permitted there, so an attacker who uploads a .php-suffixed web shell can trigger execution simply by requesting the predictable resulting URL. |
|---|
| स्रोत | ⚠️ https://github.com/wuzhicms/wuzhicms/issues/219 |
|---|
| उपयोगकर्ता | ZAST.AI (UID 87884) |
|---|
| सबमिशन | 17/08/2026 07:22 AM (29 दिन पहले) |
|---|
| संयम | 15/09/2026 10:44 AM (29 days later) |
|---|
| स्थिति | स्वीकृत |
|---|
| VulDB प्रविष्टि | 404077 [WuzhiCMS तक 4.1.0 Avatar Upload index.php?m=member&f=user&v=setAvatar member::setAvatar Arquivo अधिकार वृद्धि] |
|---|
| अंक | 20 |
|---|