Lost / Found
Tucked into the quietest corner of the student union is a room nobody thinks about until they’ve lost something: the Lost / Found desk. The clerk here has one unbending rule - every item must be claimed by its rightful owner, and every owner must prove it.
What the clerk never considered is that not everything “misplaced” here was lost by accident.
Connections
- https://niagara-pictures-integrating-patents.trycloudflare.com
Recon
There is no source handout, so everything has to be learned from the running site.
We opened the site in a browser. The homepage is a campus property register: a headline reading “Find your lost item”, a search bar, a “Continue as guest” panel, and a grid of recently found items with a link to the full catalog.

Clicking “Continue as guest” creates a guest account on the spot and lands on our own member record at /profile?user_id=92. Two things stand out on that page. The record is addressed by a user_id query parameter rather than pulled from the session, and a “Change history” panel says “Some older deployment notes are stored in the system maintenance archive.”
The catalog holds nine items across four categories. Every item page ends with a claim box, “Send a few details so the support team can verify your claim”, with a textarea and a submit button. That is the one interactive workflow besides login, which fits the desk’s rule that every owner must prove it.
robots.txt is Cloudflare’s managed block plus one app-authored line at the bottom:
User-agent: *
Disallow: /internal/changelog
Opening /internal/changelog in the browser shows a “Maintenance notes” page with three dated entries, the middle one admitting a deployment slip:
2026-11-20: Added the public item tracker.
2026-11-18: Migrated the static deploy artifact; repository metadata was left under /.git/.
2026-11-12: Added guest account support.

The footer of every page reads “Internal maintenance page”, which agrees with the changelog framing. So the first pass left three leads, matching the description’s three hints: a claim workflow, a profile lookup driven by a query parameter, and a maintenance archive with a git directory left behind. One practical note for anyone reproducing this: the app answers rapid probing with a custom 429 page, so scripted walks were paced at about one request every four seconds.
Exploitation
Reading another member’s record
The user_id=92 in the profile URL was the first thing we tested, since it is attacker-controlled input in a place where the session already knows who we are. We typed 1 over the 92 in the address bar and reloaded. The app rendered the member record for site-admin with no ownership check of any kind:
<section class="panel">
<h2>Personal information</h2>
<p><strong>Name:</strong> site-admin</p>
<p class="note">
<strong>Note from the administration team:</strong> but_n0t_
</p>
</section>

The note but_n0t_ is clearly a flag fragment, and its trailing underscore is a joiner, so more text follows. To check whether any other account hides a second note, we walked the user IDs with a paced script that printed each profile’s name, note, and decoded email. A sample of that output:
user 31: guest-09514c47 [email protected]
*** user 34: name=yan_test6 note=None [email protected] claims=14
user 35: guest-1c1481bc [email protected]
All 279 user IDs came back, and only user_id=1 carries a note; every other record is a guest account or another player’s registration. The profile gives exactly one piece, but_n0t_.
Walking the exposed git history
The changelog entry says where to look next, /.git/. nginx serves that directory with autoindex, so opening /.git/ in a browser lists the usual repository files, including logs/, which records two commits, both by a deploy bot:
0000000000000000000000000000000000000000 cfac450a36ad535ab8a86f7bdaa7399be78368f0 Lost & Found Deploy Bot <[email protected]> 1795810616 +0000 commit (initial): Keep staging handoff note
cfac450a36ad535ab8a86f7bdaa7399be78368f0 c21bd899b9dc763c1e71c176ae76dc31dcb8fd8e Lost & Found Deploy Bot <[email protected]> 1795810616 +0000 commit: Remove temporary staging detail
A commit that “removes a temporary staging detail” makes the version before the removal worth reading. Git’s dumb HTTP protocol is enough here: every object lives at /.git/objects/<first 2 hex>/<remaining 38 hex> as a zlib-compressed file, and no pack files exist, only loose objects. We fetched each object with a plain HTTP GET, saved the bytes, and inflated them. The initial commit cfac450a points to a tree whose only entry is release-note.txt, blob d4b11214f7149843cb4f02c05df23c1ecbb2fed2. Inflating that blob gives the file the deploy bot tried to clean up:
$ python3 -c "import zlib; d=zlib.decompress(open('d4b11214f7149843cb4f02c05df23c1ecbb2fed2','rb').read()); print(d.partition(b'\x00')[0].decode()); print(d.partition(b'\x00')[2].decode(), end='')"
blob 43
Historical staging note: final_piece=qu1et
The blob header says the payload is 43 bytes, and that payload is the entire file, so nothing is hidden after the line. The current HEAD version of the same file (blob 2d31f7b6) reads “Release note: staging handoff completed.”, confirming the swap. The final_piece= label both hands us qu1et and tells us it goes last. We audited the rest of the repository, six loose objects in total (two commits, two trees, two blobs), empty refs/tags/ and objects/pack/, nothing else.
Two pieces and a rejected flag
At this point we held but_n0t_ and qu1et, and assembled the two-piece candidate NVR{but_n0t_qu1et}. The platform rejected it.
That left three possibilities: a piece was mistyped, a piece was missing, or the order was wrong. We went back to byte level. Re-fetching the admin profile and printing the raw bytes around the note gave 62 75 74 5f 6e 30 74 5f, exactly but_n0t_ with no hidden whitespace or HTML entities, and the git blob was a fixed 43-byte file, so both known pieces were exact. A piece was missing, and a fragment that opens with but is the tail of a phrase rather than its start, so the missing text had to go in front of but_n0t_. The same re-verification pass dumped the full bodies of the error pages we had skimmed and printed the response headers of the claim POST, which we had not captured before.
The claim response header
The claim form is where the description’s rule lives, so it was due a second look. In the browser, filling the details box and clicking the button just pops a toast, “Your claim was submitted successfully.”, and resets the form.

The header was invisible there. Our earlier checks had looked at response headers on GET requests only, and the claim response’s JSON body looked generic. The re-verification pass printed every response header on the claim POST:
r = s.post(f"{BASE}/item/1/claim", data={"note": "verify test"}, headers=hdr(), timeout=30)
print("CLAIM POST headers:", dict(r.headers), flush=True)
The full exchange looks like this:
POST /item/1/claim HTTP/1.1
Cookie: session=...
Content-Type: application/x-www-form-urlencoded
note=verify+test
HTTP/1.1 201 Created
Content-Type: application/json
x-found-ref: Z3Uzc3Rf
{"claim_id":439,"message":"Claim submitted for review.","ok":true}
x-found-ref reads as a “found reference”, straight from the desk’s theme. It appears only on claim responses, never on any GET, login, or registration endpoint, and the value stays the same across items and users. The value is base64:
$ printf 'Z3Uzc3Rf' | base64 -d
gu3st_
gu3st_ is the missing first piece. It fits the underscore joiner, and the changelog dates the guest account support to the same deployment era as the slip.
Assembling the three pieces
The fragments carry their own assembly instructions: gu3st_ and but_n0t_ end in underscores, and the git blob labels its fragment final_piece.
gu3st_ + but_n0t_ + qu1et
Wrapping that order in the challenge’s NVR{} format gives the flag, which the platform accepted on the second submission.
Flag capture
$ printf 'NVR{%s%s%s}\n' gu3st_ but_n0t_ qu1et
NVR{gu3st_but_n0t_qu1et}