subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
query = f"site:douyin.com {keyword}" # Try using the built-in web search by calling the CLI proc = subprocess.run( ["curl", "-s", "https://api.search.brave.com/res/v1/web/search", "-H", "Accept: application/json", "-H", f"X-Subscription-Token: {self._get_brave_key()}",- Confidence
- 93% confidence
- Finding
- The code invokes an external program (`curl`) to transmit user-derived search terms and a secret API token to Brave Search. Although it uses `subprocess.run` with an argument list rather than a shell, it still creates an external data egress path and unnecessary process-spawning risk for a skill whose stated purpose is Douyin scraping.
