๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

์ทจ์•ฝ์  ๋ถ„์„1

[Dreamhack] Cookie ๋“œ๋ฆผํ•ต ์›Œ๊ฒŒ์ž„ ๋ฌธ์ œ ํ’€์ด 1 - 0 - 7. Cookie ์ทจ์•ฝ์  ํƒ์ƒ‰ ์‹ค์Šต # Cookie ์ทจ์•ฝ์  ํƒ์ƒ‰ ์‹ค์Šต 1. ๋“œ๋ฆผํ•ต ์‚ฌ์ดํŠธ์—์„œ ๋ฌธ์ œ ์ •๋ณด ํ™•์ธ ๋ฐ ๋ฌธ์ œ ์ž๋ฃŒ ๋‹ค์šด๋ฐ›๊ธฐ 2. VScode ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ํŒŒ์ด์ฌ ํŒŒ์ผ ์—ด๊ธฐ 3. ํŒŒ์ด์ฌ ํŒŒ์ผ์˜ ์ฝ”๋“œ ๋ถ„์„ + > : flag.txt ํŒŒ์ผ์—์„œ FLAG ๋ฐ์ดํ„ฐ ํ˜ธ์ถœํ•˜๋Š” ์ฝ”๋“œ + > : ํ˜„์žฌ admin, guest 2๊ฐœ์˜ ๊ณ„์ •์ด ์กด์žฌํ•˜๋ฉฐ admin ์˜ password๋Š” FLAG์˜ ๋ฐ์ดํ„ฐ๋กœ ์„ ์–ธํ–ˆ์Œ์„ ํ™•์ธ ๊ฐ€๋Šฅ + > : route ์ฝ”๋“œ๋Š” ํŽ˜์ด์ง€ ๋ผ์šฐํŒ…์„ ์œ„ํ•ด ์ด์šฉ + > : ์ด์šฉ์ž๊ฐ€ ์ „์†กํ•œ ์ฟ ํ‚ค์˜ username ์ž…๋ ฅ๊ฐ’์„ ๋ถˆ๋Ÿฌ์˜ค๋Š” ์ฝ”๋“œ + > : username ์ž…๋ ฅ๊ฐ’์ด ์กด์žฌํ•˜๋Š” ๊ฒฝ์šฐ ํ˜„ ์‚ฌ์šฉ์ž๊ฐ€ admin์ด๋ผ๋ฉด FLAG๋ฅผ, admin์ด ์•„๋‹ˆ๋ผ๋ฉด "you are not admin"์„ ์ถœ๋ ฅํ•œ.. 2022. 9. 17.