Secunia CSI7
Advisories
Research
Forums
Create Profile
Our Commitment
Database
Search
Advisories by Product
Advisories by Vendor
Terminology
Report Vulnerability
Insecure Library Loading
Moderately critical

PhpMyFactures Multiple Vulnerabilities

-

Release Date:  2006-06-14    Last Update:  2006-06-23    Views:  7,649

Secunia Advisory SA20642

Where:

From remote

Impact:

Security Bypass, Cross Site Scripting, Manipulation of data

Solution Status:

Unpatched

CVE Reference(s):

Description


DarkFig has discovered some vulnerabilities in PhpMyFactures, which can be exploited by malicious people to conduct cross-site scripting and SQL injection attacks, and to bypass certain security restrictions.

1) Input passed to the "prefixe_dossier" parameter in /inc/header.php, to the "msg" parameter in /remises/ajouter_remise.php, /tva/ajouter_tva.php, /stocks/ajouter.php, /pays/ajouter_pays.php, /produits/ajouter_cat.php, /produits/ajouter_produit.php and /produits/modifier_cat.php, to the "tire" parameter in /remises/ajouter_remise.php, to the "quantite", "taux" and "date" parameters in /stocks/ajouter.php, and to the "pays" and "prefixe" parameters in /pays/ajouter_pays.php isn't properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.

2) Input passed to the "id_pays" parameter in /pays/modifier_pays.php, to the "id_produit", "quantite", "prix_ht" and "date" parameters in /stocks/ajouter.php, to the "id_cat" parameter in /produits/modifier_cat.php, and to the "id_client" parameter in /clients/modifier_client.php isn't properly sanitised before being used in a SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code without requiring admin logon.

Successful exploitation requires that "magic_quotes_gpc" is disabled.

3) Access to several scripts isn't properly restricted to the logon administrative user. This can be exploited to manipulate data in the database without requiring a valid logon.

The following scripts are affected.
/tva/ajouter_tva.php
/remises/ajouter_remise.php
/pays/ajouter_pays.php
/pays/modifier_pays.php
/produits/ajouter_cat.php
/produits/ajouter_produit.php
/clients/ajouter_client.php
/clients/modifier_client.php

The vulnerabilities have been confirmed in version 1.2 and also reported in version 1.0. Other versions may also be affected.


Solution:
Edit the source code to ensure that input is properly sanitised.

Provided and/or discovered by:
DarkFig

Original Advisory:
http://www.acid-root.new.fr/advisories/phpmyfactures.txt

Deep Links:
Links available to Secunia VIM customers

Do you have additional information related to this advisory?

Please provide information about patches, mitigating factors, new versions, exploits, faulty patches, links, and other relevant data by posting comments to this Advisory. You can also send this information to vuln@secunia.com

Subject: PhpMyFactures Multiple Vulnerabilities

No posts yet

-

You must be logged in to post a comment.



 Products Solutions Customers Partner Resources Company
 
 Corporate
Vulnerability Intelligence Manager (VIM)
Corporate Software Inspector (CSI)
Consumer
Personal Software Inspector (PSI)
Online Software Inspector (OSI)
 Industry
Compliance
Technology
Integration
 Customers
Testimonials
 VARS
MSSP
Technology Partners
References
 Factsheets
Reports
Webinars
Events
 About us
Careers
Memberships
Newsroom


 
© 2002-2014 Secunia ApS - Rued Langgaards Vej 8, 4th floor, DK-2300 Copenhagen, Denmark - +45 7020 5144
Terms & Conditions and Copyright - Privacy - Report Vulnerability