
뉴저지 공식 사이트의 취약점 보고서
data-target 속성은 크로스 사이트 스크립팅(XSS) 공격에 취약합니다.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<button data-toggle="collapse" data-target="">Test</button>
이 특정 문제의 수정은 getTargetFromTrigger 함수를 변경하는 것입니다.
return $(target)
을(를) 다음과 같이 변경:
return $(document.querySelector(target))
하지만 다른 곳에서도 동일한 문제가 있는 것으로 보입니다.
또 다른 예:
<a href="" data-dismiss="alert">Test</a>
http://packetstormsecurity.com/files/152787/dotCMS-5.1.1-Vulnerable-Dependencies.html http://packetstormsecurity.com/files/156743/OctoberCMS-Insecure-Dependencies.html http://seclists.org/fulldisclosure/2019/May/10 http://seclists.org/fulldisclosure/2019/May/11 http://seclists.org/fulldisclosure/2019/May/13 https://access.redhat.com/errata/RHSA-2019:1456 https://blog.getbootstrap.com/2018/07/12/bootstrap-4-1-2/ https://github.com/twbs/bootstrap/issues/26423 https://github.com/twbs/bootstrap/issues/26627 https://github.com/twbs/bootstrap/pull/26630 https://lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f@%3Cdev.drill.apache.org%3E https://lists.apache.org/thread.html/52e0e6b5df827ee7f1e68f7cc3babe61af3b2160f5d74a85469b7b0e@%3Cdev.superset.apache.org%3E https://lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442@%3Cdev.drill.apache.org%3E https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc@%3Cissues.drill.apache.org%3E https://lists.apache.org/thread.html/r3dc0cac8d856bca02bd6997355d7ff83027dcfc82f8646a29b89b714@%3Cissues.hbase.apache.org%3E