ID CVE-2012-5783
Summary Apache Commons HttpClient 3.x, as used in Amazon Flexible Payments Service (FPS) merchant Java SDK and other products, does not verify that the server hostname matches a domain name in the subject's Common Name (CN) or subjectAltName field of the X.509 certificate, which allows man-in-the-middle attackers to spoof SSL servers via an arbitrary valid certificate.
References
Vulnerable Configurations
  • cpe:2.3:a:apache:httpclient:3.1:*:*:*:*:*:*:*
    cpe:2.3:a:apache:httpclient:3.1:*:*:*:*:*:*:*
  • cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:-:*:*:*
    cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:-:*:*:*
  • cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:esm:*:*:*
    cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:esm:*:*:*
  • cpe:2.3:o:canonical:ubuntu_linux:15.04:*:*:*:*:*:*:*
    cpe:2.3:o:canonical:ubuntu_linux:15.04:*:*:*:*:*:*:*
CVSS
Base: 5.8 (as of 23-04-2021 - 17:28)
Impact:
Exploitability:
CWE CWE-295
CAPEC
  • Creating a Rogue Certification Authority Certificate
    An adversary exploits a weakness in the MD5 hash algorithm (weak collision resistance) to generate a certificate signing request (CSR) that contains collision blocks in the "to be signed" part. The adversary specially crafts two different, but valid X.509 certificates that when hashed with the MD5 algorithm would yield the same value. The adversary then sends the CSR for one of the certificates to the Certification Authority which uses the MD5 hashing algorithm. That request is completely valid and the Certificate Authority issues an X.509 certificate to the adversary which is signed with its private key. An adversary then takes that signed blob and inserts it into another X.509 certificate that the attacker generated. Due to the MD5 collision, both certificates, though different, hash to the same value and so the signed blob works just as well in the second certificate. The net effect is that the adversary's second X.509 certificate, which the Certification Authority has never seen, is now signed and validated by that Certification Authority. To make the attack more interesting, the second certificate could be not just a regular certificate, but rather itself a signing certificate. Thus the adversary is able to start their own Certification Authority that is anchored in its root of trust in the legitimate Certification Authority that has signed the attackers' first X.509 certificate. If the original Certificate Authority was accepted by default by browsers, so will now the Certificate Authority set up by the adversary and of course any certificates that it signs. So the adversary is now able to generate any SSL certificates to impersonate any web server, and the user's browser will not issue any warning to the victim. This can be used to compromise HTTPS communications and other types of systems where PKI and X.509 certificates may be used (e.g., VPN, IPSec).
