[ 
https://issues.apache.org/jira/browse/KNOX-3417?focusedWorklogId=1035523&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1035523
 ]

ASF GitHub Bot logged work on KNOX-3417:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 13/Aug/26 08:37
            Start Date: 13/Aug/26 08:37
    Worklog Time Spent: 10m 
      Work Description: github-actions[bot] commented on PR #1348:
URL: https://github.com/apache/knox/pull/1348#issuecomment-5278012133

   ## Test Results
   40 tests   40 ✅  5s ⏱️
    3 suites   0 💤
    3 files     0 ❌
   
   Results for commit 3c1f7543.
   
   
[test-results]:data:application/gzip;base64,H4sIAF+CfWoC/12Myw7CIBBFf6Vh7QKcosWfMcMUkoltMRRWjf8urdqHu3vOTc4kPHduFLcKTpUYM6cV2hwxcRgK6oLlSPNVyx/cx0z0Zx78LGYTHrk7CBdjiF8T87AW530IfsTWW3iXW3hfo9D3nAoIIOWvugbyjbdGIrWAViGAQukuDVmjz6iNFK83vIgTG/8AAAA=
   




Issue Time Tracking
-------------------

    Worklog Id:     (was: 1035523)
    Time Spent: 20m  (was: 10m)

> KnoxLdapRealm builds the LDAP search filter from the client username without 
> RFC-4515 escaping
> ----------------------------------------------------------------------------------------------
>
>                 Key: KNOX-3417
>                 URL: https://issues.apache.org/jira/browse/KNOX-3417
>             Project: Apache Knox
>          Issue Type: Bug
>          Components: Server
>    Affects Versions: 2.1.0, 3.0.0
>            Reporter: Tamás Hanicz
>            Assignee: Tamás Hanicz
>            Priority: Blocker
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Reported by n0mi1k Security
>  KnoxLdapRealm.java:699-703 formats (&(objectclass=%s)(%s=%s)) with 
> expandTemplate(getUserSearchAttributeTemplate(), matchedPrincipal), and :706 
> expands the operator's userSearchFilter the same way; expandTemplate 
> (:752-760) is a plain \{0} substitution with no encoding, principalRegex 
> defaults to (.*) (:138) so matchPrincipal filters nothing, and the value 
> reaches systemLdapCtx.search(searchBase, searchFilter, searchControls) at 
> :716. No filter-escaping helper exists anywhere in the realm. The username 
> arrives pre-authentication, via doGetAuthenticationInfo to getUserDn at :263. 
> It's a filter-injection primitive rather than a demonstrated credential-less 
> bypass.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to