File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 2222 banner bool
2323)
2424
25+ // NotVulnerable exported
26+ var NotVulnerable = map [string ]bool {
27+ "net.openid.appauth.RedirectUriReceiverActivity" : true ,
28+ }
29+
2530func init () {
2631 flag .Usage = func () {
2732 h := []string {
@@ -116,6 +121,12 @@ func getIntents(intentFilters []*etree.Element) {
116121func exported (component * etree.Element ) {
117122 exported := component .SelectAttrValue ("android:exported" , "none" )
118123 activityName := component .SelectAttrValue ("android:name" , "name not defined" )
124+ // If the activity is present in unhackable
125+ // kind of list then no point in reporting it
126+ // see issue #25 on github.com/mzfr/slicer
127+ if NotVulnerable [activityName ] {
128+ return
129+ }
119130 permission := component .SelectAttrValue ("android:permission" , "null" )
120131 acitvityCode := strings .ReplaceAll (activityName , "." , "/" )
121132
You can’t perform that action at this time.
0 commit comments