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

phpGreetCards File Upload and Cross-Site Scripting Vulnerabilities

-

Release Date:  2008-12-26    Last Update:  2010-04-23    Views:  5,150

Secunia Advisory SA33304

Where:

From remote

Impact:

Cross Site Scripting, System access

Solution Status:

Unpatched

CVE Reference(s):

Description


Some vulnerabilities have been discovered in phpGreetCards, which can be exploited by malicious people to conduct cross-site scripting attacks and compromise a vulnerable system.

1) The index.php script fails to validate the types of uploaded images. This can be exploited to upload files with arbitrary extensions (e.g. ".php") and execute arbitrary PHP code on the server.

2) Input passed to the "category", "card[image]", "card[sender_name]", "card[sender_email]", "card[recip_name]", "card[recip_email]", "card[recip_email]", "card[recip_email]", "card[font_color]", and "card[category]" parameters in index.php (when "mode" is set to "select") is not 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 the context of an affected site.

These vulnerabilities are confirmed in version 3.7. Other versions may also be affected.


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

Provided and/or discovered by:
1) ahmadbady
2) ahmadbady and Valentin Hoebel

Original Advisory:
ahmadbady:
http://milw0rm.com/exploits/7561

Valentin Hoebel:
http://www.xenuser.org/documents/security/phpgreetcards_xss.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: phpGreetCards File Upload and Cross-Site Scripting 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