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

[ dreamhack ] - [web | file download ]

by EunBird 2022. 3. 16.

 

 

 


 

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

 


 

[ Upload Your own Memo ]๋ฅผ ํด๋ฆญํ•˜๋ฉด 

์œ„ ๊ทธ๋ฆผ์ฒ˜๋Ÿผ Filename ๊ณผ Content ๋ฅผ ์ž…๋ ฅํ•  ์ˆ˜ ์žˆ๋Š”๋ฐ,

์ผ๋‹จ ๋‚˜๋Š” ํ…Œ์ŠคํŠธ๋ฅผ ํ•ด๋ณด๊ธฐ ์œ„ํ•ด 

test1 / 1111์„ ์ž…๋ ฅํ•˜๊ณ  Upload๋ฅผ ๋ˆŒ๋Ÿฌ๋ณด๊ฒ ๋‹ค.

 


๋‚ด๊ฐ€ Filename์— ์ž…๋ ฅํ•œ  ๊ฐ’์ด 

์ œ๋ชฉ์ด ๋˜์–ด ์ €์žฅ๋œ ๊ฒƒ์„ ํ™•์ธ ๊ฐ€๋Šฅํ•˜๋ฉฐ,

๋‚ด์šฉ ๋˜ํ•œ ์ €์žฅ๋˜์–ด์žˆ์Œ์„ ํ™•์ธ ํ•  ์ˆ˜ ์žˆ๋‹ค.


์ด ๋ฌธ์ œ๊ฐ€ [ ํŒŒ์ผ ๋‹ค์šด๋กœ๋“œ ์ทจ์•ฝ์  ]์— ๋Œ€ํ•œ ๋ฌธ์ œ์ด๋ฏ€๋กœ

์–ด๋Š ๋ถ€๋ถ„์—์„œ ๋‹ค์šด๋กœ๋“œ๊ฐ€ ์ด๋ฃจ์–ด์งˆ ์ˆ˜ ์žˆ๋Š”์ง€ ์ƒ๊ฐํ•ด๋ณด๋‹ˆ,

์ €์žฅ๋œ test1๊ธ€์„ ํด๋ฆญํ•˜์—ฌ ๋‚ด์šฉ์„ ํ™•์ธํ•  ๋•Œ,

์„œ๋ฒ„์˜ ํŒŒ์ผ ๋ชฉ๋ก์—์„œ ์ด๋ฆ„์ด test1์ธ ํŒŒ์ผ์„ ๋ถˆ๋Ÿฌ์˜ค๋Š” ๊ฒƒ์„ 

http://host2.dreamhack.games:17409/read?name=test1

์ด url์˜ ๋’ท ์ชฝ name=test1 ์„ ํ†ตํ•ด ์•Œ ์ˆ˜ ์žˆ๋‹ค.

 

๊ทธ๋ ‡๋‹ค๋ฉด ํ˜น์‹œ 

test1  ์ด ์•„๋‹ˆ๋ผ 

../flag.py ๋ผ๊ณ  ์ž…๋ ฅํ•˜์—ฌ 

ํ˜น์‹œ ๋ฐ”๋กœ ํ•œ ๋‹จ๊ณ„ ์ƒ์œ„ ํด๋”์˜ ์œ„์น˜์— 

flag.py๊ฐ€ ์กด์žฌํ•˜์ง€ ์•Š์„๊นŒ?

--> ์ถœ๋ ฅ์‹œ์ผœ ๋ณด๊ฒ ๋‹ค. 


../flag.py

๋†€๋ž๊ฒŒ๋„ ๋ฐ”๋กœ ์œ„ ํด๋”์— ์กด์žฌํ–ˆ๋‹ค.

728x90

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

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

๋Œ“๊ธ€