Tainted flow: 'p' from open (line 61, file read) → open (file write)
Medium
- Category
- Data Flow
- Content
for base in DATA_MIRRORS: try: from urllib.request import urlopen;d=urlopen(f"{base}/{fn}",timeout=15).read() with open(p,'wb') as f:f.write(d);return True except:continue return False def _lj(fn):- Confidence
- 82% confidence
- Finding
- The code downloads arbitrary bytes from remote mirrors and writes them into local JSON/data files without any integrity verification, signature check, or content validation. If the upstream repository/CDN is compromised or serves unexpected content, the skill will persist attacker-controlled data locally and later consume it, creating a supply-chain trust problem and possible denial-of-service or unsafe downstream behavior.
