Vulnerabilities > CVE-2012-1104 - Improper Privilege Management vulnerability in multiple products
Attack vector
NETWORK Attack complexity
LOW Privileges required
NONE Confidentiality impact
NONE Integrity impact
LOW Availability impact
NONE Summary
A Security Bypass vulnerability exists in the phpCAS 1.2.2 library from the jasig project due to the way proxying of services are managed.
Vulnerable Configurations
Part | Description | Count |
---|---|---|
Application | 1 | |
OS | 1 | |
OS | 1 |
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Restful Privilege Elevation Rest uses standard HTTP (Get, Put, Delete) style permissions methods, but these are not necessarily correlated generally with back end programs. Strict interpretation of HTTP get methods means that these HTTP Get services should not be used to delete information on the server, but there is no access control mechanism to back up this logic. This means that unless the services are properly ACL'd and the application's service implementation are following these guidelines then an HTTP request can easily execute a delete or update on the server side. The attacker identifies a HTTP Get URL such as http://victimsite/updateOrder, which calls out to a program to update orders on a database or other resource. The URL is not idempotent so the request can be submitted multiple times by the attacker, additionally, the attacker may be able to exploit the URL published as a Get method that actually performs updates (instead of merely retrieving data). This may result in malicious or inadvertent altering of data on the server.
Nessus
NASL family Fedora Local Security Checks NASL id FEDORA_2012-3903.NASL description Upstream changelog Changes in version 1.3.0 Bug Fixes : - the saml logout url should be parsed urlencoded [#24] (dlineate) - fix a proxy mode bug introduced in a previous comitt [#16] (Adam Franco) - Fix include_path order so that the phpCAS path takes precedence [#13] (Adam Franco) - fix invalid characters in the php session naming [#17] (Joachim Fritschi) - fix an initialisation problem introduced in the PGT storage [18] (Daniel Frett) - make sure the PGTStorage object is initialized if a user is utilizing the createTable method [#4] (Daniel Frett) - Fix error message in phpCAS::setCacheTimesForAuthRecheck() [PHPCAS-132/#1] (Bradley Froehle) - Always return attributes in utf8 [PHPCAS-102] - Fix warning during debugging if debug is set to false [PHPCAS-123] (Sean Watkins) New Features : - Add a script to create the PGT db table in proxy mode [#11] (Joachim Fritschi) - Switch to the Apache License [#5] (Adam Franco, Joachim Fritschi) - Move to github and add all necessary file to package [#12] (Adam Franco) - New build process for github [#12] (Adam Franco) - Update unit tests to work with the lastest phpunit version [PHPCAS-128] (Adam Franco) - Refacatoring of the protocol decision making to allow validation of proxied usage [PHPCAS-69] (Joachim Fritschi, Adam Franco) - Rebroadcast of logout and pgtiou to support clustered phpcas [PHPCAS-100] (Matthew Selwood, Adam Franco) Improvements : - Improved cookie handling [] (Adam Franco - Indent, format and user name guidelines of PEAR [#14] (Joachim Fritschi) - Add a class autoloading feature [PHPCAS-125/#8] (Joachim Fritschi) - Remove global variables [PHPCAS-126] (Adam Franco) - Implementation of an exception framework to allow gracefull termination [PHPCAS-109] (Joachim Fritschi) - enable single sign-out when session has already started [#29] (Benvii) Security Fixes : - CVE-2012-1104 validate proxied usage of a service [PHPCAS-69] (Joachim Fritschi, Adam Franco) - CVE-2012-1105 change the default PGT save path to the session storage path and set proper permissions [#22] (Joachim Fritschi) Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-03-17 modified 2012-04-12 plugin id 58689 published 2012-04-12 reporter This script is Copyright (C) 2012-2020 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/58689 title Fedora 17 : php-pear-CAS-1.3.0-2.fc17 (2012-3903) NASL family Fedora Local Security Checks NASL id FEDORA_2012-4077.NASL description Upstream changelog Changes in version 1.3.0 Bug Fixes : - the saml logout url should be parsed urlencoded [#24] (dlineate) - fix a proxy mode bug introduced in a previous comitt [#16] (Adam Franco) - Fix include_path order so that the phpCAS path takes precedence [#13] (Adam Franco) - fix invalid characters in the php session naming [#17] (Joachim Fritschi) - fix an initialisation problem introduced in the PGT storage [18] (Daniel Frett) - make sure the PGTStorage object is initialized if a user is utilizing the createTable method [#4] (Daniel Frett) - Fix error message in phpCAS::setCacheTimesForAuthRecheck() [PHPCAS-132/#1] (Bradley Froehle) - Always return attributes in utf8 [PHPCAS-102] - Fix warning during debugging if debug is set to false [PHPCAS-123] (Sean Watkins) New Features : - Add a script to create the PGT db table in proxy mode [#11] (Joachim Fritschi) - Switch to the Apache License [#5] (Adam Franco, Joachim Fritschi) - Move to github and add all necessary file to package [#12] (Adam Franco) - New build process for github [#12] (Adam Franco) - Update unit tests to work with the lastest phpunit version [PHPCAS-128] (Adam Franco) - Refacatoring of the protocol decision making to allow validation of proxied usage [PHPCAS-69] (Joachim Fritschi, Adam Franco) - Rebroadcast of logout and pgtiou to support clustered phpcas [PHPCAS-100] (Matthew Selwood, Adam Franco) Improvements : - Improved cookie handling [] (Adam Franco - Indent, format and user name guidelines of PEAR [#14] (Joachim Fritschi) - Add a class autoloading feature [PHPCAS-125/#8] (Joachim Fritschi) - Remove global variables [PHPCAS-126] (Adam Franco) - Implementation of an exception framework to allow gracefull termination [PHPCAS-109] (Joachim Fritschi) - enable single sign-out when session has already started [#29] (Benvii) Security Fixes : - CVE-2012-1104 validate proxied usage of a service [PHPCAS-69] (Joachim Fritschi, Adam Franco) - CVE-2012-1105 change the default PGT save path to the session storage path and set proper permissions [#22] (Joachim Fritschi) Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-03-17 modified 2012-04-02 plugin id 58547 published 2012-04-02 reporter This script is Copyright (C) 2012-2020 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/58547 title Fedora 15 : php-pear-CAS-1.3.0-2.fc15 (2012-4077) NASL family Fedora Local Security Checks NASL id FEDORA_2012-4119.NASL description Upstream changelog Changes in version 1.3.0 Bug Fixes : - the saml logout url should be parsed urlencoded [#24] (dlineate) - fix a proxy mode bug introduced in a previous comitt [#16] (Adam Franco) - Fix include_path order so that the phpCAS path takes precedence [#13] (Adam Franco) - fix invalid characters in the php session naming [#17] (Joachim Fritschi) - fix an initialisation problem introduced in the PGT storage [18] (Daniel Frett) - make sure the PGTStorage object is initialized if a user is utilizing the createTable method [#4] (Daniel Frett) - Fix error message in phpCAS::setCacheTimesForAuthRecheck() [PHPCAS-132/#1] (Bradley Froehle) - Always return attributes in utf8 [PHPCAS-102] - Fix warning during debugging if debug is set to false [PHPCAS-123] (Sean Watkins) New Features : - Add a script to create the PGT db table in proxy mode [#11] (Joachim Fritschi) - Switch to the Apache License [#5] (Adam Franco, Joachim Fritschi) - Move to github and add all necessary file to package [#12] (Adam Franco) - New build process for github [#12] (Adam Franco) - Update unit tests to work with the lastest phpunit version [PHPCAS-128] (Adam Franco) - Refacatoring of the protocol decision making to allow validation of proxied usage [PHPCAS-69] (Joachim Fritschi, Adam Franco) - Rebroadcast of logout and pgtiou to support clustered phpcas [PHPCAS-100] (Matthew Selwood, Adam Franco) Improvements : - Improved cookie handling [] (Adam Franco - Indent, format and user name guidelines of PEAR [#14] (Joachim Fritschi) - Add a class autoloading feature [PHPCAS-125/#8] (Joachim Fritschi) - Remove global variables [PHPCAS-126] (Adam Franco) - Implementation of an exception framework to allow gracefull termination [PHPCAS-109] (Joachim Fritschi) - enable single sign-out when session has already started [#29] (Benvii) Security Fixes : - CVE-2012-1104 validate proxied usage of a service [PHPCAS-69] (Joachim Fritschi, Adam Franco) - CVE-2012-1105 change the default PGT save path to the session storage path and set proper permissions [#22] (Joachim Fritschi) Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-03-17 modified 2012-04-02 plugin id 58548 published 2012-04-02 reporter This script is Copyright (C) 2012-2020 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/58548 title Fedora 16 : php-pear-CAS-1.3.0-2.fc16 (2012-4119)
References
- http://www.openwall.com/lists/oss-security/2012/03/05/7
- http://www.openwall.com/lists/oss-security/2012/03/05/7
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2012-1104
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2012-1104
- https://gitlab.vsb.cz/kal0178/sixmon/blob/b18bcde090dc38fc968a0b1e38d1dab08b8c369e/web/lib/CAS/CAS-1.3.5/docs/ChangeLog
- https://gitlab.vsb.cz/kal0178/sixmon/blob/b18bcde090dc38fc968a0b1e38d1dab08b8c369e/web/lib/CAS/CAS-1.3.5/docs/ChangeLog
- https://security-tracker.debian.org/tracker/CVE-2012-1104
- https://security-tracker.debian.org/tracker/CVE-2012-1104
- https://www.securityfocus.com/bid/52279
- https://www.securityfocus.com/bid/52279