Submit #719590: liweiyi ChestnutCMS <=1.5.8 Unrestricted Uploadinfo

Titleliweiyi ChestnutCMS <=1.5.8 Unrestricted Upload
DescriptionIn the /dev-api/common/upload endpoint, there is a flaw in the file extension extraction logic before the FilenameUtils.getExtension method is called. The system performs a special parsing operation on the file path to extract the suffix. If the filename contains specific characters (:// and wx_fmt=), the logic extracts the value between wx_fmt= and & (or the end of the string) as the file extension. Attackers can manipulate this behavior to bypass file extension restrictions.
Source⚠️ https://github.com/yuccun/CVE/blob/main/ChestnutCMS-Arbitrary_File_Upload.md
User
 yuccun (UID 93614)
Submission12/19/2025 04:03 (6 months ago)
Moderation12/21/2025 13:51 (2 days later)
StatusAccepted
VulDB entry337715 [liweiyi ChestnutCMS up to 1.5.8 Filename /dev-api/common/upload FilenameUtils.getExtension File unrestricted upload]
Points20

Interested in the pricing of exploits?

See the underground prices here!