Reading Contact Photos Without READ_CONTACTS A Google Messag...#2462
Open
carlospolop wants to merge 1 commit into
Open
Reading Contact Photos Without READ_CONTACTS A Google Messag...#2462carlospolop wants to merge 1 commit into
carlospolop wants to merge 1 commit into
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://blog.devploit.dev/posts/google-messages-avatarcontentprovider-contacts-bypass Content Categories: Based on the analysis, this content was categorized under "Mobile Pentesting > Android Applications Pentesting > content:// protocol / Exploiting Content Providers". 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
This blog post describes a fixed Google Messages for Android vulnerability in
AvatarContentProviderthat allowed an installed attacker-controlled app with no Contacts permissions to read protected Android Contacts photos. The issue is a classic confused deputy: Google Messages, which had access to Contacts in the tested environment, dereferenced an attacker-supplied Contacts photo URI using its own UID, rendered the protected image as PNG, and returned the resulting...🔧 Technical Details
Confused deputy via exported Android ContentProvider: If an exported provider accepts an attacker-controlled
content://URI and dereferences it with the provider app's own permissions, a lower-privileged app can cause a higher-privileged app to access protected data on its behalf. The generic exploitation pattern is to identify an exported provider with no caller permission, find a parameter that accepts a backend URI, supply a URI protected by another app's permission model, and read the provider's transformed response.Permission bypass through image rendering or transcoding: A provider does not need to return the original protected file byte-for-byte to leak data. If it loads protected content, decodes it as a bitmap, resizes it, renders it, caches it, or transcodes it into another image format, the transformed output is still a disclosure of the protected source. In this case, Google Messages returned
image/pngth...🤖 Agent Actions
Non-final status update:
src/mobile-pentesting/android-app-pentesting/drozer-tutorial/exploiting-content-providers.mdgit diff --checkis cleanI am still not providing the final report yet.
This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.