CWE
119
Advisory Published
CVE Published
Updated

CVE-2012-4504: Buffer Overflow

First published: Tue Oct 09 2012(Updated: )

A buffer overflow flaw was discovered in the libproxy's url::get_pac() used to download proxy.pac proxy auto-configuration file. A malicious host hosting proxy.pac, or a man in the middle attacker, could use this flaw to trigger a stack-based buffer overflow in an application using libproxy, if proxy configuration instructed it to download proxy.pac file from a remote HTTP server. url::get_pac() uses a fixed size buffer buffer[] to store content of the proxy.pac file downloaded from a remote server. When filling the buffer, it uses server-supplied content length value, rather than size buffer, as a limit for the size of the input copied into the buffer. Overflow occurs when server provides sufficiently large file and does not use chunked content encoding. The buffer size is checked when using chunked encoding. <a href="http://code.google.com/p/libproxy/source/browse/trunk/libproxy/url.cpp?r=846#462">http://code.google.com/p/libproxy/source/browse/trunk/libproxy/url.cpp?r=846#462</a> This issue was introduced upstream with the addition of the chunked encoding support, which first appears in version 0.4. <a href="http://code.google.com/p/libproxy/source/detail?r=489">http://code.google.com/p/libproxy/source/detail?r=489</a> <a href="http://code.google.com/p/libproxy/issues/detail?id=77">http://code.google.com/p/libproxy/issues/detail?id=77</a>

Credit: secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
redhat/libproxy<0.4.9
0.4.9
Libproxy Project Libproxy=0.4.0
Libproxy Project Libproxy=0.4.1
Libproxy Project Libproxy=0.4.2
Libproxy Project Libproxy=0.4.3
Libproxy Project Libproxy=0.4.5
Libproxy Project Libproxy=0.4.6
Libproxy Project Libproxy=0.4.7
Libproxy Project Libproxy=0.4.8

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203