Skip to content
Adam Omar Saleh

TVX CTF 2026 placeholder badge (unofficial)TVX CTF 2026Forensics

The Browser Never Forgot

A Chrome History database from an employee suspected of downloading an internal report. One visit record was deleted, but the download metadata still remembers the browsing context.

Competition
TVX CTF 2026 placeholder badge (unofficial)TVX CTF 2026
Category
ForensicsMedium · estimated
Source status
Answers derived · platform unverified
Document
PDF edition5 min read

Brief

The challenge

Competition
TVX CTF 2026
Category
Digital Forensics (platform category: DFIR)
Difficulty
Medium — estimated, not an official rating
Points
320
Solves
19 on the challenge card when captured
Challenge author
Ahmed Alwedyan
Verification
Answers derived from evidence; platform acceptance not documented

Difficulty: Medium (estimated). TVX CTF 2026 did not publish difficulty ratings; the challenge cards show only points and solve counts. Requires knowing the Chrome History schema well enough to spot a deleted visit through dangling references, reading Chrome's download state enum, and converting WebKit timestamps. The card showed 320 points and 19 solves when captured.

01

Overview

An employee was suspected of accessing an internal report through a local web portal before downloading a document named Q4_Report.txt. [...] a page remains referenced in the browser database, while its corresponding visit record appears to be missing. Despite this, the download metadata retains information about the browsing context associated with that page.

  1. Identify the missing visit ID referenced by the surviving visit record for download.html.

  2. Determine the previous page recorded in the download's tab context.

  3. Verify whether Chrome recorded the download as completed or not.

  4. Convert the recorded download start time to UTC. format: YYYY-MM-DD_HH-mm-ss

Flag Format: TVX{Ans1,Ans2,Ans3,Ans4}

Challenge page
Challenge page
Challenge questions
Challenge questions

A Chrome History database from an employee suspected of downloading an internal report. One visit record was deleted, but the download metadata still remembers the browsing context.

Solution path in brief

Someone deleted the review.html visit (visit id = 2) from the Chrome History SQLite database. The download.html visit still points to it through from_visit = 2. The downloads row keeps tab_referrer_url = review.html, has state = 1 (COMPLETE), and its start_time WebKit timestamp converts to 2026-10-10 22:16:02 UTC.

02

Initial investigation

The first pass dumped every non-empty table with solve.py.

Recon

The archive contains Chrome's History SQLite database (schema version 70) and the downloaded Q4_Report.txt, which only holds placeholder text. I dumped every non-empty table with solve.py.

03

Tools used

  • Python 3 with sqlite3 (solve.py)

  • Chrome History schema knowledge (visits, downloads, annotations)

04

Step-by-step process

Step 1: URLs vs. visits: the missing visit

urls has three pages, but visits only has two rows:

urls.idurltitle
1/portal.htmlEmployee Portal
2/review.htmlDocument Review
3/download.htmlReport Download
visits.idurlfrom_visit
11 (portal)0
33 (download)2

sqlite_sequence says visits reached seq = 3, so visit 2 existed and was deleted. The surviving download.html visit still names it in from_visit. The deleted visit also left traces in content_annotations and context_annotations, which both still hold a row for visit_id = 2. In context_annotations, visit 3's parent_task_id equals visit 2's task_id (13436144157569386), which is the review.html visit time.

Answer 1: 2

Step 2: Download tab context

The single downloads row (id 10):

fieldvalue
target_pathC:\Users\user\Downloads\Q4_Report (1).txt
tab_urlhttp://127.0.0.1:8000/download.html
tab_referrer_urlhttp://127.0.0.1:8000/review.html
start_time13436144162088011
end_time13436144162454556
received_bytes / total_bytes89 / 89
state1
interrupt_reason0

downloads_url_chains shows that the file came from http://127.0.0.1:8000/Q4_Report.txt.

Answer 2: http://127.0.0.1:8000/review.html

