subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
def get_weather(location: str) -> dict[str, Any]: try: result = subprocess.run( ["curl", "-s", f"wttr.in/{location}?format=%l:+%c+%t+%h+%w"], capture_output=True, text=True,- Confidence
- 92% confidence
- Finding
- result = subprocess.run( ["curl", "-s", f"wttr.in/{location}?format=%l:+%c+%t+%h+%w"], capture_output=True, text=True, timeout=10, c
