MEXC Android RCE via Backslash URL Validation Bypass, Unprot... - #2896
Open
carlospolop wants to merge 1 commit into
Open
carlospolop wants to merge 1 commit into
carlospolop wants to merge 1 commit into
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://itis911.github.io/writeups/RCE-Mexc-Andriod-App.html Content Categories: Based on the analysis, this content was categorized under "Mobile Pentesting > Android Applications Pentesting > Webview Attacks; consider a dedicated subsection for WebView bridge abuse, deep-link URL parser differentials, Android arbitrary file writes, and native-library cache poisoning". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Overview and impact. The post documents a high-impact, app-level native remote-code-execution chain in the MEXC Android application, package
com.mexcpro.client. The chain combines a backslash-based URL whitelist bypass, an unprotected WebView JavaScript bridge, filename path traversal, and poisoning of the DXRisk anti-fraud SDK native-library cache. The attacker does not need root, application debugging, or prior local access; the victim only needs to open a craf...🔧 Technical Details
Custom signed-API request replication. When an API relies on a client-side signature, reproduce the exact nonce, token handling, body serialization, and hash sequence. In this case, calculate
nonce = current_timestamp_ms + server_offset, use the session cookie value or an empty token, computeinner = md5(token + nonce)[7:], serialize the body as sorted-keyapplication/x-www-form-urlencoded, and calculatesign = md5(nonce + content + inner). Matching the client implementation can make otherwise rejected requests appear valid to an endpoint whose signature is the primary control.Backslash URL-parser differential. A whitelist can be bypassed when the server and browser parse backslashes differently. A payload such as
https://attacker.example\@trusted.examplemay be interpreted by a server as usingtrusted.exampleas the host because the backslash remains in the us...🤖 Agent Actions
Plan:
Repository review is complete: the best fit is the existing
webview-attacks.mdpage. The URL backslash primitive is already documented elsewhere, so I’ll avoid duplicating it and add only the new cross-layer bridge-to-cache-poisoning technique in this page.I’ll now add the concise exploitation/audit subsection and append four numbered references, preserving the page’s existing structure and reference numbering.
Updated
src/mobile-pentesting/android-app-pentesting/webview-attacks.md.Added:
code_cache..sostructure, alignment, and loader requirements.executeversusexecute_no_transdistinction.Validation:
git diff --checkpassed.mdbook buildwas unavailable becausemdbookis not installed.This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.