Skip to content
Merged
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 @@ -2914,15 +2914,24 @@ Code of CWE-601 in ovaa.apk

We use the `ovaa.apk <https://github.com/oversecured/ovaa>`_ sample to explain the vulnerability code of CWE-601.

.. image:: https://imgur.com/I61pL2m.png
.. image:: https://i.postimg.cc/hjqKnKLN/2025-10-08-1-12-43.png

Quark Script: CWE-601.py
========================

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

.. image:: https://i.postimg.cc/q75yxptk/2025-10-09-9-14-34.png

Let’s use the above APIs to show how the Quark script finds this vulnerability.

To detect the vulnerability, we use the API ``findMethodInAPK(samplePath, targetMethod)`` to find all the caller methods of ``startActivity``. Next, we examine the arguments of each method to discover the methods receiving external input. If a method receives external input but lacks proper input validation, the CWE-601 vulnerability is identified.


Quark Script: CWE-601.py
========================

.. image:: https://i.postimg.cc/wTwvm0Rm/2025-10-09-9-18-38.png

.. code-block:: python

from quark.script import findMethodInAPK
Expand Down
Loading