vendor:
Supernews
by:
Pr0T3cT10n
7,5
CVSS
HIGH
SQL Injection
89
CWE
Product Name: Supernews
Affected Version From: 2.6.1
Affected Version To: 2.6.1
Patch Exists: NO
Related CWE: N/A
CPE: a:supernews:supernews
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: N/A
2012
Supernews <= 2.6.1 (noticias.php cat) Remote SQL Injection
Supernews version 2.6.1 is vulnerable to a remote SQL injection vulnerability due to insufficient sanitization of user-supplied input. The vulnerable code is located in the noticias.php file, where the variable $idcategoria is not properly sanitized before being used in an SQL query. This can be exploited to inject arbitrary SQL code via the 'cat' parameter in a GET request. The filter function formatDados() can be bypassed by using strings such as 'uniunionon' and 'seleselectct' which will replace to clean 'union' and 'select' respectively. An example of a malicious request is http://www.example.com/noticias.php?cat=-1+uniunionon+seleselectct+1,version()--
Mitigation:
Input validation should be used to ensure that untrusted data is not used to construct SQL queries in an unsafe manner. Additionally, parameterized queries should be used to prevent SQL injection attacks.