Access
VectorComplexityAuthentication
NETWORK MEDIUM NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL NONE
cvss-vector via4 AV:N/AC:M/Au:N/C:P/I:P/A:N
redhat via4
advisories
  • bugzilla
    id 873317
    title CVE-2012-5783 jakarta-commons-httpclient: missing connection hostname check against X.509 certificate name
    oval
    OR
    • comment Red Hat Enterprise Linux must be installed
      oval oval:com.redhat.rhba:tst:20070304026
    • AND
      • comment Red Hat Enterprise Linux 6 is installed
        oval oval:com.redhat.rhba:tst:20111656003
      • OR
        • AND
          • comment jakarta-commons-httpclient is earlier than 1:3.1-0.7.el6_3
            oval oval:com.redhat.rhsa:tst:20130270001
          • comment jakarta-commons-httpclient is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20130270002
        • AND
          • comment jakarta-commons-httpclient-demo is earlier than 1:3.1-0.7.el6_3
            oval oval:com.redhat.rhsa:tst:20130270003
          • comment jakarta-commons-httpclient-demo is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20130270004
        • AND
          • comment jakarta-commons-httpclient-javadoc is earlier than 1:3.1-0.7.el6_3
            oval oval:com.redhat.rhsa:tst:20130270005
          • comment jakarta-commons-httpclient-javadoc is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20130270006
        • AND
          • comment jakarta-commons-httpclient-manual is earlier than 1:3.1-0.7.el6_3
            oval oval:com.redhat.rhsa:tst:20130270007
          • comment jakarta-commons-httpclient-manual is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhsa:tst:20130270008
    • AND
      • comment Red Hat Enterprise Linux 5 is installed
        oval oval:com.redhat.rhba:tst:20070331005
      • OR
        • AND
          • comment jakarta-commons-httpclient is earlier than 1:3.0-7jpp.2
            oval oval:com.redhat.rhsa:tst:20130270010
          • comment jakarta-commons-httpclient is signed with Red Hat redhatrelease key
            oval oval:com.redhat.rhsa:tst:20130270011
        • AND
          • comment jakarta-commons-httpclient-demo is earlier than 1:3.0-7jpp.2
            oval oval:com.redhat.rhsa:tst:20130270012
          • comment jakarta-commons-httpclient-demo is signed with Red Hat redhatrelease key
            oval oval:com.redhat.rhsa:tst:20130270013
        • AND
          • comment jakarta-commons-httpclient-javadoc is earlier than 1:3.0-7jpp.2
            oval oval:com.redhat.rhsa:tst:20130270014
          • comment jakarta-commons-httpclient-javadoc is signed with Red Hat redhatrelease key
            oval oval:com.redhat.rhsa:tst:20130270015
        • AND
          • comment jakarta-commons-httpclient-manual is earlier than 1:3.0-7jpp.2
            oval oval:com.redhat.rhsa:tst:20130270016
          • comment jakarta-commons-httpclient-manual is signed with Red Hat redhatrelease key
            oval oval:com.redhat.rhsa:tst:20130270017
    rhsa
    id RHSA-2013:0270
    released 2013-02-19
    severity Moderate
    title RHSA-2013:0270: jakarta-commons-httpclient security update (Moderate)
  • rhsa
    id RHSA-2013:0679
  • rhsa
    id RHSA-2013:0680
  • rhsa
    id RHSA-2013:0681
  • rhsa
    id RHSA-2013:0682
  • rhsa
    id RHSA-2013:1147
  • rhsa
    id RHSA-2013:1853
  • rhsa
    id RHSA-2014:0224
  • rhsa
    id RHSA-2017:0868
rpms
  • jakarta-commons-httpclient-1:3.0-7jpp.2
  • jakarta-commons-httpclient-1:3.1-0.7.el6_3
  • jakarta-commons-httpclient-debuginfo-1:3.0-7jpp.2
  • jakarta-commons-httpclient-debuginfo-1:3.1-0.7.el6_3
  • jakarta-commons-httpclient-demo-1:3.0-7jpp.2
  • jakarta-commons-httpclient-demo-1:3.1-0.7.el6_3
  • jakarta-commons-httpclient-javadoc-1:3.0-7jpp.2
  • jakarta-commons-httpclient-javadoc-1:3.1-0.7.el6_3
  • jakarta-commons-httpclient-manual-1:3.0-7jpp.2
  • jakarta-commons-httpclient-manual-1:3.1-0.7.el6_3
  • jakarta-commons-httpclient-1:3.1-2.1_patch_01.ep5.el4
  • jakarta-commons-httpclient-1:3.1-2.1_patch_01.ep5.el5
  • jakarta-commons-httpclient-1:3.1-2_patch_01.ep5.el6
  • jakarta-commons-httpclient-1:3.1-2.1_patch_01.ep5.el4
  • jakarta-commons-httpclient-1:3.1-2.1_patch_01.ep5.el5
  • jakarta-commons-httpclient-1:3.1-2_patch_01.ep5.el6
  • redhat-support-plugin-rhev-0:3.3.0-14.el6ev
refmap via4
bid 58073
confirm https://issues.apache.org/jira/browse/HTTPCLIENT-1265
misc http://www.cs.utexas.edu/~shmat/shmat_ccs12.pdf
suse
  • openSUSE-SU-2013:0354
  • openSUSE-SU-2013:0622
  • openSUSE-SU-2013:0623
  • openSUSE-SU-2013:0638
ubuntu USN-2769-1
xf apache-commons-ssl-spoofing(79984)
Last major update 23-04-2021 - 17:28
Published 04-11-2012 - 22:55
Last modified 23-04-2021 - 17:28
Back to Top