os.system() or os exec-family call
High
- Category
- Dangerous Code Execution
- Content
print(f"Previous: {prev['hash'][:16]}...") print(f"Current: {current_hash[:16]}...") if args.notify: os.system(args.notify) return 2 else: print(f"No previous data to compare (file: {args.compare})")- Confidence
- 98% confidence
- Finding
- The script passes the user-controlled --notify value directly to os.system(), which invokes a shell. This allows arbitrary command execution if an attacker can influence CLI arguments or configuration, and it is broader than a simple notification mechanism expected from a web-monitoring skill.
