Mobile App (MASVS) (iOS / Android / RN) · CWE-22
Mobile App (MASVS): Path Traversal & File Upload (Source & Boundary Audit)
Trace entrypoints to sinks and map coverage-ledger units. Block ../ escapes and dangerous upload types from reaching server filesystems or browser renders. Tailored for Mobile App (MASVS): Validate exported deep links and store tokens exclusively in Keychain/Keystore.
Coverage ledger tracking key
surface:mobile-masvs::boundary:path-traversal-upload::angle:audit
ZAP 6 Path Traversal download check
Risk boundary
// Unverified Mobile App (MASVS) path (CWE-22 · Source & Boundary Audit)
// Handler accepts input without validating SecureEnclave token.Hardened guard
// Hardened Mobile App (MASVS) (CWE-22 · Source & Boundary Audit)
// 1. Validate exported deep links and store tokens exclusively in Keychain/Keystore
// 2. Store files under generated UUID names and verify canonical path prefixes against a base directory.Verification steps
- 01Seed coverage-ledger.json for every Mobile App (MASVS) handler touching Path Traversal & File Upload.
- 02Trace request parameters through SecureEnclave token validation down to the sink.
- 03Verify with paired positive/negative evidence via native-memory-protocols-dos.