Secunia Security Advisory - 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.
e6ae51ac3594dd54c8d670df0872137c010b84da33699547784a1c01d2cbcc82
----------------------------------------------------------------------
Want to join the Secunia Security Team?
Secunia offers a position as a security specialist, where your daily
work involves reverse engineering of software and exploit code,
auditing of source code, and analysis of vulnerability reports.
http://secunia.com/secunia_security_specialist/
----------------------------------------------------------------------
TITLE:
PhpMyFactures Multiple Vulnerabilities
SECUNIA ADVISORY ID:
SA20642
VERIFY ADVISORY:
http://secunia.com/advisories/20642/
CRITICAL:
Moderately critical
IMPACT:
Security Bypass, Cross Site Scripting, Manipulation of data
WHERE:
>From remote
SOFTWARE:
PhpMyFactures 1.x
http://secunia.com/product/10482/
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
----------------------------------------------------------------------
About:
This Advisory was delivered by Secunia as a free service to help
everybody keeping their systems up to date against the latest
vulnerabilities.
Subscribe:
http://secunia.com/secunia_security_advisories/
Definitions: (Criticality, Where etc.)
http://secunia.com/about_secunia_advisories/
Please Note:
Secunia recommends that you verify all advisories you receive by
clicking the link.
Secunia NEVER sends attached files with advisories.
Secunia does not advise people to install third party patches, only
use those supplied by the vendor.
----------------------------------------------------------------------