Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,11 @@ private Map<String, Serializable> buildAppMap(ActivityInfo activityInfo, boolean
}

private boolean launchActivityFromAction(String action) {
return tryStartActivity(new Intent(action));
// Prevent Intent Action Injection by only allowing known actions
if (Settings.ACTION_SETTINGS.equals(action)) {
return tryStartActivity(new Intent(action));
}
return false;
}

private boolean launchApp(String packageName) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,11 @@ private Map<String, Serializable> buildAppMap(ActivityInfo activityInfo, boolean
}

private boolean launchActivityFromAction(String action) {
return tryStartActivity(new Intent(action));
// Prevent Intent Action Injection by only allowing known actions
if (Settings.ACTION_SETTINGS.equals(action)) {
return tryStartActivity(new Intent(action));
}
return false;
}

private boolean launchApp(String packageName) {
Expand Down