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:53:31 UTC
[I] Handle session isolation for mixed authentication methods (tooling-trusted-releases)
andrewmusselman opened a new issue, #738:
URL: https://github.com/apache/tooling-trusted-releases/issues/738
**ASVS Reference:** 7.2.4
**Finding:** 7.2.4-06
### Description
When authenticating via Bearer tokens or Basic Auth (via the `Authorization` header), the `asfquart/session.py` `read()` function creates an ad-hoc session from the header credentials but does **not** clear any existing cookie session. If both an `Authorization` header and a valid session cookie are present, this could lead to session confusion or privilege inconsistency.
### Affected File
- `src/asfquart/session.py` — `read()` function, Bearer/Basic auth handling
### Recommendation
When header-based authentication is used, explicitly ignore or clear cookie session state to prevent ambiguity about which identity is active.
--
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] Handle session isolation for mixed authentication methods (tooling-trusted-releases)
Posted by "sbp (via GitHub)" <gi...@apache.org>.
sbp closed issue #738: Handle session isolation for mixed authentication methods
URL: https://github.com/apache/tooling-trusted-releases/issues/738
--
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] Handle session isolation for mixed authentication methods (tooling-trusted-releases)
Posted by "sbp (via GitHub)" <gi...@apache.org>.
sbp commented on issue #738:
URL: https://github.com/apache/tooling-trusted-releases/issues/738#issuecomment-4049046408
Closing [per my comment on upstream](https://github.com/apache/infrastructure-asfquart/issues/57#issuecomment-4049040455):
> I don't think that this issue is valid. In the [current `session.py`](https://github.com/apache/infrastructure-asfquart/blob/c7163bef6f5340d7a8f365497a1cb2ac7161ffa6/src/asfquart/session.py#L45-L104) there is a branch which amounts to:
>
> if cookie_id in quart.session:
> ...
> elif bool(quart.request) and 'Authorization' in quart.request.headers:
> ...
>
> If there's a session, even an expired session, the first branch is taken. If not, the second branch is taken. In the case of an expired cookie it just deletes the cookie. The issue says:
>
> "When header-based authentication is used, explicitly ignore or clear cookie session state to prevent ambiguity about which identity is active."
>
> But if the header-based authentication branch is taken, that means _there cannot be a present session_ and therefore there is no cookie either to ignore or to clear.
--
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] Handle session isolation for mixed authentication methods (tooling-trusted-releases)
Posted by "andrewmusselman (via GitHub)" <gi...@apache.org>.
andrewmusselman commented on issue #738:
URL: https://github.com/apache/tooling-trusted-releases/issues/738#issuecomment-3946990537
Hi @ayushjariyal, thanks for the offer! I would go over to https://github.com/apache/infrastructure-asfquart/issues/57 and see what you could do. Typically we would read any docs especially "how to contribute" and then make pull requests.
--
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] Handle session isolation for mixed authentication methods (tooling-trusted-releases)
Posted by "ayushjariyal (via GitHub)" <gi...@apache.org>.
ayushjariyal commented on issue #738:
URL: https://github.com/apache/tooling-trusted-releases/issues/738#issuecomment-3946834242
Hello @andrewmusselman , I want to work on this issue. Could you please assign it to me?
--
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