Description
Usermin through 2.570 contains a path traversal vulnerability in mailbox/detachall.cgi that allows remote unauthenticated attackers to write files outside the temporary directory via unsanitized attachment filenames. Attackers can email attachments with ../ sequences in filenames, and when the recipient downloads all attachments, files like ~/.forward are overwritten, enabling command execution.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
webmin usermin
Default version status: unaffected
0 to ≤ 2.570affected
pkg:github/webmin/userminReferences
- https://github.com/webmin/usermin/issues/142 ↗
- https://github.com/webmin/usermin ↗
- https://github.com/webmin/usermin/commit/cb4614e8319e0932b10533a4d5606debf5f40e14 ↗
- https://github.com/webmin/usermin/blob/2.570/mailbox/detachall.cgi#L43-L51 ↗
- https://hackmd.io/@leediay/H144QKY6zl ↗
- https://www.vulncheck.com/advisories/usermin-through-2.570-path-traversal-file-write-via-detachall-cgi ↗