Skip to content

Closed - #37

Closed
Hackwar wants to merge 1 commit into
joomla-framework:4.x-devfrom
Hackwar:4.x-crypto-key-no-public
Closed

Hackwar wants to merge 1 commit into
joomla-framework:4.x-devfrom
Hackwar:4.x-crypto-key-no-public

Conversation

@Hackwar

@Hackwar Hackwar commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

No description provided.

defuse/php-encryption is symmetric, but Crypto::generateKey() stored the
raw 32-byte secret as the public part of the key. Code that treats public
keys as shareable (logging, sending to clients) leaked the full key. The
cipher never reads the public part, so leave it empty.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Hackwar Hackwar closed this Nov 13, 2026
@Hackwar Hackwar changed the title [4.x] Do not expose the raw key through Key::getPublic() in the Crypto cipher Closed Nov 13, 2026
@Hackwar
Hackwar deleted the 4.x-crypto-key-no-public branch November 13, 2026 12:50
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