andrewmusselman opened a new issue, #781:
URL: https://github.com/apache/tooling-trusted-releases/issues/781

   **Source:** ASVS 2.2.1 Finding LOW-001
   **CWE:** CWE-20 (Improper Input Validation)
   **Location:** `atr/api/__init__.py`, lines 715–720
   
   #### Description
   
   The `_pagination_args_validate()` function only checks that `limit` doesn't 
exceed 1000 but does not validate negative limits, negative offsets, or 
unreasonably large offsets.
   
   #### Recommendation
   
   Add bounds checks: `limit >= 1`, `offset >= 0`, and a reasonable upper bound 
on `offset`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to