{"id":753,"cve":"CVE-2015-1852","cve_url":"https:\/\/www.cvedetails.com\/cve\/CVE-2015-1852","cwe":"CWE-17","cwe_number":17,"cwe_url":"https:\/\/cwe.mitre.org\/data\/definitions\/17","cvss_score":4.3,"published":"2015-04-17","owasp":"A05 Security Misconfiguration","odc":"Function","cdc":"Incorrect Functionality","category":"Cryptographic","subcategory":"Improper SSL\/TLS Certificate Validation","scope":"Remote","impact":"Unauthorized Access","summary":"OpenStack keystonemiddleware < 1.6.0 and python-keystoneclient < 1.4.0: Insecure \"insecure\" option bypass","permalink":"https:\/\/netpack.pt\/vaitp\/vulnerability\/CVE-2015-1852\/","description":"The s3_token middleware in OpenStack keystonemiddleware before 1.6.0 and python-keystoneclient before 1.4.0 disables certification verification when the \"insecure\" option is set in a paste configuration (paste.ini) file regardless of the value, which allows remote attackers to conduct man-in-the-middle attacks via a crafted certificate, a different vulnerability than CVE-2014-7144.","solution":"Update keystonemiddleware to version 1.6.0 or higher.","affected_component":"keystonemiddleware, python-keystoneclient","fixed_by_upgrading":true,"vulnerable_code":"from keystonemiddleware import s3_token\n\ndef configure_s3_token(app, config):\n    s3_token_middleware = s3_token.S3Token(app, {\n        'insecure': config.get('insecure', False)\n    })\n    \n    return s3_token_middleware","patched_code":"from keystonemiddleware import s3_token\n\ndef configure_s3_token(app, config):\n    if config.get('insecure', False):\n        raise ValueError(\"Insecure option is not allowed. Please set to False.\")\n    \n    s3_token_middleware = s3_token.S3Token(app, {\n        'certifi': True,\n        'insecure': False\n    })\n    \n    return s3_token_middleware","payload_needed":false,"payload":null,"payload_status":"none","published_fix":[],"references":null}