T09 · Insecure Skill Coding Practices
Warning
- Location
scripts/minecraft-status.py:31- Finding
Unbounded parsing of attacker-controlled protocol response lengths
- Content
View full analysis
- Remediation
View remediation
MAX_RESPONSE_SIZE: raise ValueError("Invalid response length") chunks = [] remaining = size while remaining: chunk = sock.recv(min(remaining, 65536)) if not chunk: raise IOError("Connection closed before response completed") chunks.append(chunk) remaining -= len(chunk) return b"".join(chunks) ``` ]]>
