Android Intent Redirection Vulnerability
See original GitHub issueSummary
Version | 7.3.1 |
Affected OS | android |
Current behavior
When we added react-native-device-info
and used some functions like getVersion()
, after releasing a version on google play, we received an email (from google play console) that says about Intent Redirection Vulnerability . You can find more info about the issue at this link
Expected behavior
Clearing error and warning alert on google play console
Suggestion resolve
According to the above Google Help link, ensuring that the extracted Intent is from a trustworthy source can resolve the problem.
// check if the originating Activity is from trusted package
if (getCallingActivity().getPackageName().equals(“known”)) {
Intent intent = getIntent();
// extract the nested Intent
Intent forward = (Intent) intent.getParcelableExtra(“key”);
// redirect the nested Intent
startActivity(forward);
}
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:15 (1 by maintainers)
Top Results From Across the Web
Remediation for Intent Redirection Vulnerability - Google Help
One or more of your apps contain an Intent Redirection issue which can allow malicious apps to access private app components or files....
Read more >Mitigating and remediating intent-based Android security ...
In some cases, an attacker wants to set flags on the redirected intent and route it back to their own app to gain...
Read more >Intent redirection vulnerabilities in popular ... - PortSwigger
UPDATED Android app developers have been urged not to load code dynamically because of the heightened risk of code execution vulnerabilities.
Read more >Your app contains an Intent Redirection vulnerability
"One or more of your apps contains an Intent Redirection vulnerability that puts user data at risk. On August 13, 2019, any apps...
Read more >Android Intent redirection — CodeQL query help documentation
An exported Android component that obtains a user-provided Intent and uses it to launch another component can be exploited to obtain access to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m having the same issue.
using this command in my node-modules directory:
grep -rwl 'android:exported="true"' ./
I have 2 potential culprits, either this package or react-native-firebase/messagingBut we did just upgrade from 5.6.5 to 7.2.1, so I’m guessing that this library is the issue. I’ll downgrade and report back if that fixes it.
Yeah, reverting we still had issues… I think what happened is someone deleted our yarn.lock and some dependency got updated to a version that broke, but I have no idea what dependency so we are reverting out yarn.lock to one from several months ago
Thanks for everyone who looked into this. @mikehardy I see you everywhere, thanks for all the work you do for the open source community