WeChall - Burning Fox

Challenge

Burning Fox (Cracking) — score 4.

Our security agency got delivered a copy of a portable firefox installation. Your job is to crack the master password so the authorities can investigate more websites and private content generated by this person.

You can download the portable version from this folder, filename "burningfox.zip".

提供一个 Firefox Portable 打包文件,需要破解其 Master Password 以获取浏览器中保存的敏感信息。

solution

这是一个 Firefox 密码破解 + 浏览器数据分析的两阶段挑战:

  1. 破解 Master Password:从 key3.db 提取 hash,用 John the Ripper 或 FireMaster 破解
  2. 分析浏览器数据:用破解的密码解锁 Firefox,在保存的密码/历史/书签中找到挑战答案

步骤一:破解 Master Password

下载 burningfox.zip,解压后定位到 Firefox 配置文件目录 FirefoxPortable/Data/profile/

使用 John the Ripper 的 mozilla2john 工具从 key3.db 提取 hash:

1
2
mozilla2john FirefoxPortable/Data/profile/key3.db > mozhash.txt
john --format=mozilla --wordlist=rockyou.txt mozhash.txt

Master Password 很快就能被 rockyou 字典破解出来:wonderful

验证方法:

1
john --format=mozilla --show mozhash.txt

拿到 Master Password 后,有两种路径找到答案:

方案 A:启动 Firefox Portable(需要 X11/Wine 环境),用 Master Password 解锁,浏览浏览器中保存的密码和历史记录。

方案 B:直接用 SQLite 查看 signons.sqlite(密码数据库),配合 Mozilla 密码转储工具解密保存的凭据。

答案不是 Master Password 本身,而是浏览器中保存的一条特殊密码/书签。

ThinKingOutSideTheBox