๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
  • Welcome.
:: DreamHack ๐Ÿšฉ/wargame - web

[ dreamhack ] - [ web | pathtraversal ]

by EunBird 2022. 3. 15.

 

๋ฌธ์ œ


์ฒ˜์Œ ์ ‘์†ํ•˜๋ฉด ์œ„์™€ ๊ฐ™์€ ํŽ˜์ด์ง€๊ฐ€ ๋œฌ๋‹ค.


 

geust๋ฅผ ์ž…๋ ฅํ•˜๊ณ  View๋ฅผ ๋ˆŒ๋ €์„ ๋•Œ 

ํ•ด๋‹น ์ •๋ณด๋ฅผ ์ถœ๋ ฅํ•˜๋Š” ๊ฒƒ์„ ์•Œ ์ˆ˜ ์žˆ๋‹ค.


 

/api/flag ์— flag๊ฐ€ ์žˆ๋‹ค๊ณ  ํ–ˆ์œผ๋‹ˆ 

์ƒ์œ„ ํด๋”๋กœ ์ด๋™์„ ์‹œ๋„ํ•˜๊ธฐ ์œ„ํ•ด ../ ๋ฅผ ์ž…๋ ฅํ•˜์—ฌ ์ „์†กํ•ด๋ณด๊ฒ ๋‹ค.


../ ๋ผ๊ณ  ์ž…๋ ฅํ•œ ๊ฐ’์ด undefined ๋กœ ๋ฐ”๋€์ฑ„๋กœ ์ „์†ก๋จ์„ ์•Œ ์ˆ˜ ์žˆ๋‹ค.


../ ๋ฅผ ์ž…๋ ฅํ•˜์—ฌ ์ „์†กํ–ˆ๋”๋‹ˆ ์œ„์™€ ๊ฐ™์€ html ์ฝ”๋“œ๊ฐ€ ์ถœ๋ ฅ๋˜์—ˆ๋‹ค.

../ ๊ฐ€ ์ธ์‹๋œ ๊ฒƒ์œผ๋กœ ๋ณด์ธ๋‹ค.


๊ทธ๋Ÿผ ์ด๋ฒˆ์—๋Š” ../ ํ•œ๋ฒˆ์œผ๋กœ ์ตœ์ƒ์œ„ ํด๋”๊นŒ์ง€ ์ด๋™ํ• ๊ฑฐ ๊ฐ™์ง€ ์•Š์•„์„œ

../../ ๋ผ๊ณ  ์ž…๋ ฅํ•˜์—ฌ ๋‘ ๊ณ„์ธต์œ„์˜ ํด๋”๋กœ ์ด๋™์‹œ์ผœ๋ณด์•˜๋‹ค.


์ถœ๋ ฅ ๊ฐ’์— html ์ฝ”๋“œ๊ฐ€ ์ถœ๋ ฅ๋˜์—ˆ๋‹ค. 

../../../ ๋„ ์ž…๋ ฅํ•˜์—ฌ ๋ณด์•˜์ง€๋งŒ ../../๋ฅผ ์ž…๋ ฅํ–ˆ์„ ๋•Œ์™€ ๊ฐ™์€ ์ฝ”๋“œ๊ฐ€ ์ถœ๋ ฅ๋˜๋Š” ๊ฒƒ์œผ๋กœ ๋ณด์•„ 

๋‘๋ฒˆ๋งŒ ์œ„ ๊ณ„์ธต์œผ๋กœ ๊ฐ€๋ฉด ์ตœ์ƒ์œ„ ๊ณ„์ธต์ธ ๊ฒƒ์œผ๋กœ ๋ณด์ธ๋‹ค.


/api/flag ์— flag๊ฐ€ ์žˆ๋‹ค๊ณ  ํ–ˆ์œผ๋‹ˆ ../../api/flag ๋ผ๊ณ  ์ž…๋ ฅํ•˜์—ฌ 

flag ๊ฐ’์„ ์–ป์–ด๋ณด์ž.


FLAG ๊ฐ’์ด ์ œ๋Œ€๋กœ ์ถœ๋ ฅ๋œ๋‹ค.

728x90

':: DreamHack ๐Ÿšฉ > wargame - web' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

[ dreamhack ] - [ web | proxy-1 ]  (0) 2022.03.17
[ dreamhack ] - [ web | command-injection-1 ]  (0) 2022.03.16
[ dreamhack ] - [web | file download ]  (0) 2022.03.16
[ dreamhack ] - [ web | simple sqli ]  (0) 2022.03.15
[ dreamhack ] - [ web | cookie]  (0) 2022.03.15

๋Œ“๊ธ€