SPB Git

Repository Public

QYV-SVC-007.json 1.3 KB 23 lines json

1{2  "id": "QYV-SVC-007",3  "title": "HTTP responses were buffered without any size limit",4  "severity": "low",5  "cvss_vector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L",6  "cvss_score": 3.7,7  "cwe": "CWE-770",8  "masvs": "MASVS-NETWORK-1",9  "area": "network",10  "location": "Sources/QyvoraNetworking/HTTP.swift:97",11  "tool": "manual-review",12  "rule": "",13  "status": "fixed",14  "fix_commit": "3ff9505",15  "regression_test": "QyvoraNetworkingTests.ResponseValidationTests/bodyWithinTheLimitIsReturnedWhole, oversizedBodyIsRefused",16  "description": "Root cause: `URLSessionTransport.send` used `URLSession.data(for:)`, which accumulates the whole body. Only the resource timeout (24 s) bounded what a faulty or hostile endpoint could make the application hold in memory (hundreds of megabytes on a fast link), enough for iOS to terminate it.",17  "recommendation": "Fixed: the body is read as a stream and abandoned beyond `maximumResponseBytes` (32 MiB by default, also checked against Content-Length); the error is `NetworkError.invalidResponse`. The parsers above already bound counts (history page <= 100 transactions, <= 5 000 unspent outputs per address, <= 20 000 chart points).",18  "evidence": "",19  "fingerprint": "ffae29255664",20  "reported": "2026-12-04",21  "owner": "review-b"22}23
Files main
Menu

Theme