Skip to content

A20: Record A20 credential-lifetime follow-up - #19

Merged
stevehu merged 2 commits into
masterfrom
fix/a20-assessment-follow-up-master
Nov 28, 2026
Merged

stevehu merged 2 commits into
masterfrom
fix/a20-assessment-follow-up-master

Conversation

@stevehu

@stevehu stevehu commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Record the deduplicated 43-finding scope, local hardening, and remaining credential retention. Partner deployment and rescan evidence remain outstanding.

Local mdBook build passed.

@stevehu stevehu left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review of the A20 follow-up row. One inline comment.

| HTTP-client, October 108–111 and November 61–64 | Local changes for master and 2.x add opt-in UTF-8 password files for the client keystore, private key, configured truststore and default truststore. Removing corresponding legacy values avoids retaining their secret Strings in that deployment. The bytes and chars owned by the loader are wiped. Provider-owned copies require provider-specific qualification. |
| Light-4j, October 47–68 and November 68–90 | Existing merged work clears owned TLS/decryptor buffers and limits cache retention. Secret source changes still need separate coverage for server and client TLS, bootstrap TLS, MRAS, Salesforce and info handlers. Shared TLS configuration arrays and configured Basic Auth values have longer lifetimes. November 69 remains a Hikari reconnect credential. |
| Portal, October 73/76 and November 29 | The two operator entry points share the direct JDBC connector. The protected-file path bounds temporary buffers and the connector clears its Properties after use. The JDBC driver still receives a password String. |
| Portal, November 30–41 | Local changes clear the array made by LoginUser and the copies owned by light-4j HashUtil on master and 2.x. The login response omits the stored hash and the raw login record is no longer traced. Request parser and map Strings remain. The shared hasher wipes owned arrays and the PBEKeySpec. On the reviewed JDK 25 provider, PBKDF2KeyImpl retains its own password copy until Cleaner processing. Rows 32 and 36 refer to the same reset token at generation and email delivery, with additional event and projection consumers. Token representation changes require coordination with token validation and replay. |

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The coverage claim for change and reset needs a correction. ChangePassword.validateInput discards both computed hashes, so the PasswordChangedEvent carries the plaintext oldPassword, newPassword and passwordConfirm, and the password never actually changes. ResetPassword also leaves the plaintext newPassword/passwordConfirm in its event. In addition, LoginUser returns the stored hash in its response, and HashUtil's PBKDF2KeyImpl keeps a password copy that can't be destroyed until GC. This row should record those as remaining exposures instead of saying the handoff is covered. Details are on lightapi/light-portal#898 and networknt/light-4j#2849.

@stevehu
stevehu merged commit 3f198cb into master Nov 28, 2026
@stevehu
stevehu deleted the fix/a20-assessment-follow-up-master branch November 28, 2026 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant