You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tooling.apache.org by "andrewmusselman (via GitHub)" <gi...@apache.org> on 2026/02/19 06:09:26 UTC

[I] Apply `form.to_relpath()` consistently in `draft.py` and `finish.py` POST handlers (tooling-trusted-releases)

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

   **ASVS Requirement:** 5.3.2
   
   **Description:**
   
   Several POST handlers accept file path form fields without calling the existing `form.to_relpath()` validation, despite other handlers in the same files using it correctly (e.g., `draft.py::hashgen` correctly validates).
   
   | Handler | Form Field | Validation |
   |---------|-----------|------------|
   | `draft.py::delete_file` | `file_path` | ❌ Missing |
   | `finish.py::_delete_empty_directory` | `directory_to_delete` | ❌ Missing |
   | `finish.py::_move_file_to_revision` | `source_files`, `target_directory` | ❌ Missing |
   
   **CWE:** CWE-22 (Path Traversal)
   
   **Recommended remediation:**
   Add RelPath to docs/user-interface.md


-- 
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: dev-unsubscribe@tooling.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tooling.apache.org
For additional commands, e-mail: dev-help@tooling.apache.org


Re: [I] Apply `form.to_relpath()` consistently in `draft.py` and `finish.py` POST handlers (tooling-trusted-releases)

Posted by "andrewmusselman (via GitHub)" <gi...@apache.org>.
andrewmusselman closed issue #721: Apply `form.to_relpath()` consistently in `draft.py` and `finish.py` POST handlers
URL: https://github.com/apache/tooling-trusted-releases/issues/721


-- 
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: dev-unsubscribe@tooling.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tooling.apache.org
For additional commands, e-mail: dev-help@tooling.apache.org


Re: [I] Apply `form.to_relpath()` consistently in `draft.py` and `finish.py` POST handlers (tooling-trusted-releases)

Posted by "andrewmusselman (via GitHub)" <gi...@apache.org>.
andrewmusselman commented on issue #721:
URL: https://github.com/apache/tooling-trusted-releases/issues/721#issuecomment-4027622929

   https://release-test.apache.org/docs/user-interface#forms specifically


-- 
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: dev-unsubscribe@tooling.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tooling.apache.org
For additional commands, e-mail: dev-help@tooling.apache.org