Archive for Dev. (junyup2)

์ง€์‹์„ ์ฑ„์›Œ๊ฐ€๋Š” ใ€Ž๊ฐœ๋ฐœ์ž/ํ™”์ดํŠธํ•ด์ปคใ€๋ฅผ ๋ชฉํ‘œ๋กœ ์ •๋ฆฌํ•˜๋Š” ๋ธ”๋กœ๊ทธ

ClientScript 3

[SegFault] (ClientScript) - Steal Info 2

[SegFault] (ClientScript) Steal Info 2 admin ๊ณ„์ •์˜ ๋งˆ์ดํŽ˜์ด์ง€์˜ ์ •๋ณด๋ž€์— flag๊ฐ€ ์ˆจ๊ฒจ์ ธ์žˆ๋‹ค! ์ฐพ์•„๋‚ด์‹œ์˜ค! ๋ฌธ์ œ ํŒŒ์•… ๋ณธ ๋ฌธ์ œ์˜ ๊ฒฝ์šฐ XSS ์ทจ์•ฝ์ ์„ ์ฐพ๊ณ , ์ค‘์š” ์ •๋ณด๊ฐ€ ์žˆ๋Š” ํŽ˜์ด์ง€์™€ ๋˜‘๊ฐ™์€ ํŽ˜์ด์ง€์—์„œ ํ•ด๋‹น ์ •๋ณด์˜ document ๊ฐ’์„ ํ™•์ธํ•˜๊ณ , ๊ด€๋ฆฌ์ž Bot์— ํ•ด๋‹น ๋งํฌ๋ฅผ ์ž…๋ ฅํ•˜์—ฌ ๊ณต๊ฒฉ์ž ์„œ๋ฒ„๋กœ ์‹ค์ œ ์ค‘์š” ์ •๋ณด๊ฐ€ ์žˆ๋Š” ํŽ˜์ด์ง€์˜ ๋™์ผํ•œ ์œ„์น˜์— ์žˆ๋Š” ์ •๋ณด๋ฅผ ๊ฐ€์ ธ์˜ค๋Š” ๋ฐฉ์‹์œผ๋กœ ์ด๋ฃจ์–ด์ ธ ์žˆ๋‹ค. ํ•˜์ง€๋งŒ ํ˜„์žฌ ๊ณต๊ฒฉ์ž ์„œ๋ฒ„๋ฅผ ๊ฐ–๊ณ  ์žˆ์ง€ ์•Š์œผ๋ฏ€๋กœ RequestBin์„ ์ด์šฉํ•˜๊ธฐ๋กœ ํ•œ๋‹ค. ์šฐ์„  ์œ„์˜ [๊ด€๋ฆฌ์ž ๋ฐฉ๋ฌธ Bot Link]์— ์ ‘์†ํ•˜๋ฉด ๋‹ค์Œ๊ณผ ๊ฐ™์€ URL ์ž…๋ ฅ์ฐฝ์„ ๋ณผ ์ˆ˜ ์žˆ๋‹ค. XSS ์ทจ์•ฝ์ ์„ ์ด์šฉํ•˜์—ฌ ์›ํ•˜๋Š” ์ •๋ณด๋ฅผ ์ฐพ๊ณ  ํ•ด๋‹น ๊ฐ’์„ ๊ฐ€์ ธ์˜ค๊ธฐ ์œ„ํ•œ ๋งํฌ๋ฅผ ์œ„์˜ URL์— ์ž…๋ ฅํ•˜๋ฉด ..

[SegFault] (ClientScript) - Steal Info

[SegFault] (ClientScript) Steal Info XSS๋ฅผ ์ด์šฉํ•ด ์ค‘์š” ์ •๋ณด๋ฅผ ํƒˆ์ทจํ•ด๋ผ! ๋ฌธ์ œ ํŒŒ์•… ๋ณธ ๋ฌธ์ œ์˜ ๊ฒฝ์šฐ XSS ์ทจ์•ฝ์ ์„ ์ฐพ๊ณ , ์ค‘์š” ์ •๋ณด๊ฐ€ ์žˆ๋Š” ํŽ˜์ด์ง€์™€ ๋˜‘๊ฐ™์€ ํŽ˜์ด์ง€์—์„œ ํ•ด๋‹น ์ •๋ณด์˜ document ๊ฐ’์„ ํ™•์ธํ•˜๊ณ , ๊ด€๋ฆฌ์ž Bot์— ํ•ด๋‹น ๋งํฌ๋ฅผ ์ž…๋ ฅํ•˜์—ฌ ๊ณต๊ฒฉ์ž ์„œ๋ฒ„๋กœ ์‹ค์ œ ์ค‘์š” ์ •๋ณด๊ฐ€ ์žˆ๋Š” ํŽ˜์ด์ง€์˜ ๋™์ผํ•œ ์œ„์น˜์— ์žˆ๋Š” ์ •๋ณด๋ฅผ ๊ฐ€์ ธ์˜ค๋Š” ๋ฐฉ์‹์œผ๋กœ ์ด๋ฃจ์–ด์ ธ ์žˆ๋‹ค. ํ•˜์ง€๋งŒ ํ˜„์žฌ ๊ณต๊ฒฉ์ž ์„œ๋ฒ„๋ฅผ ๊ฐ–๊ณ  ์žˆ์ง€ ์•Š์œผ๋ฏ€๋กœ RequestBin์„ ์ด์šฉํ•˜๊ธฐ๋กœ ํ•œ๋‹ค. ์šฐ์„  ์œ„์˜ [๊ด€๋ฆฌ์ž ๋ฐฉ๋ฌธ Bot Link]์— ์ ‘์†ํ•˜๋ฉด ๋‹ค์Œ๊ณผ ๊ฐ™์€ URL ์ž…๋ ฅ์ฐฝ์„ ๋ณผ ์ˆ˜ ์žˆ๋‹ค. XSS ์ทจ์•ฝ์ ์„ ์ด์šฉํ•˜์—ฌ ์›ํ•˜๋Š” ์ •๋ณด๋ฅผ ์ฐพ๊ณ  ํ•ด๋‹น ๊ฐ’์„ ๊ฐ€์ ธ์˜ค๊ธฐ ์œ„ํ•œ ๋งํฌ๋ฅผ ์œ„์˜ URL์— ์ž…๋ ฅํ•˜๋ฉด ๊ณต๊ฒฉ์ž ์„œ๋ฒ„(ReuqestBin)๋กœ ์ •๋ณด..

[SegFault] (ClientScript) - Basic Script Prac

[SegFault] (ClientScript) Basic Script Prac Mypage์—์„œ XSS๊ฐ€ ์ผ์–ด๋‚œ๋‹ค! ๋งˆ์ดํŽ˜์ด์ง€์— ์žˆ๋Š” ๊ด€๋ฆฌ์ž์˜ ์ค‘์š” ์ •๋ณด! flag๋ฅผ ํƒˆ์ทจํ•ด๋ผ! ๋ฌธ์ œ ํŒŒ์•… ๋ณธ ๋ฌธ์ œ์˜ ๊ฒฝ์šฐ XSS ์ทจ์•ฝ์ ์„ ์ด์šฉํ•˜์—ฌ, ๊ด€๋ฆฌ์ž Bot์— ํ•ด๋‹น ๋งํฌ๋ฅผ ์ž…๋ ฅํ•˜์—ฌ ๊ณต๊ฒฉ์ž ์„œ๋ฒ„๋กœ ํŠน์ • ์œ„์น˜์˜ ์ค‘์š” ์ •๋ณด๋ฅผ ํƒˆ์ทจํ•˜์—ฌ ๋ฐ›์œผ๋ฉด Flag๋ฅผ ํš๋“ํ•  ์ˆ˜ ์žˆ๋Š” ๋ฐฉ์‹์œผ๋กœ ์ด๋ฃจ์–ด์ ธ ์žˆ๋‹ค. ํ•˜์ง€๋งŒ ํ˜„์žฌ ๊ณต๊ฒฉ์ž ์„œ๋ฒ„๋ฅผ ๊ฐ–๊ณ  ์žˆ์ง€ ์•Š์œผ๋ฏ€๋กœ RequestBin์„ ์ด์šฉํ•˜๊ธฐ๋กœ ํ•œ๋‹ค. ์šฐ์„  ์œ„์˜ [๊ด€๋ฆฌ์ž ๋ฐฉ๋ฌธ Bot Link]์— ์ ‘์†ํ•˜๋ฉด ๋‹ค์Œ๊ณผ ๊ฐ™์€ URL ์ž…๋ ฅ์ฐฝ์„ ๋ณผ ์ˆ˜ ์žˆ๋‹ค. XSS ์ทจ์•ฝ์ ์„ ์ด์šฉํ•˜์—ฌ ์›ํ•˜๋Š” ์ •๋ณด๋ฅผ ์ฐพ๊ณ  ํ•ด๋‹น ๊ฐ’์„ ๊ฐ€์ ธ์˜ค๊ธฐ ์œ„ํ•œ ๋งํฌ๋ฅผ ์œ„์˜ URL์— ์ž…๋ ฅํ•˜๋ฉด ๊ณต๊ฒฉ์ž ์„œ๋ฒ„(RequestBin)๋กœ ์ •๋ณด๊ฐ€ ๋‚ ์•„์˜ค๋Š” ๋ฐฉ์‹..