Step 3: Download state

In Chrome's DownloadState enum, 0 is IN_PROGRESS, 1 is COMPLETE, 2 is CANCELLED, and 4 is INTERRUPTED. The row has state = 1 and interrupt_reason = 0, and all 89 of 89 bytes were received. The 89 bytes also match the size of the recovered Q4_Report.txt.

Answer 3: completed

Step 4: Start time to UTC

Chrome stores times as microseconds since 1601-01-01 UTC (WebKit time):

Text
13436144162088011 µs since 1601-01-01  →  2026-10-10 22:16:02.088011 UTC

Answer 4: 2026-10-10_22-16-02

Step 5: Timeline (UTC)

timeevent
22:15:52visit 1, portal.html (typed)
22:15:57visit 2, review.html (deleted)
22:16:00visit 3, download.html (from_visit = 2)
22:16:02.088download of Q4_Report.txt starts
22:16:02.454download completes (89 bytes)

05

Commands and code

Full source: solve.py: dump tables and decode timestamps

Python
import sqlite3, datetime​db = sqlite3.connect("Evidence/History")​def ts(v):    if not v:        return v    return (datetime.datetime(1601, 1, 1) + datetime.timedelta(microseconds=v)).strftime("%Y-%m-%d %H:%M:%S.%f")​tables = [r[0] for r in db.execute("select name from sqlite_master where type='table'")]print("TABLES:", tables)for t in tables:    rows = db.execute(f"select * from {t}").fetchall()    if not rows:        continue    cols = [c[1] for c in db.execute(f"pragma table_info({t})")]    print(f"\n=== {t} ({len(rows)}) ===")    print(cols)    for r in rows:        print(r)​print("\n=== decoded times ===")for r in db.execute("select id,url,last_visit_time from urls"):    print("url", r[0], r[1], ts(r[2]))for r in db.execute("select id,url,visit_time,from_visit,opener_visit from visits"):    print("visit", r, ts(r[2]))for r in db.execute("select id,start_time,end_time,state,danger_type,interrupt_reason,received_bytes,total_bytes,tab_url,tab_referrer_url,referrer from downloads"):    print("download", r, ts(r[1]), ts(r[2]))

06

Technical explanation

Deleting a row from visits does not update the rows that reference it. The surviving download.html visit still has from_visit = 2, sqlite_sequence shows visit IDs reached 3, and the annotation tables keep rows for visit 2. The downloads table stores its own copy of the tab URL and referrer, so it preserves the deleted page. Chrome timestamps are microseconds since 1601-01-01 UTC.

Key lessons

  • Deleting a visits row leaves dangling references behind: from_visit in other visits, sqlite_sequence, content_annotations, context_annotations, and the download's tab_url and tab_referrer_url.

  • The downloads table stores its own copy of the navigation context, so it outlives changes to the history.

  • Chrome timestamps are WebKit time: microseconds since 1601-01-01 UTC.

07

Flag

Flag

TVX{2,http://127.0.0.1:8000/review.html,completed,2026-10-10_22-16-02}

Answers derived · platform unverified

08

Verification status

Status: Answers derived from evidence; platform acceptance not documented.

All four answers are read directly from the SQLite database (dump in out.txt) and cross-checked: sqlite_sequence, the annotation tables and the download row all agree. Platform acceptance is not documented.

Source evidence in the archive: WRITEUP.md, solve.py, out.txt, Evidence/History, images/00_challenge_1.png, images/00_challenge_2.png.

09

Conclusion

A focused browser-forensics exercise: deletion in a relational store leaves references behind, and the downloads table is an independent record of navigation.

Prepared by Adam Omar Saleh from the archived solve notes in the_browser_never_forgot/. Commands, code, output and screenshots are reproduced from the source; no results were added. Difficulty is an estimate.

PDF edition

Writeup PDF

Formatted edition of this walkthrough, built from my source notes · 5 pages.