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

   **ASVS:** 15.3.1 · Finding 3
   **Severity:** HIGH
   **CWE:** CWE-200 (Exposure of Sensitive Information)
   
   ### Description
   
   The `TasksListResults` API response in `atr/models/api.py` (lines 449–453) 
returns complete `Task` SQLModel objects without field filtering:
   
   ```python
   class TasksListResults(schema.Strict):
       data: Sequence[sql.Task]  # Full Task objects
   ```
   
   Exposed fields include `task_args` (may contain secrets, file paths, 
internal identifiers), `error` (stack traces, implementation details), `pid` 
(process information), and `result` (potentially sensitive task output).
   
   ### Recommendation
   
   1. Add "no secrets in task args" to new policy doc
   2. Create an explicit `TaskPublicResponse` DTO that includes only safe 
fields like `id`, `task_type`, `status`, `created`, and `updated`.


-- 
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