Skip to content

Commit dedba1f

Browse files
Address review comments - add barrierIn and fix a model for a PendingIntent sink
1 parent 0acb647 commit dedba1f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

java/ql/lib/ext/android.app.model.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ extensions:
4040
- ["android.app", "Notification$BigTextStyle", True, "bigText", "(CharSequence)", "", "Argument[0]", "notification", "manual"]
4141
- ["android.app", "Notification$BigTextStyle", True, "setBigContentTitle", "(CharSequence)", "", "Argument[0]", "notification", "manual"]
4242
- ["android.app", "Notification$BigTextStyle", True, "setSummaryText", "(CharSequence)", "", "Argument[0]", "notification", "manual"]
43-
- ["android.app", "Notification$Builder", True, "addAction", "(int,CharSequence,PendingIntent)", "", "Argument[1..2]", "notification", "manual"]
43+
- ["android.app", "Notification$Builder", True, "addAction", "(int,CharSequence,PendingIntent)", "", "Argument[1]", "notification", "manual"]
4444
- ["android.app", "Notification$Builder", True, "addExtras", "(Bundle)", "", "Argument[0]", "notification", "manual"]
4545
- ["android.app", "Notification$Builder", True, "setCategory", "(String)", "", "Argument[0]", "notification", "manual"]
4646
- ["android.app", "Notification$Builder", True, "setChannelId", "(String)", "", "Argument[0]", "notification", "manual"]

java/ql/lib/semmle/code/java/security/SensitiveUiQuery.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ private module NotificationTrackingConfig implements DataFlow::ConfigSig {
1414
predicate allowImplicitRead(DataFlow::Node node, DataFlow::ContentSet c) {
1515
isSink(node) and exists(c)
1616
}
17+
18+
predicate isBarrierIn(DataFlow::Node node) { isSource(node) }
1719
}
1820

1921
/** Taint tracking flow for sensitive data flowing to system notifications. */

0 commit comments

Comments
 (0)