소스 검색

Merge pull request #3137 from r0hanSH/fix_dom_xss

Fix DOM XSS
Hakim El Hattab 3 년 전
부모
커밋
c47bf217be
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      plugin/notes/speaker-view.html

+ 4 - 0
plugin/notes/speaker-view.html

@@ -368,6 +368,10 @@
 
 				window.addEventListener( 'message', function( event ) {
 
+					if (window.location.origin !== event.origin){
+						return;
+					}
+
 					clearTimeout( connectionTimeout );
 					connectionStatus.style.display = 'none';