subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
"""从 X/Twitter timeline 采集(GUI 环境专用)。""" cdp = os.environ.get("OPENCLI_CDP_ENDPOINT", "http://127.0.0.1:9222") try: r = subprocess.run( ["opencli", "web", "fetch", "https://x.com/home"], capture_output=True, text=True, env={**os.environ, "OPENCLI_CDP_ENDPOINT": cdp} )- Confidence
- 88% confidence
- Finding
- The skill invokes a local browser automation tool against a CDP endpoint derived from environment state, enabling access to a user's browser context, cookies, and authenticated session data. In a news-briefing skill, using browser automation to access X is broader than necessary and increases the attack surface if the endpoint is redirected to a sensitive or remote browser instance.
