subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
def _detect_type(self, url: str) -> str: """Try to detect Git instance type""" try: result = subprocess.run( ["curl", "-s", "-m", "5", f"{url}/api/v1/version"], capture_output=True, text=True- Confidence
- 94% confidence
- Finding
- result = subprocess.run( ["curl", "-s", "-m", "5", f"{url}/api/v1/version"], capture_output=True, text=True )
