T09 · Insecure Skill Coding Practices
- Location
SKILL.md:561- Finding
Active Destructive and High-Volume API Testing Lacks Mandatory Authorization Safeguards
- Content
View full analysis
0.99 assert qps > 100 ``` **SQL injection test (`SKILL.md:604-617`):** ```python def test_sql_injection(self): payloads = [ "' OR '1'='1", "'; DROP TABLE users; --", "1 UNION SELECT * FROM users" ] for payload in payloads: response = requests.get( f"{self.base_url}/api/users", params={"search": payload} ) assert response.status_code in [400, 403, 500] ``` **Rate-limit test (`SKILL.md:645-651`):** ```python def test_rate_limiting(self): responses = [] for _ in range(150): response = requests.get(f"{self.base_url}/api/users") responses.append(response.status_code) assert 429 in responses ``` ### Technical Analysis Security and performance testing legitimately require network access, but the examples do not enforce least-privilege safeguards around that access. In particular: - The SQL test includes a payload con ...[truncated 2743 chars]- Remediation
View remediation
