Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

tencentyun/cos-java-sdk-v5
master @ 499c86d
4
Fixes
0
CVEs
HIGH
Peak severity
0.0%
Coverage
Highlights
XML External Entity (XXE): 2 prior fixes. Scrutinize any change in this area.
src/main/java/com/qcloud/cos/internal/CosErrorResponseHandler.java: most-fixed (2 issues). Treat as high-risk during review.
3 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

XML External Entity (XXE): The SAX-based XML response parser has been repeatedly patched to address XXE vulnerabilities. Unchecked resolution of external DTDs and entities in parsed responses from potentially untrusted or intercepted endpoints could lead to local file exposure or server-side request forgery.
XML External Entity (XXE): The COS error response handler utilized StAX (XMLInputFactory) parsing that was vulnerable to XXE. Error payloads returned from remote endpoints must be parsed with strict DTD-disabling configurations to prevent exploitation during exception processing.
Request Smuggling: The cryptographic request signer was vulnerable to request smuggling due to insufficient validation of Content-Length values during request signature generation, allowing negative values to bypass structural validation.