<aside> ๐Ÿ“Ž Content

DOM XSS


XSS Perform aย DOM XSS attack withย <iframe src="javascript:alert(xss)">

<aside> ๐Ÿ’ก DOM XSS : DOM(Document Object Model)์€ HTML ๋ฐ XML ๋ฌธ์„œ์— ์ ‘๊ทผํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ํ‘œ์ค€์œผ๋กœ ์ •์˜ํ•˜๋Š” ๋ฌธ์„œ ๊ฐ์ฒด ๋ชจ๋ธ์ด๋‹ค. XSS๋ฅผ ํ†ตํ•ด DOM ํ™˜๊ฒฝ์„ ์ˆ˜์ •ํ•˜์—ฌ ํด๋ผ์ด์–ธํŠธ ์ธก ์ฝ”๋“œ๊ฐ€ ์˜ˆ์ƒ์น˜ ๋ชปํ•œ ๋ฐฉ์‹์œผ๋กœ ๊ณต๊ฒฉ ๊ตฌ๋ฌธ์ด ์‹คํ–‰๋˜๋Š” ๊ณต๊ฒฉ ๊ธฐ๋ฒ•์ด๋‹ค.

</aside>

Untitled

๋‹จ์–ด๋ฅผ ๊ฒ€์ƒ‰์ฐฝ์— ์ž…๋ ฅํ•˜๋ฉด Search Results์™€ ํ•จ๊ป˜ ํ•ด๋‹น ํ‚ค์›Œ๋“œ + ํ•ด๋‹น ์•„์ดํ…œ์„ ๋ณด์—ฌ์ค€๋‹ค. ๊ฒ€์ƒ‰ ๋ฌธ์ž์—ด์ด result๋กœ ๋ณด์—ฌ์ง€๋Š”๋ฐ

Untitled

Untitled

์ด๊ณณ์— <iframe src="javascript:alert(xss)"> ๊ณผ ๊ฐ™์€ script๋ฅผ ์‚ฝ์ž…ํ•˜๋ฉด ํ•ด๋‹น script๊ฐ€ html ์ฝ”๋“œ ๋‚ด์— ์‚ฝ์ž…๋จ์„ ์•Œ ์ˆ˜ ์žˆ๊ณ  script๊ฐ€ ์‹คํ–‰๋œ๋‹ค.

Bonus Payload


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> ํƒœ๊ทธ๋ฅผ ๊ฒ€์ƒ‰์ฐฝ์— ์‚ฝ์ž…ํ•˜๋ฉด

Untitled

์œ„์™€ ๊ฐ™์€ soundcloud ์Œ์›์ด ์ž„๋ฒ ๋“œ๋กœ ํ˜•์„ฑ๋จ์„ ์•Œ ์ˆ˜ ์žˆ๋‹ค.