Skip to content
This repository has been archived by the owner on Jan 28, 2021. It is now read-only.

Security Module Vulnerability: Non-existing User gets created in DB even though not authenticated via LDAP #113

Open
andi-huber opened this issue Aug 2, 2019 · 4 comments

Comments

@andi-huber
Copy link

When using the Security Module with delegated authentication to LDAP, any login attempt of an user yet not existent within the DB, authenticated or not will create an (disabled) user-account in the DB.

While not a security risk, this allows attackers to 'fill' the database with arbitrary garbage.

Desired behavior for this scenario is to auto-create user accounts in the DB only if these do successfully authenticate with the delegated authentication mechanism.

I've fixed this in the Apache Isis 'v2' branch. See [1]

[1] https://issues.apache.org/jira/browse/ISIS-2157

@andi-huber
Copy link
Author

andi-huber commented Aug 2, 2019

Fix applies only to a single class: IsisModuleSecurityRealm

https://github.com/apache/isis/blob/v2/extensions/secman/realm-shiro/src/main/java/org/apache/isis/extensions/secman/shiro/IsisModuleSecurityRealm.java

This version in the 'v2' has slightly progressed and deviated from the Incode version.

@danhaywood
Copy link
Contributor

danhaywood commented Aug 2, 2019 via email

@johandoornenbal
Copy link
Contributor

johandoornenbal commented Aug 2, 2019 via email

@andi-huber
Copy link
Author

(basically, the fix is to do a delegated authentication attempt before auto-creating any user accounts)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants