### 大汉VC系统SQL注入漏洞
来源:http://www.wooyun.org/bugs/wooyun-2010-079073
### 漏洞详情
注入点:/vc/vc/interface/index/que_style_coltop.jsp?webid=1
代码分析:
```
String strWebId = Convert.getParameter(request, "webid").trim();//webid没有过滤
String strColumnId = Convert.getParameter(request, "colid").trim();
String strWebSiteUrl = "";
.... ....
//获取栏目排行数据
if (strMsg == null) {
WebInfoBLF webBlf = new WebInfoBLF();
strWebSiteUrl = "http://"+webBlf.getWebUrl(strWebId);
strSql = "SELECT a.columnid,b.vc_url,a.monthtotal,b.vc_cataname"
+ " FROM jcms_visitcountcolumnday a,jcms_cataloginfo b "
+ " WHERE a.i_webid="+ strWebId //直接带入SQL执行。
```
### 解决方案
升级官网补丁
暂无评论