Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
pwnage24mtk — Cert exploit for MTK devices.There is a logic flaw in MTK cert verification process.Similar to CVE-2023-20696. | Kitploit
Tools/GitHubGitHub/wzy114514sb/pwnage24mtk
Embedded Systems SecurityVulnerability AnalysisExploitationReverse EngineeringMobile SecurityHardware SecurityFirmware AnalysisBinary Exploitation
GitHubwzy114514sb/pwnage24mtk

pwnage24mtk

Cert exploit for MTK devices.There is a logic flaw in MTK cert verification process.Similar to CVE-2023-20696.

View Repository
6511 month agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

pwnage24mtk

Cert exploit for MTK devices.There is a logic flaw in MTK cert verification process.Similar to CVE-2023-20696. May be patched at June

Disclaimer

This project is only used for researching. Make sure you get authorized before you use it. Not allowed for illegal use. It is not allowed to use this exploit to provide paid services.

For mtk devices,preloader verifies bl2_ext/lk/atf and then jumps to it.

These images is signed with ASN.1 certs.

But there is a logic flaw in the ASN.1 parsing process.

For old V5/V6 devices, cert content is identified by bypass_mode 1.

In this mode, any object will be stepped in.

So we can make a fake cert with 0x3(bit string) object.

The fake cert is unmodified. So it can pass the validation.

The real cert is under the fake cert.And We can put the image hash and image hdr hash at the beginning of the real cert.

For new V6 devices, cert content is identified by bypass_mode 0

In this mode, any object will be skipped except 0x30.

So we can put the image hash and image hdr hash at the beginning of the cert.

Then keep other things unmodified.

Then we can modify the image content.

So we gain EL3 control.

You need to patch BL2_EXT to remove the vefification of lk or atf.

And then patch LK to remove the verification of lk_main_dtb(otherwise it will crash)

And you need to patch LK to remove all bootloader locks including set_lock_state to avoid locking back or some crashes.

Usage:

python parse-part-img.py [the original image file] --split -o out

Then you can see separate images (such as lk,bl2_ext,lk_main_dtb,aee)

python parse_preloader.py [preloader image]

You can get lk/bl2_ext load address via this script

after patching For new v6 devices python sign_mtk_cert.py [single image file] -w For Old v6 devices/v5 devices python sign_mtk_cert.py [single image file] -w --legacy

Then insert the new signed image back

python build-part-img.py replace [original image file] --name [the single image name you want to insert back] -- file [the new signed single image]

Download Tool