Skip to content

Commit 50589ac

Browse files
mzfrmzfr
authored andcommitted
Fix for issue #25
With time I'll add more components to this map
1 parent 1f7c8c5 commit 50589ac

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

main.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ var (
2222
banner bool
2323
)
2424

25+
// NotVulnerable exported
26+
var NotVulnerable = map[string]bool{
27+
"net.openid.appauth.RedirectUriReceiverActivity": true,
28+
}
29+
2530
func init() {
2631
flag.Usage = func() {
2732
h := []string{
@@ -116,6 +121,12 @@ func getIntents(intentFilters []*etree.Element) {
116121
func 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

0 commit comments

Comments
 (0)