はまやんはまやんはまやん

hamayanhamayan's blog

Security

DownUnderCTF 2023 Writeups

[web] proxed [web] static file server [web] xxd-server [misc] helpless [web] actually-proxed [web] grades_grades_grades [web] cgi fridays [web] proxed ソースコードが与えられるので、まずはソースコードを読んでみよう。 まず、Dockerfileを読む…

Intigriti (XSS) Challenge Writeupまとめ

Monthly Challenges - Intigritiで開催されてる問題に対するWriteup記事をただまとめたもの。 過去のWriteup記事は復習したら書く。復習したら書くと思うが、復習のやる気がいつ起きるかは不明。 時間がたつとTwitterで記事を探すのが大変になるので、見つけ…

Security-JAWS DAYS CTF Writeups

[Hard] AWS Pentesting Journey [Hard] AWS Pentesting Journey まず、nginx.confを見ると以下の箇所でいつものパストラバーサルがある。 https://qiita.com/no1zy_sec/items/e541f1c838874ff400bb location /assets { alias /usr/share/static/; } これを利…

SekaiCTF 2023 Writeup

[Forensics] DEF CON Invitation [Forensics] Eval Me [Forensics] Infected [PPC] Purple Sheep And The Apple Rush [PPC] Wiki Game [Web] Scanner Service [Forensics] DEF CON Invitation eml形式のメールが与えられる。 若干危なそうな要素があるらしい…

CYBERGON CTF 2023 Writeups

[stegano] Warm Up 1 [stegano] Catch Me If You Can [IR] Basic系 [forensics] Device Info系 [forensics] Hide and Seek [forensics] Frozen Xip [forensics] 8cel [stegano] Warm Up 1 exiftoolの情報から得られるCreate Dateを答える。 $ exiftool IMG_6…

Bauhinia CTF 2023 Writeups

[web] Carpe Diem [web] Hansel and Gretel [web] Carpe Diem 以下のような自由にXSSできるサイトが与えられる。 <html> <head> <title>Carpe Diem</title> </head> <body onload="convert()" onhashchange="convert()"> <h1>Carpe Diem</h1> <textarea id="i" onchange="location.hash=btoa(i.value)" style="width:400;height:300"></textarea> …</body></html>

防衛省サイバーコンテスト2023 Writeups

[crypto] Simple Substitution Cipher [crypto] Substitution Cipher [crypto] Administrator Hash(NTLM hash) [crypto] Administrator Password [crypto] Hash Extension Attack [forensics] The Place of The First Secret Meeting [forensics] The Dele…

corCTF 2023 Writeups

