NullconCTF 2022
ยท
๐Ÿšฉ CTF/Former Doc
I didn't spend too much time in this CTF. So I wrote writeups about only few problems. โ— [ I love browsers ] In this main page, it shows "Hello [user's browser] user" sentence. The two ways that service knows user's website is using Javascript or using "User-agent" header. This service doesn't seem to run by javascript, so I tested by using "User-agent" header. I wrote Safari in it, this service..
ShellCTF 2022
ยท
๐Ÿšฉ CTF/Former Doc
90% guessy, 10% challenge. โ— [ Choosy ] I found the word "script" is fitered. I could infer this problem is about XSS exploit. payload Flag shellctf{50oom3_P4yL0aDS_aM0ng_Maaa4nnY} โ— [ Extractor ] The service is consists of "Register Page" & "Login Page". I try sql injection attack in Login Page. First, I didn't know what kind of sql this service use. So I tried to find sql version. Then..
TFCCTF 2022
ยท
๐Ÿšฉ CTF/Former Doc
I skipped write-up super easy problems. WEB โ— [ Are you Admin? ] I can't modify "isAdmin" section by fiddler, so I decided to use curl command to fix isAdmin = true. curl -i -H 'Content-Type: application/json' -d '{"username":"derp","isAdmin":true}' 'http://01.linux.challenges.ctf.thefewchosen.com:49395/api/auth' Flag : TFCCTF{S4n1t1z3_Y0ur_1nput5!} โ— [ DeepLinks ] Description tells "Find out hi..
Hayim CTF 2022
ยท
๐Ÿšฉ CTF
Cyberchef ๋ฌธ์ œ ํŽ˜์ด์ง€๋Š” ์œ„์™€ ๊ฐ™๋‹ค. const express = require('express'); const bodyParser = require('body-parser'); const { checkRateLimit, checkUrl, visitUrl } = require('./utils'); const app = express(); app.set('view engine', 'ejs'); app.use(bodyParser.urlencoded({ extended: false })); app.get('/', (req, res) => { res.render('index'); }); app.post('/report', (req, res) => { const url = req.bod..
Insomni'hack 2022
ยท
๐Ÿšฉ CTF
๋ฌธ์ œ ์ฐฝ์— ์•„๋ฌด๊ฒƒ๋„ ์—†๋‹ค. ์ต์Šคํ”Œ๋กœ์ž‡ ํ•  ์ˆ˜ ์žˆ๋Š” ์š”์†Œ๊ฐ€ ์—†์–ด robots.txt๋ถ€ํ„ฐ ํ™•์ธํ•ด๋ดค๋‹ค. ํ•ด๋‹น ์—”ํŠธ๋ฆฌ ํฌ์ธํŠธ๊ฐ€ ์กด์žฌํ•˜๋Š” ๊ฒƒ์„ ํ™•์ธํ–ˆ์ง€๋งŒ ์œ„์™€ ๊ฐ™์ด hostname์ด ํ—ˆ์šฉ๋˜์ง€ ์•Š๋Š” ๊ฒƒ์„ ํ™•์ธํ–ˆ๋‹ค. ํ„ฐ๋ฏธ๋„ ์ฐฝ์„ ์—ด์–ด curl์˜ H์˜ต์…˜์ธ ํ—ค๋”๋ฅผ ์ถ”๊ฐ€ํ•˜๋Š” ๋ฐฉ์‹์œผ๋กœ "Host : 127.0.0.1"์„ ์ถ”๊ฐ€ํ•ด๋ณด์ž. curl 'https://pimpmyvariant.insomnihack.ch/readme' -H 'Host: 127.0.0.1' ์Šคํ‘ธํ•‘์„ ํ•  ์ˆ˜ ์žˆ๋‹ค. ์ด ๋ฐฉ์‹์œผ๋กœ ์Šคํ‘ธํ•‘ ๊ฐ€๋Šฅํ•œ ํŽ˜์ด์ง€๋Š” "/readme" ์™€ "/new"์ด๋‹ค. >> curl 'https://pimpmyvariant.insomnihack.ch/readme' -H 'Host: 127.0.0.1' Re..