GHSA-xghw-p77p-3r7x
Fabric CA Developer's Guide: LDAP Injection via Unescaped Username in GetUser Filter
Quick fix
GHSA-xghw-p77p-3r7x — github.com/hyperledger/fabric-ca: upgrade to the fixed version with the command below.
go get github.com/hyperledger/fabric-ca@v1.5.21 Details
When fabric-ca is configured with an LDAP backend, the username from HTTP Basic authentication is included in an LDAP uid search filter without proper escaping. An unauthenticated attacker with network access to the CA enrollment endpoint could exploit this to perform LDAP injection before password validation, and potentially steer authentication attempts toward a victim account.
### Recommendation
- All users of fabric-ca with an LDAP backend should update to a fixed version. - For users not using an LDAP backend, no action is required.
Are you affected?
Enter the version of the package you're using.
Affected packages
0 Fixed in: 1.5.21 go get github.com/hyperledger/fabric-ca@v1.5.21