Skip to main content

Cross-Site ETag Length Leak

· 14 min read

I recently discovered a new client-side attack technique that leaks the length of an ETag from a cross-site page. This can be used as an XS-Leak oracle and I created a CTF challenge as a proof of concept.

impossible-leak is one of the challenges I authored for SECCON CTF 14 Quals1:

This technique is likely applicable beyond this specific challenge. We can use it as an unintended solution in other XS-Leak challenges. In fact, I first came up with it as an unintended approach during an earlier CTF and later refined it into a standalone technique.

Footnotes

  1. The full list of my SECCON CTF 14 Quals challenges is available here.

  2. Here is parrot's solution for this challenge. It is unintended, but incredibly clever!

Forcing Quirks Mode with PHP Warnings + CSS Exfiltration without Network Requests

· 9 min read

I made a web challenge pure-leak for ASIS CTF Quals 2025 as a guest author.

Congrats to MEOW MEOW MEOW MEOW MEOW and Water Paddler for solving it! 🎉

Despite its simplicity, the solution relies on several neat HTML/CSS tricks. Below I'll outline the key ideas and how they fit together.

AlpacaHack Round 7 (Web) - 作問者writeup

· 8 min read

AlpacaHackは個人戦のCTFを継続して開催する新しいCTFプラットフォームです。今回はst98さんと一緒にWeb回であるRound 7の作問を、担当しました。ご参加いただいた方々、ありがとうございました。

AlpacaHackにはwriteupを投稿する機能があるので、ぜひwriteupを書いて投稿してみてください。upsolveもOKです。AlpacaHackは常設CTFでもあるので、終わったCTFも実際にリモート環境でテストすることが可能です!

さて、今回は以下の問題をつくりました。本記事はそのwriteupになります。

ChallengeCategoryKeywordsSolved
Treasure HuntwebURL encoding71
minimal-wafwebXSS4
disconnectionwebbrowser behavior5
disconnection-revengewebbrowser behavior1

AlpacaHack Round 2 (Web) - 作問者writeup

· 21 min read

AlpacaHackは個人戦のCTFを継続して開催する新しいCTFプラットフォームです。keymoonminaminaoが中心メンバーとなって動いており、最近リリースされました🎉

今回はWeb回であるRound 2の作問を担当しました。ご参加いただいた方々、ありがとうございました。参加登録した人数を数えると300!?ありがたすぎる...1

AlpacaHackにはwriteupを投稿する機能があるので、ぜひwriteupを書いて投稿してみてください。upsolveもOKです2。また、今後の作問・運営のためにもGoogleフォームでのfeedbackをいただけると非常に助かります。単純にモチベーションにもつながります。SNS上での感想も大歓迎です。

さて、今回は以下の問題をつくりました。本記事はそのwriteupになります。

ChallengeCategoryKeywords (spoiler)Solved
Simple LoginwebSQL injection84
Pico Note 1webCSP bypass, JavaScript10
CaaSwebRCE, Perl13
Pico Note 2webImport Maps3

Footnotes

  1. 加えて、あまり広くリーチできていなかったというのと、タイムゾーンの問題があったにもかかわらず、海外の強い方にも多く参加してもらえてびっくり&感謝です。CTFTimeに登録したのも一定以上の効果があったりする?

  2. AlpacaHackは常設CTFでもあるので、終わったCTFも実際にリモート環境でテストすることが可能です!

SECCON CTF 2023 Finals: Author Writeups

· 17 min read

I wrote 4 web challenges and 1 misc challenge for SECCON CTF 2023 Finals. I hope you enjoyed the CTF and want to read your feedback and writeups.

My challenges:

ChallengeCategoryIntended
Difficulty
Solved / 12
(Internatinal)
Solved / 12
(Domestic)
Keywords
babywafwebwarmup84WAF bypass
cgi-2023webmedium52XS-Leak, SRI
LemonMDwebmedium21Islands Architecture
DOMLeakifywebhard10CSSi on style attributes
whitespace.jsmisceasy22JavaScript sandbox

I added the source code and author's solvers to my-ctf-challenges repository.

SECCON CTF 2023 Quals: Author Writeups

· 21 min read

Thank you for playing SECCON CTF 2023 Quals! I created some challenges for this CTF, just like 2021 and 2022. I hope you had fun and I'm looking forward to reading your writeups.

My challenges:

ChallengeCategoryIntended
Difficulty
KeywordsSolved / 653
blinkwebeasyDOM clobbering14
eeeeejswebmediumejs, XSS puzzle12
hidden-notewebhardXS-Leak, unstable sort1
craboxsandboxwarmupRust sandbox53
node-ppjailsandboxmediumprototype pollution5
deno-ppjailsandboxhardprototype pollution2

I added the source code and author's solvers to my-ctf-challenges repository.

zer0pts CTF 2023 writeup (4 web challs)

· 22 min read

zer0pts CTF 2023 に./Vespiaryで参加して8位でした!

guess要素が一切なく、各問題もよく構成されたものが多く、例年通りとてもたのしいCTFでした。

CTF作問感想 - 2022

· 22 min read

2022年につくった各問題の作問感想や背景の話です[^top-1]。writeupではありません。 非常に遅くなってしまったし、そもそも需要はあるのだろうか...🤔

2022年は全部で14問つくりました(web:11, misc:3)[^top-2]:

  • SECCON CTF 2022 Quals:
    • [web] skipinx
    • [web] easylfi
    • [web] bffcalc
    • [web] piyosay
    • [web] denobox
    • [web] spanote
    • [misc] latexipy
    • [misc] txtchecker
    • [misc] noiseccon
  • SECCON CTF 2022 Finals:
    • [web] babybox
    • [web] easylfi2
    • [web] MaaS
    • [web] light-note
    • [web] dark-note