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/25 04:06:55 UTC
[I] Apply URL encoding to distribution platform API URL parameters (tooling-trusted-releases)
andrewmusselman opened a new issue, #765:
URL: https://github.com/apache/tooling-trusted-releases/issues/765
**ASVS:** 1.2.2 | **CWE:** CWE-116 | **Severity:** MEDIUM | **Effort:** Low
### Description
In `atr/shared/distribution.py` (lines ~131–148), `owner_namespace`, `package`, and `version` values are interpolated into API URLs via `.format()` without URL encoding. Special characters in these values could corrupt the URL or cause unexpected server-side behavior.
### Remediation
Apply `urllib.parse.quote()` to each parameter before interpolation. For Maven `owner_namespace`, split on `.` and encode each segment individually.
Defense in-depth
--
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 URL encoding to distribution platform API URL parameters (tooling-trusted-releases)
Posted by "alitheg (via GitHub)" <gi...@apache.org>.
alitheg commented on issue #765:
URL: https://github.com/apache/tooling-trusted-releases/issues/765#issuecomment-4041063889
@sbp Ultimately these come from a form input - if we used a safe.Alphanumeric on them or similar, I believe this issue would go away?
--
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 URL encoding to distribution platform API URL parameters (tooling-trusted-releases)
Posted by "alitheg (via GitHub)" <gi...@apache.org>.
alitheg commented on issue #765:
URL: https://github.com/apache/tooling-trusted-releases/issues/765#issuecomment-3984986447
I'm going to put this one on hold while we are still looking at what we do with distributions
--
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 URL encoding to distribution platform API URL parameters (tooling-trusted-releases)
Posted by "alitheg (via GitHub)" <gi...@apache.org>.
alitheg closed issue #765: Apply URL encoding to distribution platform API URL parameters
URL: https://github.com/apache/tooling-trusted-releases/issues/765
--
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