[web] msfrognymize [web] force [web] msfrognymize おなじみのカエルの画像ジェネレータの問題。 app.pyの以下が怪しいポイント。 @app.route('/anonymized/<image_file>') def serve_image(image_file): file_path = os.path.join(UPLOAD_FOLDER, unquote(image_file)</image_file>…

TFC CTF 2023 Writeups

[web] MCTREE [web] BABY DUCKY NOTES [web] BABY DUCKY NOTES: REVENGE [web] DUCKY NOTES: PART 3 [web] DUCKY NOTES: ENDGAME [web] COOKIE STORE [forensics] DOWN BAD [forensics] LIST [web] MCTREE ポチポチやっていたら解けた。 adminでログインする…

OSEP 合格体験記 2023/07

ナレッジ共有です。 去年のOSCPの合格体験記はこっち OSCP 合格体験記 2022/05 - はまやんはまやんはまやん OSEPを受ける前に Windows関連の知識が結構要求される OSCPを終えていれば前提知識としては大丈夫 そうでない場合は、HackTheBoxやTryHackMeとかで…

ImaginaryCTF 2023 Writeups

[web] Idoriot [web] idoriot revenge [web] roks [web] blank [web] Login [web] amogus [forensics] web [forensics] blurry [web] Idoriot ログインページが与えられる。

Flatt Security mini CTF #2 Writeups

welcome complexity welcome schema.gqlからflag1が出力される定義が以下の部分。 type Dummy { flag1: String! } type Flag { flag1: String! } union FlagUnion = Dummy | Flag type PageInfo { endCursor: String hasNextPage: Boolean! hasPreviousPage:…

CrewCTF 2023 Writeups

[web] sequence_gallery [web] safe_proxy [web] sequence_gallery sequence = request.args.get('sequence', None) if sequence is None: return render_template('index.html') script_file = os.path.basename(sequence + '.dc') if ' ' in script_file o…

SECCON Beginners CTF 2023 Web Writeups

[web] Forbidden docker-compose.yml nginx app 脆弱性は? まとめ [web] aiwaf [web] double check 任意のJWT作成 フィルタリング機構の回避 Prototype Pollution [web] phisher2 HTML Injectionできる [web] oooauth HTML Injection redirect_urlの検証不…

WaniCTF 2023 Writeups

[web] IndexedDB [web] Extract Service 1 [web] 64bps [web] Extract Service 2 [web] screenshot [web] certified1 [web] Lambda [web] certified2 [forensics] Just_mp4 [forensics] whats_happening [forensics] lowkey_messedup [forensics] beg_for_a_…

Space Heroes CTF (2023) Writeups

[Forensics] A New Hope [Forensics] Brainiac [Forensics] Félicette [Forensics] Time Leap [web] attack-strategies [web] Bank-of-Knowhere [web] Sanity Check In Space [web] The DEW [Forensics] A New Hope pptxファイルが与えられる。 拡張子をzip…

CPCTF 2023 Writeups

[Newbie] [Misc] 2DCode 1 [Newbie] [ppc] Count Coins [Newbie] [Crypto] Entrance to the Crypto World [Newbie] [ppc] Transfer [Newbie] [Web] easylogin [Newbie] [Forensics] investigation [Newbie] [Shell] netcat [Easy] [Misc] 1dayattack [Easy] …

Ricerca CTF 2023 Writeups

[crypto] Revolving Letters [forensics] My name is Power! [pwn] BOFSec [rev] crackme [web] Cat Café [crypto] Revolving Letters 換字式暗号(言い方違うかも)が与えられる。 もともとのアルゴリズムを見ながら復元アルゴリズムを考えるが、キーに対し…

TexSAW 2023 (Texas Security Awareness Week 2023) Writeups

[Forensics] Ghost in the Clipboard [Forensics] Lazy Admin [Forensics] Not Obvious [Web] Console Scrabble [Web] Git er' done [Web] SwiftMaster [Web] The Path to Victory [Forensics] Ghost in the Clipboard AppDataフォルダからフラグを抜き取る…

Cyberconférence CTF (24h@CTF '23) Writeups

[Desjardins] Blue's Clues 1/8: Gitlab Server [Desjardins] Blue's Clues 2/8: Source User [Desjardins] Blue's Clues 3/8: Source IP [Desjardins] Blue's Clues 4/8: Source Machine [Desjardins] Blue's Clues 5/8: Initial Access [Desjardins] Blue'…

PlaidCTF 2023 Writeup

[web] Davy Jones' Putlocker [web] Davy Jones' Putlocker URLを報告する部分があるのでXSSとかCSRFを引き起こす必要がありそう。 ログインした後に指定ページを開いてくれる。 フラグは/graphqlのmutationでflagを呼び出せばいい。 管理者権限の認証情報が…

Bucket CTF 2023 Writeups

[web] Auth [web] gif [web] SQLi-1 [web] SQLi-2 [web] SQLi-3 [web] Auth ページにアクセスするとbasic認証っぽい感じで認証を求められる。 認証に失敗すると Wrong username or password; register using /register and the username and password params…

DamCTF 2023 Writeups

[web] tcl-tac-toe [web] url-stored-notes [web] tcl-tac-toe ソースコードあり。 三目並べができるサイトが与えられる。 勝つとフラグが与えられるようだ。 以下2点の性質を活用することで、Xの勝利状態を引っ張り出す。 勝負が決まった後でも状態が初期化…

RITSEC CTF 2023 Writeups

[Forensics] Web of Lies [web] Broken Bot [web] Echoes [web] Pickle Store [web] X-Men Lore [Forensics] Web of Lies pcapngファイルが与えられる。 WireSharkで眺めてみると、フラグを取得するHTTPリクエストがたくさん確認できる。 しかし、どれも取得…

VishwaCTF 2023 Writeups

[Forensics] 1nj3ct0r [Forensics] The Sender Conundrum [web] aLive [web] Eeezzy [web] Payload [Forensics] 1nj3ct0r USBの通信をキャプチャしたpcapngファイルが与えられる。 No.107のパケットがDESCRIPTOR Response HID Reportであり、 ここから7.16.X…

Boot2Rootまとめ [HackTheBox,TryHackMe,入門]

はじめに Boot2Root ゴールについて 初学者に向けて プラットフォームについて 具体的な流れについて より体系的/発展的な話 より強くなるには 『探索』について 悪用される『脆弱点』について 横展開、もしくは、権限昇格をいかに行うか 『辞書』について …

picoCTF 2023 Writeups [Web / Forensics]

[web] findme [web] MatchTheRegex [web] SOAP [web] More SQLi [web] Java Code Analysis!?! [Forensics] hideme [Forensics] PcapPoisoning [Forensics] who is it [Forensics] FindAndOpen [Forensics] MSB [web] findme Burp Suiteを開いて、ユーザー名t…

UMass CTF 2023 Writeups

[web] DeepFried [web] umassdining2 [web] DeepFried ソースコードが与えられる。 パット見てどこにフラグがあるかわからないが、巡回すれば/restricted_memes/TheFlag.jpgだけ 画像が違うのでこれを抜き出すことを考えてみる。 router.all('/restricted_me…

Cyber Apocalypse 2023 - The Cursed Mission Writeups [Web, Forensics]

[web] Trapped Source [web] Gunhead [web] Drobots [web] Passman [web] Orbital [web] Didactic Octo Paddles [web] SpyBug [web] TrapTrack SSRFからのredisに任意データ差し込み Unsafe DeserializationからのRCE payload作成と攻略へ [Forensics] Plain…

vikeCTF{2023} Writeups

[Cloud] Docker Dad Jokes: Find the Punchline [Cloud] Eternal Cloud Conquest [Cloud] Super Silly Security [misc] Smoke on the Horizon [Cloud] Docker Dad Jokes: Find the Punchline dockerのダンプファイルが与えられる。 28d….jsonを見てみると { …