During a security review of a modern document processing web service, an analyst examines crash logs and source code after an unexpected service degradation. The backend endpoint accepts a JSON request containing a document rendering configuration. The service fetches remote custom template assets via HTTP based on a user-provided URL and parses binary header blocks into a fixed-size internal C-style buffer without checking the size of the incoming string. Log analysis reveals that an attacker submitted a payload pointing to alongside a -byte header string into a -byte memory buffer, causing an application crash and sensitive cloud infrastructure credential exposure. Which of the following mitigation controls should the security team implement to remediate these specific software vulnerabilities? (Select TWO)
- Enforce strict outbound URL target validation using a strict domain allowlist and block requests destination targets resolving to internal or link-local IP addresses.Answer
- Refactor the memory handling logic to use length-bounded string operations and perform strict input size validation prior to buffer copying.Answer
- CImplement parameterized database queries with pre-compiled SQL statements across the document rendering endpoint routines.
- DDeploy network layer router access control lists (ACLs) to block all incoming ICMP and UDP management traffic targeting the server host.