subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
def fetch_with_browser(url): """使用浏览器工具获取页面(SPA 支持)""" try: result = subprocess.run( ["openclaw", "browser", "fetch", "--url", url, "--wait", "2000"], capture_output=True, text=True,- Confidence
- 91% confidence
- Finding
- The code invokes a local browser-fetch helper on attacker-controlled URLs, which expands the trust boundary from simple HTTP retrieval to full browser-style processing. In a scraping skill, that means untrusted pages may trigger active content handling, SSRF against internal services reachable from the host, or unsafe downstream rendering/logging of fetched output.
