Update java/ql/src/Security/CWE/CWE-927/ImplicitPendingIntents.qhelp

Co-authored-by: Felicity Chapman <felicitymay@github.com>
This commit is contained in:
Tony Torralba
2022-01-21 11:57:11 +01:00
committed by GitHub
parent 3f6e035016
commit c7e1df5689

View File

@@ -27,7 +27,7 @@
<recommendation>
<p>Avoid creating implicit <code>PendingIntent</code>s. This means that the underlying <code>Intent</code> should always have an
explicit destination component.</p>
<p>Also, when adding the <code>PendingIntent</code> as an extra of another <code>Intent</code>, make sure that said <code>Intent</code> also has
<p>When you add the <code>PendingIntent</code> as an extra of another <code>Intent</code>, make sure that this second <code>Intent</code> also has
an explicit destination component, so that it is not delivered to untrusted applications.</p>
<p>Create the <code>PendingIntent</code> using the flag <code>FLAG_IMMUTABLE</code> whenever possible,
to prevent the destination component from modifying empty fields of the underlying <code>Intent</code>.</p>