subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
end tell ''' result = subprocess.run( ['osascript', '-e', applescript], capture_output=True, text=True,- Confidence
- 98% confidence
- Finding
- The AppleScript is built via f-string interpolation with untrusted `phone` and `message` values and then passed to `osascript`. An attacker who can influence these fields may inject quotes or AppleScript syntax to alter script behavior, causing unauthorized actions or message sending through the local Messages app.
