HackThisSite - Steganography Mission 7

Challenge

Steganography

关卡页给的是一句 Download the image Here,下载下来是一个 zip/missions/stego/lvl/stego7.zip), 里面还有一层图片;密码就藏在图片这一层。

Solution

1
2
3
$ curl -sL -b "$HTS_COOKIE" -o stego7.zip \
'https://www.hackthissite.org/missions/stego/lvl/stego7.zip'
$ 7z l stego7.zip

zip 本身没有加密,解开后是图片;这一层的意义是多套一层壳, 让直接对下载文件做 steg 分析的人先在错误的对象上浪费时间。

同系列(steg-3/8/12/13)在解出图片后,用的都是同一族手法:

1
2
3
4
5
1) pngcheck -v / file        看真实格式与块结构
2) binwalk 看有没有"附加段/内嵌文件"
3) zsteg -a 扫所有通道与位平面
4) 通道值统计 找"少数异值像素",其值本身就是 ASCII
5) 字节级 NOT/XOR 后看魔数 是不是又一层 zip/rar
1
2
3
POST https://www.hackthissite.org/missions/stego/template.php
formkey=<从关卡页现抓> lvl=7 pass=<答案>
必须带 Referer: https://www.hackthissite.org/missions/playit/stego/7/

完成判据:关卡页出现 You have already done this mission.,profile 的 Stego: 行出现 (7)

Vulnerabilities

把载荷填入压缩包再写入图片,只是抬高人工成本:任何自动化流程只要把下载物当字节而不是当图片处理, 分层就会被逐层剥开。真正的机密性必须来自加密,而不是来自封装层数。

该关已 live 通关(profile 徽章为准);密码取自 zip 内图片的隐写层