In onCreate of PaymentDefaultDialog.java, there is a possible way to change a default payment app without user consent due to tapjack overlay. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is needed for exploitation.
{
"vanir_signatures": [
{
"digest": {
"length": 404.0,
"function_hash": "104485141637095859179282170470878313838"
},
"id": "PUB-A-180104327-f01603a0",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"source": "https://android.googlesource.com/platform/packages/apps/Settings/+/b2c03474c459a694e2f434160a6c3da17f5b1a4f",
"target": {
"function": "onCreate",
"file": "src/com/android/settings/nfc/PaymentDefaultDialog.java"
}
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"81542683022710382001647597058075622701",
"194994758474799553814890042146196583243",
"339244979075647213363104715871245383497",
"102277680394259784822421726305699026436",
"267444333987596431965299598945611135494",
"42632513904164290136329403539816671648",
"12467150003188855140878124554568115988"
]
},
"id": "PUB-A-180104327-f5c18cd5",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"source": "https://android.googlesource.com/platform/packages/apps/Settings/+/b2c03474c459a694e2f434160a6c3da17f5b1a4f",
"target": {
"file": "src/com/android/settings/nfc/PaymentDefaultDialog.java"
}
}
],
"fixes": [
"https://android.googlesource.com/platform/packages/apps/Settings/+/b2c03474c459a694e2f434160a6c3da17f5b1a4f"
],
"types": [
"EoP"
],
"spl": "2021-12-01",
"severity": "Moderate"
}