manja316's picture
Upload folder using huggingface_hub
4cd8bfa verified
|
Raw
History Blame Contribute Delete
835 Bytes
metadata
library_name: pytorch
tags:
  - security-research
  - modelscan-bypass
license: mit

ModelScan Bypass PoC — glob.glob

Security research for responsible disclosure via Huntr MFV program.

Vulnerability

glob.glob is not in modelscan's unsafe_globals blocklist. When a pickle file containing this global is scanned by modelscan, it reports "No issues found." However, loading the file with pickle.loads() / torch.load() triggers directory enumeration — lists files matching any pattern. Information disclosure of filesystem structure..

Impact

  • Severity: MEDIUM
  • Effect: directory enumeration — lists files matching any pattern. Information disclosure of filesystem structure.

Reproduction

pip install modelscan
modelscan scan -p bypass_poc.pkl
# Output: "No issues found!"