XLPortal 'index.php' SQL Injection Vulnerability
BID:28408
Info
XLPortal 'index.php' SQL Injection Vulnerability
| Bugtraq ID: | 28408 |
| Class: | Input Validation Error |
| CVE: |
CVE-2008-1509 |
| Remote: | Yes |
| Local: | No |
| Published: | Mar 22 2008 12:00AM |
| Updated: | May 07 2015 05:32PM |
| Credit: | cOndemned |
| Vulnerable: |
XLPortal XLPortal 2.2.4 |
| Not Vulnerable: | |
Discussion
XLPortal 'index.php' SQL Injection Vulnerability
XLPortal is prone to an SQL-injection vulnerability because it fails to sufficiently sanitize user-supplied data before using it in an SQL query.
Exploiting this issue could allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.
XLPortal 2.2.4 is vulnerable; other versions may also be affected.
XLPortal is prone to an SQL-injection vulnerability because it fails to sufficiently sanitize user-supplied data before using it in an SQL query.
Exploiting this issue could allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.
XLPortal 2.2.4 is vulnerable; other versions may also be affected.
Exploit / POC
XLPortal 'index.php' SQL Injection Vulnerability
Attackers can use a browser to exploit this issue.
The following exploit is available:
Attackers can use a browser to exploit this issue.
The following exploit is available:
Solution / Fix
XLPortal 'index.php' SQL Injection Vulnerability
Solution:
The vendor has posted a forum page describing a fix for this issue. The vendor recommends changing the file 'engine/kernel/session.php'.
Change the following line:
$this->post[$key] = htmlspecialchars(@stripslashes($value));
to:
$this->post[$key] = htmlspecialchars(mysql_real_escape_string($value));
Please see the references for more information on fixing affected packages.
Solution:
The vendor has posted a forum page describing a fix for this issue. The vendor recommends changing the file 'engine/kernel/session.php'.
Change the following line:
$this->post[$key] = htmlspecialchars(@stripslashes($value));
to:
$this->post[$key] = htmlspecialchars(mysql_real_escape_string($value));
Please see the references for more information on fixing affected packages.
References
XLPortal 'index.php' SQL Injection Vulnerability
References:
References:
- [SA29479]Wstrzykniecie kodu SQL (XLPortal)
- XLPortal Homepage (XLPortal)