Bug 4433 - glpi new security vulnerability CVE-2011-2720
Summary: glpi new security vulnerability CVE-2011-2720
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Security (show other bugs)
Version: 1
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard:
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2012-02-07 23:05 CET by David Walser
Modified: 2012-02-16 12:01 CET (History)
4 users (show)

See Also:
Source RPM: glpi-0.78.2-2.mga1.src.rpm
CVE:
Status comment:


Attachments

Description David Walser 2012-02-07 23:05:18 CET
Mandriva issued this advisory on February 6:
http://www.mandriva.com/support/security/advisories/?dis=mes5&name=MDVSA-2012:014

The vulnerability affects versions before 0.80.2 (we have 0.78.2), and MDV updated it to version 0.80.6 to address the vulnerability.
Comment 1 Manuel Hiebel 2012-02-07 23:17:43 CET
Hi, thanks for reporting this bug.
Assigned to the package maintainer.

(Please set the status to 'assigned' if you are working on it)

Keywords: (none) => Triaged
Assignee: bugsquad => guillomovitch

Comment 2 Guillaume Rousse 2012-02-08 10:45:13 CET
Updating to a new version seems a bad idea there, as it requires to update the plugins too (additional work for the maintainer) and to upgrade the database too (additional work for end user). I'd rather try to backport the fix.

Status: NEW => ASSIGNED

Comment 3 David Walser 2012-02-08 16:05:19 CET
Right now it's up to your discretion as the maintainer.  MDV only updated the version in MES5, which we don't *officially* support upgrading from.  So far they haven't issued an update for the version in MDV 2010.2.  I'll let you know if they do.
Comment 4 David Walser 2012-02-10 03:10:24 CET
FYI, I just saw 0.80.7 announced as a security fix upstream:
https://forge.indepnet.net/issues/3338

Also, here is the reference for the security fix in 0.80.2:
https://forge.indepnet.net/issues/3017

Upstream has noted several bugs fixed in each of the updates, but hasn't identified any others as security bugs.
Comment 5 David Walser 2012-02-11 01:10:44 CET
Mandriva issued the 0.80.7 update for MES5 today (February 10).  Here's the link (mainly passing it along for the advisory info):
http://www.mandriva.com/en/support/security/advisories/?dis=mes5&name=MDVSA-2012:016
Comment 6 Guillaume Rousse 2012-02-13 14:43:57 CET
I just submitted glpi-0.78.2-2.1.mga1 with the two upstream patches applied.

Here's an advisory.

This GLPI updates fixes two security issues:

The autocompletion functionality in GLPI before 0.80.2 does not
blacklist certain username and password fields, which allows remote
attackers to obtain sensitive information via a crafted POST request
(CVE-2011-2720).

GLPI before 0.80.7 fails to properly sanitize the GET 'sub_type' parameter in the front/popup.php file, which could be used by an authenticated user for remote file inclusion (RFI).
(CVE-2012-1037)
Comment 7 David Walser 2012-02-13 15:36:26 CET
Thanks Guillaume.  Assigning to QA.  Here's a reference URL list for the advisory:

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-2720
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-1037
http://seclists.org/fulldisclosure/2012/Feb/157

CC: (none) => guillomovitch
Assignee: guillomovitch => qa-bugs

Comment 8 Dave Hodgins 2012-02-13 23:30:22 CET
I've found install info at http://blog.famillecollet.com/pages/OCS-GLPI-en

Do the ocsinventory packages (agent, reports, and server) have to be
installed too, or can glpi work without them?

Btw, I noticed when it asks to accept the license, the license is blank.
Haven't checked to see if that's a regression, although I doubt it.

CC: (none) => davidwhodgins

Comment 9 Guillaume Rousse 2012-02-13 23:36:51 CET
glpi works perfectly without ocs, and if you really need an agent to automatically collect inventory, fusioninventory is a better choice.
Comment 10 Dave Hodgins 2012-02-14 00:44:59 CET
In the glpi setup, I keep getting
Can't connect to MySQL server on '127.0.0.1' (111)

The server is running, and I've double checked the mysql
id and password.  Suggestions?
Comment 11 Dave Hodgins 2012-02-14 01:20:51 CET
Figured it out.  I had to comment out the line
skip-networking
in /etc/my.cnf, and set the password for the glpi
user on the host localhost.  For some reason it
doesn't work if it's only specified for the host "Any".

Note from the install instructions, the initial login
once the database has been initialized is user glpi
with password glpi, not the mysql password.

Testing complete on i586 for the srpm
glpi-0.78.2-2.1.mga1.src.rpm

I added a user under administration, and then a computer
under inventory.
Comment 12 claire robinson 2012-02-16 11:22:30 CET
I'm having problems testing this. I performed the mysql steps apart from one ocs one which failed as ocsinventory is not installed.

I am unable to connect to locolhost/glpi, it says connection was reset, so I'm not able to reach the setup. 

I checked /etc/httpd/conf/webapps.d/glpi.conf and it seems to be OK but still unable to connect for some reason..
Comment 13 claire robinson 2012-02-16 11:27:51 CET
problem solved, I had to remove php-suhosin

Testing x86_64
Comment 14 claire robinson 2012-02-16 11:52:19 CET
Completed setup and logged in as each user, created a new note as glpi and viewed it as tech. Created a user and a computer with various bits of information.

Testing complete x86_64

Advisory
----------
This GLPI update fixes two security issues:

The autocompletion functionality in GLPI before 0.80.2 does not
blacklist certain username and password fields, which allows remote
attackers to obtain sensitive information via a crafted POST request
(CVE-2011-2720).
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-2720

GLPI before 0.80.7 fails to properly sanitize the GET 'sub_type' parameter in
the front/popup.php file, which could be used by an authenticated user for
remote file inclusion (RFI).
(CVE-2012-1037)
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-1037
http://seclists.org/fulldisclosure/2012/Feb/157
-------------

SRPM: glpi-0.78.2-2.1.mga1.src.rpm


Could sysadmin please push from core/updates_testing to core/updates

Thankyou!

Keywords: Triaged => validated_update
CC: (none) => sysadmin-bugs
Hardware: i586 => All

Comment 15 Thomas Backlund 2012-02-16 12:01:54 CET
update pushed

Status: ASSIGNED => RESOLVED
CC: (none) => tmb
Resolution: (none) => FIXED


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