Hi,
I have the drupal set up with version 10.1.6 with simple search engine assiociated with content type. I am enabling the SSO, but from security team i have got the report "42424 - CGI Generic SQL Injection (blind)" error.
I have tried tor emove some of the contributed modules like Taxonomy menu, CSV importer, serialization etc.., but still facing same issue. I ahve not modified any core functionalitties or written any customized queries. Please let me know any suggestion to overcome this vulnarability. Mention if you think any contributed modules will cause this isse if any.
More Details:
Synopsis
A CGI application hosted on the remote web server is potentially prone to SQL injection attack.
Description
By sending specially crafted parameters to one or more CGI scripts hosted on the remote web server, Nessus was able to get a very different response, which suggests that it may have been able to modify the behavior of the application and directly access the underlying database.
An attacker may be able to exploit this issue to bypass authentication, read confidential data, modify the remote database, or even take control of the remote operating system.
Note that this script is experimental and may be prone to false positives.
See Also
http://www.securiteam.com/securityreviews/5DP0N1P76E.html
http://www.nessus.org/u?ed792cf5
http://www.nessus.org/u?11ab1866
Solution
Modify the affected CGI scripts so that they properly escape arguments.
Risk Factor
High
CVSS v3.0 Base Score
8.3 (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L)
CVSS v2.0 Base Score
7.5 (CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P)
References
XREF CWE:20
XREF CWE:77
XREF CWE:89
XREF CWE:91
XREF CWE:203
XREF CWE:643
XREF CWE:713
XREF CWE:722
XREF CWE:727
XREF CWE:751
XREF CWE:801
XREF CWE:810
XREF CWE:928
XREF CWE:929
Plugin Information
Published: 2009/11/06, Modified: 2022/10/28
Plugin Output
tcp/443/www
Using the GET HTTP method, Nessus found that :
+ The following resources may be vulnerable to blind SQL injection :
+ The 'pass' parameter of the /user/login CGI :
/user/login?form_build_id=form-nyrOf9WeeWVSuZEsoiKUyqZDOlXQh69K_YTFUNUuo
FY&op=Log%20in&name=&form_id=user_login_form&pass=zzform-nyrOf9WeeWVSuZE
soiKUyqZDOlXQh69K_YTFUNUuoFY&op=Log%20in&name=&form_id=user_login_form&p
ass=yy
-------- output --------
m" autocomplete="off" action="/user/login?form_build_id=form-nyrOf9WeeWV
SuZEsoiKUyqZDOlXQh69K_YTFUNUuoFY&op=Log%20in&name=&form_id=u
ser_login_form&pass=" method="post" id="user-login-form" accep [...]
-------- vs --------
m" autocomplete="off" action="/user/login?form_build_id=form-nyrOf9WeeWV
SuZEsoiKUyqZDOlXQh69K_YTFUNUuoFY&op=Log%20in&name=&form_id=u
ser_login_form&pass=yy" method="post" id="user-login-form" acc [...]
------------------------
+ The 'op' parameter of the /user/login CGI :
/user/login?form_build_id=form-nyrOf9WeeWVSuZEsoiKUyqZDOlXQh69K_YTFUNUuo
FY&pass=&name=&form_id=user_login_form&op=Log%20inzzform-nyrOf9WeeWVSuZE
soiKUyqZDOlXQh69K_YTFUNUuoFY&pass=&name=&form_id=user_login_form&op=Log%
20inyy
-------- output --------
m" autocomplete="off" action="/user/login?form_build_id=form-nyrOf9WeeWV
SuZEsoiKUyqZDOlXQh69K_YTFUNUuoFY&pass=&name=&form_id=user_lo
gin_form&op=Log%20in" method="post" id="user-login-form" accep [...]
-------- vs --------
m" autocomplete="off" action="/user/login?form_build_id=form-nyrOf9WeeWV
SuZEsoiKUyqZDOlXQh69K_YTFUNUuoFY&pass=&name=&form_id=user_lo
gin_form&op=Log%20inyy" method="post" id="user-login-form" acc [...]
------------------------
+ The 'name' parameter of the /user/login CGI :
/user/login?form_build_id=form-nyrOf9WeeWVSuZEsoiKUyqZDOlXQh69K_YTFUNUuo
FY&pass=&op=Log%20in&form_id=user_login_form&name=zzform-nyrOf9WeeWVSuZE
soiKUyqZDOlXQh69K_YTFUNUuoFY&pass=&op=Log%20in&form_id=user_login_form&n
ame=yy
-------- output --------
m" autocomplete="off" action="/user/login?form_build_id=form-nyrOf9WeeWV
SuZEsoiKUyqZDOlXQh69K_YTFUNUuoFY&pass=&op=Log%20in&form_id=u
ser_login_form&name=" method="post" id="user-login-form" accep [...]
-------- vs --------
m" autocomplete="off" action="/user/login?form_build_id=form-nyrOf9WeeWV
SuZEsoiKUyqZDOlXQh69K_YTFUNUuoFY&pass=&op=Log%20in&form_id=u
ser_login_form&name=yy" method="post" id="user-login-form" acc [...]
------------------------
+ The 'form_id' parameter of the /user/login CGI :
/user/login?form_build_id=form-nyrOf9WeeWVSuZEsoiKUyqZDOlXQh69K_YTFUNUuo
FY&pass=&op=Log%20in&name=&form_id=user_login_formzzform-nyrOf9WeeWVSuZE
soiKUyqZDOlXQh69K_YTFUNUuoFY&pass=&op=Log%20in&name=&form_id=user_login_
formyy
-------- output --------
m" autocomplete="off" action="/user/login?form_build_id=form-nyrOf9WeeWV
SuZEsoiKUyqZDOlXQh69K_YTFUNUuoFY&pass=&op=Log%20in&name=&
;form_id=user_login_form" method="post" id="user-login-form" accep [...]
-------- vs --------
m" autocomplete="off" action="/user/login?form_build_id=form-nyrOf9WeeWV
SuZEsoiKUyqZDOlXQh69K_YTFUNUuoFY&pass=&op=Log%20in&name=&
;form_id=user_login_formyy" method="post" id="user-login-form" acc [...]
------------------------
/user/login?form_build_id=form-nyrOf9WeeWVSuZEsoiKUyqZDOlXQh69K_YTFUNUuo
FY&pass=&op=Log%20in&name=&form_id=user_login_formzzform-nyrOf9WeeWVSuZE
soiKUyqZDOlXQh69K_YTFUNUuoFY&pass=&op=Log%20in&name=&form_id=user_login_
formyy {2}
-------- output --------
m" autocomplete="off" action="/user/login?form_build_id=form-nyrOf9WeeWV
SuZEsoiKUyqZDOlXQh69K_YTFUNUuoFY&pass=&op=Log%20in&name=&
;form_id=user_login_form" method="post" id="user-login-form" accep [...]
-------- vs --------
m" autocomplete="off" action="/user/login?form_build_id=form-nyrOf9WeeWV
SuZEsoiKUyqZDOlXQh69K_YTFUNUuoFY&pass=&op=Log%20in&name=&
;form_id=user_login_formyy" method="post" id="user-login-form" acc [...]
------------------------