Skip to content

SEC-1394: Credentials stored in authentication object #1637

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
spring-projects-issues opened this issue Jan 31, 2010 · 1 comment
Closed
Labels
in: core An issue in spring-security-core status: duplicate A duplicate of another issue type: bug A general bug type: jira An issue that was migrated from JIRA

Comments

@spring-projects-issues
Copy link

Jarrod Carlson (Migrated from SEC-1394) said:

Maybe I'm missing something obvious, but is there a reason that after a successful login (using the approach) the "credentials" from login (the user's password) are kept in clear text in the Authentication object stored in the SecurityContext?

After login, any part of my application can simply do:

SecurityContextHolder.getContext().getAuthenticati on().getCredentials();

This returns the plain-text password supplied at login, even if login was dozens of requests ago. Why is this? Does that not seem somewhat insecure to anyone else?

@spring-projects-issues spring-projects-issues added in: core An issue in spring-security-core Closed type: bug A general bug status: duplicate A duplicate of another issue type: jira An issue that was migrated from JIRA labels Feb 5, 2016
@rwinch
Copy link
Member

rwinch commented Feb 6, 2016

This issue duplicates #1616

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core An issue in spring-security-core status: duplicate A duplicate of another issue type: bug A general bug type: jira An issue that was migrated from JIRA
Projects
None yet
Development

No branches or pull requests

2 participants