Downloads · 30 days
0
xiaoyaoes/pickle-bypass-mailcap-findmatch-poc
pickle-bypass-mailcap-findmatch-poc is a machine learning model from xiaoyaoes. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
0
Access
Public
Updated Jun 12, 2026
Repo size
140 B
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 54%
From the Hugging Face model README
mailcap.findmatchBypasses picklescan and modelscan.
Python's deprecated mailcap module (removed in Python 3.13) exposes findmatch() which executes mailcap entry test commands via os.system(). Neither scanner blocks mailcap imports.
pickle.loads() imports mailcap.findmatchfindmatch(caps, type, 'view', filename) where caps contains a crafted entry with 'test': '<shell_command>'findmatch() internally runs os.system(test_command)malicious.pkl — Minimal pickle payload (140 bytes)poc.py — Python script that generates and demonstrates the payload