Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary /mappings /java /authentication_pwd /comixed_comixed.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No in-repo client sends credentials to POST /api/token/generate (no frontend/TS sources in this repo; the Angular UI lives elsewhere). The caller is outside the repo." | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "status": "present", | |
| "symbol": "generateToken", | |
| "file": "comixed-rest/src/main/java/org/comixedproject/rest/user/ComiXedAuthenticationController.java", | |
| "lines": "61", | |
| "notes": "Login endpoint POST /api/token/generate receives email+password and calls authenticationManager.authenticate(...) at line 66; if authentication fails Spring's ProviderManager throws an AuthenticationException and no token is issued. The provider is registered in ComiXedSecurityConfiguration.restSecurityFilterChain (comixed-auth/.../ComiXedSecurityConfiguration.java:64)." | |
| }, | |
| { | |
| "role": "Verification manager", | |
| "status": "present", | |
| "symbol": "authenticate", | |
| "file": "comixed-auth/src/main/java/org/comixedproject/auth/ComiXedAuthenticationProvider.java", | |
| "lines": "52", | |
| "notes": "Reached from Enforcer generateToken (ComiXedAuthenticationController.java:66) via AuthenticationManager -> ComiXedAuthenticationProvider (registered at ComiXedSecurityConfiguration.java:64). Extracts email/password, loads the user via userService.findByEmail (line 60), hashes the password (line 71) and compares with the stored hash." | |
| }, | |
| { | |
| "role": "Password store", | |
| "status": "present", | |
| "symbol": "findByEmail", | |
| "file": "comixed-repositories/src/main/java/org/comixedproject/repositories/users/ComiXedUserRepository.java", | |
| "lines": "41", | |
| "notes": "authenticate (ComiXedAuthenticationProvider.java:60) calls UserService.findByEmail (UserService.java:70), which calls this repo-declared Spring Data query method; ComiXedUser holds the password_hash column (ComiXedUser.java:55-58). Hashes are unsalted MD5." | |
| }, | |
| { | |
| "role": "Hasher", | |
| "status": "external", | |
| "symbol": "md5Digest", | |
| "file": "comixed-adaptors/src/main/java/org/comixedproject/adaptors/GenericUtilitiesAdaptor.java", | |
| "lines": "37", | |
| "notes": "authenticate calls genericUtilitiesAdaptor.createHash(password.getBytes()) at ComiXedAuthenticationProvider.java:71; the wrapper createHash (GenericUtilitiesAdaptor.java:36) calls Spring's org.springframework.util.DigestUtils.md5Digest and hex-encodes it. Unsalted MD5, a weak password hash." | |
| }, | |
| { | |
| "role": "Pepper store", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No pepper/secret is applied to the password hash in authenticate (ComiXedAuthenticationProvider.java:52-87) or in createHash (GenericUtilitiesAdaptor.java:36); searched for pepper/secret/HMAC around the password path. The JWT signing key in JwtTokenUtil is unrelated." | |
| }, | |
| { | |
| "role": "Encrypter", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "The MD5 hash is compared directly; no encryption/HMAC of the hash with a key occurs on the verification path (ComiXedAuthenticationProvider.java:71)." | |
| }, | |
| { | |
| "role": "Comparator", | |
| "status": "present", | |
| "symbol": "authenticate", | |
| "file": "comixed-auth/src/main/java/org/comixedproject/auth/ComiXedAuthenticationProvider.java", | |
| "lines": "52", | |
| "notes": "Comparison is inline in the Verification manager: createHash(password).equals(user.getPasswordHash()) at ComiXedAuthenticationProvider.java:71 (non-constant-time String.equals); authenticate returns the authenticated token or null, so the same method is cited for Verification manager and Comparator." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "present", | |
| "symbol": "generateToken", | |
| "file": "comixed-auth/src/main/java/org/comixedproject/auth/JwtTokenUtil.java", | |
| "lines": "79", | |
| "notes": "After successful authentication the Enforcer generateToken sets the SecurityContext and calls jwtTokenUtil.generateToken(user) (ComiXedAuthenticationController.java:71), which issues the signed JWT returned to the client as AuthToken." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 4.29 kB
- Xet hash:
- ac13317db82cbe30bef6bb86a977c06ae91a06cee506932825c178f9bceb45bd
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.