CGI Generic SQL Injection (Parameters Names)

high Nessus Plugin ID 51973

Synopsis

A web application is potentially vulnerable to SQL injection attacks.

Description

By providing specially crafted parameters to CGIs, Nessus was able to get an error from the underlying database. This error suggests that the CGI is affected by a SQL injection vulnerability.

An attacker may be able to exploit this flaw to bypass authentication, read confidential data, modify the remote database, or even take control of the remote operating system.

Solution

Modify the relevant CGIs so that they properly escape arguments.

See Also

https://en.wikipedia.org/wiki/SQL_injection

http://www.securiteam.com/securityreviews/5DP0N1P76E.html

http://www.nessus.org/u?ed792cf5

http://projects.webappsec.org/w/page/13246963/SQL%20Injection

Plugin Details

Severity: High

ID: 51973

File Name: torture_cgi_sql_injection_param_names.nasl

Version: 1.15

Type: remote

Family: CGI abuses

Published: 2/14/2011

Updated: 4/11/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Vulnerability Information

Required KB Items: Settings/enable_web_app_tests

Reference Information

CWE: 20, 203, 209, 713, 717, 722, 727, 751, 77, 801, 810, 89, 928, 929, 933