Bug 1730528 (CVE-2019-12529) - CVE-2019-12529 squid: OOB read in Proxy-Authorization header causes DoS
Summary: CVE-2019-12529 squid: OOB read in Proxy-Authorization header causes DoS
Keywords:
Status: NEW
Alias: CVE-2019-12529
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1738580 1738581 1730529
Blocks: 1730537
TreeView+ depends on / blocked
 
Reported: 2019-07-17 04:14 UTC by Dhananjay Arunesh
Modified: 2019-09-29 15:16 UTC (History)
7 users (show)

Fixed In Version: squid 4.8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Dhananjay Arunesh 2019-07-17 04:14:59 UTC
An issue was discovered in Squid 2.x through 2.7.STABLE9, 3.x through 3.5.28, and 4.x through 4.7. When Squid is configured to use Basic Authentication, the Proxy-Authorization header is parsed via uudecode. uudecode determines how many bytes will be decoded by iterating over the input and checking its table. The length is then used to start decoding the string. There are no checks to ensure that the length it calculates isn't greater than the input buffer. This leads to adjacent memory being decoded as well. An attacker would not be able to retrieve the decoded data unless the Squid maintainer had configured the display of usernames on error pages.

Reference:
http://www.squid-cache.org/Versions/v4/changesets/
https://github.com/squid-cache/squid/commits/v4

Upstream commit:
http://www.squid-cache.org/Versions/v4/changesets/squid-4-dd46b5417809647f561d8a5e0e74c3aacd235258.patch

Comment 1 Dhananjay Arunesh 2019-07-17 04:15:59 UTC
Created squid tracking bugs for this issue:

Affects: fedora-all [bug 1730529]

Comment 2 Cedric Buissart 🐶 2019-08-07 10:08:32 UTC
External References:

http://www.squid-cache.org/Advisories/SQUID-2019_2.txt

Comment 3 Cedric Buissart 🐶 2019-08-07 13:48:56 UTC
Mitigation:

Remove 'auth_param basic ...' configuration settings from squid.conf


Note You need to log in before you can comment on or make changes to this bug.