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/kasnria001/pwnage24mtk
Android SecurityEmbedded Systems SecurityVulnerability AnalysisExploitationMobile SecurityHardware SecurityFirmware AnalysisBinary Exploitation
GitHubkasnria001/pwnage24mtk

pwnage24mtk

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

View Repository
17928 days agoReviewed by Kitploit

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. Patched. CVE-2023-20696 CVE-2025-20730

There are some issues about architecture detect.Need to be fixed when I am free.Or anyone can make a pull request. This is a vibe-coded version,and i will rewrite them later.But now it is usable.

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 can patch BL2_EXT to remove the vefification of lk or atf or gz.

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)

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]

Example:

4c8558aaea5e8d939ba978d6b10be14d 17fe099c27560ec4b0dd0ab1540e1442 b56f0026951f2c58612b315b44423437 image
Download Tool