IBM AppScan-盲SQL注入(基于时间)-JSF 2.2和Primefaces-JBOSS 7.2 EAP

问题描述 投票:2回答:1

原始帖子IBM AppScan

我们最近收到了来自IBM AppScan DAST的结果,其中一些结果没有多大意义。

高度盲SQL注入(基于时间)

Parameter: form:propertyTree:0:j_idt126
Risk(s): It is possible to view, modify or delete database entries and tables
Fix: Review possible solutions for hazardous character injection

Image

盲SQL注入的第二种情况(基于时间)

URL: https://***/javax.faces.resource/components.js.xhtml
Parameter: v
Risk(s): It is possible to view, modify or delete database entries and tables
Fix: Review possible solutions for hazardous character injection

The following changes were applied to the original request:
- Set the value of the parameter 'v' to '7.0.9%27+where+sleep%280%29%3D0+--+'
- Set the value of the parameter 'v' to '7.0.9%27+where+sleep%28181%29%3D0+limit+1+--+'
- Set the value of the parameter 'v' to '7.0.9%27+where+sleep%280%29%3D0+--+'

Reasoning:
The first and third test responses were timed out and the second test response was received
normally

原因:第一个和第三个测试响应超时,并且第二个测试响应正常接收

盲SQL注入的第三种情况(基于时间)

URL: https:/**/externalcasestart.xhtml
Parameter: javax.faces.source
Risk(s): It is possible to view, modify or delete database entries and tables
Fix: Review possible solutions for hazardous character injection

The following changes were applied to the original request:
- Set the value of the parameter 'javax.faces.source' to
'form%3AmainGridBodyTable+and+sleep%280%29'
- Set the value of the parameter 'javax.faces.source' to
'form%3AmainGridBodyTable+and+1%3D2+or+sleep%28181%29%3D0+limit+1+--+'
- Set the value of the parameter 'javax.faces.source' to
'form%3AmainGridBodyTable+and+sleep%280%29'
Reasoning:
The first and third test responses were timed out and the second test response was received
normally
Request/Response:

Request/Response:
POST /***/externalcasestart.xhtml HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 9.0; Win32)
Connection: keep-alive
Faces-Request: partial/ajax
X-Requested-With: XMLHttpRequest
Accept: application/xml, text/xml, */*; q=0.01
Accept-Language: en-US,en;q=0.9
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
javax.faces.partial.ajax=true& javax.faces.source=form%3AmainGridBodyTable+and+sleep%280%29 &javax
.faces .parti al.exe cute=f orm%3A mainGr idBody Table& javax. faces. partia l.rend er=for m%3Ama
inGrid BodyTa ble&fo rm%3Am ainGri dBodyT able=f orm%3A mainGr idBody Table& form%3 AmainG ridBod
yTable _pagin ation= true&f orm%3A mainGr idBody Table_ first= 0&form %3Amai nGridB odyTab le_r

正在寻找反馈和一些见识。

primefaces sql-injection jsf-2.2 bluemix-app-scan
1个回答
0
投票

我不能说这个特定的发现是否为假阳性,但是我们会看到很多这样的假阳性-当扫描以一定速率运行时,会使系统超载,然后在响应中产生很多变化。对于某些参数,正确的注入将超时,因此它看起来像是对测试人员的SQL注入。

此类型的结果之后应进行手动检查,单独的工具(例如SQLmap)或至少使用同一工具进行第二次运行以查看其是否重复。如果那不可能,请通过代码审查来验证它,并继续您的生活。

© www.soinside.com 2019 - 2024. All rights reserved.