subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
""" try: # Call Clawdex API directly result = subprocess.run( ["curl", "-s", f"https://clawdex.koi.security/api/skill/{skill_name}"], capture_output=True, text=True,- Confidence
- 91% confidence
- Finding
- The code invokes curl to contact a remote service and interpolates an unvalidated skill name directly into the requested URL path. Although shell injection is avoided by passing an argument list, this still creates a real privacy and integrity issue: attacker-controlled skill names can trigger unexpected outbound requests, malformed URLs, and disclosure of analyzed skill names to a third party without explicit user consent.
