https://bz.apache.org/bugzilla/show_bug.cgi?id=70332

--- Comment #1 from abernal <[email protected]> ---
Proposed fix on trunk: https://github.com/apache/httpd/pull/1064

It makes construct_key() injective by prefixing each field with its byte
length, so a ':' in a client-supplied username or in a realm can no longer
shift a field boundary and collide with a different (user, realm) tuple. The PR
includes a regression test (test/modules/aaa/test_017_authn_socache_dbd_key.py)
that reproduces this exact cross-realm collision over Digest + mod_authn_dbd
(the database keeps user and realm in separate columns, so only the cache key
is under test): it fails on current trunk and passes with the fix.

Confirmed on a real trunk build (5c58daaf2d) that this is a trunk-only
regression, introduced when the AuthName/realm and auth type were folded into
the key; 2.4.x does not put those in the Basic/Form key and is not affected.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to