Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions docs/source/quark_script.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2330,15 +2330,24 @@ We use the `InsecureBankv2.apk <https://github.com/dineshshetty/Android-Insecure

.. image:: https://imgur.com/V7VtL3x.jpg

Quark Script CWE-925.py
========================

CWE-925 Detection Process Using Quark Script API
=================================================

.. image:: https://i.postimg.cc/Ls0Kw749/2025-09-17-4-19-22.png

First, we use API ``getReceivers(samplePath)`` and ``receiverInstance.isExported()`` to find all the exported receivers defined in the APK.

Second, we use API ``checkMethodCalls(samplePath, targetMethod, checkMethods)`` to check if the ``onReceive`` method of every exported receiver obtains intent action.
Second, we use API ``checkMethodCalls(samplePath, targetMethod, checkMethods)`` to check if the ``onReceive`` method of every exported receiver obtains an intent action.

If **No**, it could imply that the APK does not verify intent properly, potentially leading to a CWE-925 vulnerability.


Quark Script CWE-925.py
========================

.. image:: https://i.postimg.cc/dQhts2gN/2025-09-17-4-17-51.png

.. code-block:: python

from quark.script import checkMethodCalls, getReceivers
Expand Down
Loading