Skip to content

Remote Code Execution Discovered in Xtool AnyScan App — Risk... #1145

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

carlospolop
Copy link
Collaborator

🤖 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

  • Plugin Retrieval: The app retrieves over 100 'plugins' on eac...

    🔧 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:

    1. 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

    2. 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

    • Content is technically accurate
    • Formatting follows HackTricks style guidelines
    • Links and references are working
    • Content adds educational value
    • No sensitive information is exposed

    This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.

@carlospolop
Copy link
Collaborator Author

🔗 Additional Context

Original Blog Post: https://www.nowsecure.com/blog/2025/07/16/remote-code-execution-discovered-in-xtool-anyscan-app-risks-to-phones-and-vehicles/

Content Categories: Based on the analysis, this content was categorized under "generic-hacking/mobile-application-exploitation".

Repository Maintenance:

  • MD Files Formatting: 854 files processed

Review Notes:

  • This content was automatically processed and may require human review for accuracy
  • Check that the placement within the repository structure is appropriate
  • Verify that all technical details are correct and up-to-date
  • All .md files have been checked for proper formatting (headers, includes, etc.)

Bot Version: HackTricks News Bot v1.0

@carlospolop
Copy link
Collaborator Author

merge

@carlospolop carlospolop merged commit db5ea53 into master Jul 19, 2025
@carlospolop carlospolop deleted the update_Remote_Code_Execution_Discovered_in_Xtool_AnyScan__20250717_124256 branch July 19, 2025 04:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant