1、发表一篇游记
2、添加一批图片
3、在图片下方插入文本
4、截包修改,desc参数存在问题。如下:
涛涛电脑知识技巧
GET /mobile_ugc/web/editMiniPic.htm?picId=80371&desc=<script>if(location.hash!%3D"")alert(location.hash)</script>&random=1348498825316 HTTP/1.1
Host: lvtu.qunar.com
Proxy-Connection: Keep-Alive
Cookie: ……
访问该地址看效果
?albumId=4228#aaa
修复方案:
对desc参数进行html编码