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.
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
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 email@example.com
Subject: PhpMyFactures Multiple Vulnerabilities
No posts yet
You must be logged in to post a comment.
Secunia Customer Login
Not a customer already?
Learn more about how our market leading Vulnerability Management solutions can help you manage risk and ensure compliance.