- Python 78.1%
- Shell 21.9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| aboot_original.mbn | ||
| aboot_saturn_original.mbn | ||
| aboot_saturn_unlock.mbn | ||
| aboot_unlock.mbn | ||
| README.md | ||
| resign_aboot.py | ||
| siglen_check.sh | ||
qualcomm_sbl1_siglen_bug
PoC of oscardagrach's Qualcomm PKCS#1 signature-length bug, used to re-sign modified aboot images (mostly Amazon devices).
SBL1 ships the old, broken verifier, so a short e=3 cube-root forgery is enough to swap aboot for a modified copy.
Supported devices
| Codename | Device | Build |
|---|---|---|
| kodiak | Amazon Fire Phone | 35.4.6.6_user_466001420 |
| saturn | Amazon Fire HDX 8.9 (2014) | 22.6.0.5_user_605490320 |
Usage
python3 resign_aboot.py <patched_aboot.mbn> <out.mbn>
Checking an image
siglen_check.sh prints VULNERABLE if the signing cert uses e=3.
./siglen_check.sh <image.mbn>
Images
*_unlock.mbn force the device to report unlocked, so it skips image verification and lets fastboot flash/boot unsigned images. *_original.mbn are the untouched stock images, kept for reference.
| File | SHA256 |
|---|---|
| aboot_original.mbn | f4b4856c8dd2f3dc717a689149cdc2d017caad57f79ee06d649061e97f30ae4e |
| aboot_unlock.mbn | 1eac9f0009550d9c788b16813429bc33c20d7174db1a266afce85bd0d4c14fc8 |
| aboot_saturn_original.mbn | 33f027d3ddd204642ec9e1ac1d07929a39e12e1d300ef57ba225271cdd61fb96 |
| aboot_saturn_unlock.mbn | 8ba7c027eee288d8a686dc939033ef55db842ff3647aea6f1f2897d86501a5ba |
Notes
The original repo claims the bug also affects PBL, but I couldn't get that to work and didn't want to risk an unmodified SBL1.
Use at your own risk, I take no responsibility for what happens to your device.