Remote Code Execution Discovered in Xtool AnyScan App — Risk... #1145
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
Critical Vulnerabilities in Xtool AnyScan Android App
NowSecure researchers identified critical flaws in the Xtool AnyScan Android app (versions 4.40.11–4.40.40) in its custom in-app update mechanism, enabling a man-in-the-middle (MITM) attacker to achieve persistent remote code execution (RCE) on the device and connected vehicles via OBD-II commands.
Custom In-App Update Mechanism
🔧 Technical Details
TLS Certificate Validation Bypass: The app replaces Android’s default TrustManager in
com.xtool.diagnostic.fwcom.net.OKHttpDownload.buildTrustManagers()
with an empty implementation, accepting all TLS certificates and allowing MITM interception and modification of update metadata.Hardcoded Insecure DES Encryption: Update metadata is encrypted using DES-ECB with a hardcoded 56-bit key and IV retrieved from
com.xtool.dcloud.RemoteServi...
🤖 Agent Actions
Added comprehensive coverage of exploiting insecure in-app update mechanisms on Android:
Created new page
src/mobile-pentesting/android-app-pentesting/insecure-in-app-update-rce.md
• Explains TrustManager bypass, weak DES encryption, malicious plugin crafting, mitmproxy delivery & persistence
• Includes practical code snippets (Java, Python, C, iptables, mitmproxy)
• General detection / mitigation guidance
• Reference section with the NowSecure research link
Updated Android App Pentesting README to link the new technique under “Other interesting tricks”.
These additions extend HackTricks’ mobile-exploitation content with a real-world RCE chain applicable to any Android app that downloads executable code insecurely.
✅ Review Checklist
This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.