· 3 min read · by Eav Puthcambo
An IDOR bug hidden inside a Roblox game
A CTF challenge built on top of Roblox hands you a toy "memory" API with a read-protected flag. The write function never checks what you're allowed to touch, so you just turn the protection off.
World's Hardestest Flag, BroncoCTF 2026 (sandbox escape)
This is Mr. Deh speaking. Your commands get executed on my special SecureDeh9001Server. There's a flag on my super awesome server, but you'll never get it.
It sounds like a "beat the obby" platformer, but the real task is static analysis plus a Lua sandbox bug. You get a local copy of the Roblox place file so you can read the server logic before touching the live server, which is the only place the real flag lives.
Getting the code out of the place file
Roblox's .rbxl is a binary container: a magic header, then a stream of named, individually zstd-compressed chunks. The PROP chunks store properties, and the ones named "Source" hold the Lua source of each script. A small Python parser walks the chunk stream, decompresses each one, and dumps every script:
$ python parse_rbxl.py mrdeh-hardestest.rbxl ./extracted
[*] parsed 1898 chunks
[*] extracted 3 script source(s)
Three scripts come out: a big client LocalScript (the UI and a word filter), a vendored Lua interpreter, and the server script that handles the flag. A quick grep across them points straight at the interesting part.
The server's toy memory model
The server gives you an in-game terminal: you submit Lua, it compiles it in a restricted environment (no game, no os, no io, no require) and runs it. The only way to reach anything is through two functions it hands you, over a tiny two-object store:
local Storage = {
[0x6767] = { TypeTag = 0, Value = FLAG }, -- Mr Deh's: read-protected
[0x4141] = { TypeTag = 4, Value = "You!" } -- yours: readable
}
local function write(address, new_data)
if Storage[address] then
for key, val in pairs(new_data) do
Storage[address][key] = val -- no field allowlist, no ownership check
end
end
end
local function read(address)
local tvalue = Storage[address]
if tvalue.TypeTag == 0 then return "[ACCESS DENIED]" end -- the only gate on the flag
return tvalue.Value
end
The flag is "protected" by exactly one thing: read() refuses to return a value when its TypeTag is 0.
The bug
write() merges every key you give it into the object, with no check on which address you own or which field you're setting. And the flag object already exists at 0x6767. So I just overwrite its TypeTag:
write(0x6767, { TypeTag = 1 })
Now its TypeTag is no longer 0, the gate in read() doesn't match, and the very next read returns the real flag. The permission check lived on mutable data that the attacker is allowed to write. That's an access-control bug dressed up as a memory API.
One more obstacle: the word filter
The client UI blocks a list of banned words before your code is sent, including typetag, as a plain lowercase substring match. My payload needs the field name TypeTag, so I just build that string at runtime instead of typing it:
local k = string.char(84, 121, 112, 101, 84, 97, 103) -- "TypeTag"
write(0x6767, { [k] = 1 })
print(read(0x6767))
The banned substring never appears in what I submit. Paste it into the live terminal and:
SERVER: bronco{d34th_t0_th3_dehs_f0r3v3r}
A client-side filter you can bypass, a bytecode check that never applies, and a sandbox you don't need to escape, because the bug was in the API the sandbox deliberately exposed.
📂 Full writeup, the .rbxl parser and the payload: ctf-writeups/pwn/…/worlds hardestest flag
Read more 
Making a syscall when syscalls are banned
A RISC-V golf challenge bans the one instruction that can make a syscall. The way through is to borrow one the kernel already mapped into the process for you.
One off-by-one against the Heap Devil
A notes program with every modern protection on, where a single "greater-than" that should be "greater-than-or-equal" opens the door to a use-after-free, and from there to a shell.
A Python program hidden inside itself, many times over
An obfuscated Python challenge decrypts a layer, runs it, and repeats, with anti-debug that silently corrupts the key if it sees you. The weak spot is the one library it forgot to protect.