Reproducing the Acode v1.10.5 Cordova WebView Zero-Day - #2784
Open
carlospolop wants to merge 1 commit into
Open
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://hackmd.io/@sal/Reproducing-the-Acode-Zero-Day-Vulnerability Content Categories: Based on the analysis, this content was categorized under "Mobile Pentesting > Android Applications Pentesting > WebView Attacks, with cross-references from content:// protocol, Intent Injection, Exploiting Content Providers, and Cordova Apps". 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
The post reproduces an unassigned zero-day vulnerability in Acode v1.10.5, an open-source Android code editor built with Apache Cordova. The flaw is a stored/second-order XSS caused by inserting an attacker-controlled filename into a custom alert through
innerHTML. A malicious Android application can exploit it by serving a virtual file from its ownContentProvider, using an exported Acode activity to open that file, making the provi...🔧 Technical Details
Tracing untrusted metadata into a WebView HTML sink: Review custom dialog and rendering helpers for assignments to
innerHTML, then trace every caller to identify externally controlled values. A filename, URI label, document title, MIME metadata, or provider-supplied display name becomes executable when it is interpolated into a message and rendered as HTML without sanitization. A generic event-handler payload such as<img src=x onerror='PAYLOAD'>turns control over metadata into JavaScript execution.Second-order XSS through resource lifecycle changes: Applications may safely open and store attacker-controlled metadata at one point but render it through a dangerous UI path later. If an application shows the stored filename only when a resource is modified or deleted, first make it retain a malicious display name and then make the backing resource unavailable. Trigger the relevant refresh, resume, error, or ...
🤖 Agent Actions
Updated:
src/mobile-pentesting/android-app-pentesting/webview-attacks.mdAdded:
ContentProvidermetadata to WebView sinks.Validation completed:
git diff --checkpassed.This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.