Skip to content

Comments

Codex-generated pull request#5

Merged
GsCommand merged 1 commit intomainfrom
codex/create-unit-test-suite-for-ens-receipts
Feb 15, 2026
Merged

Codex-generated pull request#5
GsCommand merged 1 commit intomainfrom
codex/create-unit-test-suite-for-ens-receipts

Conversation

@GsCommand
Copy link
Contributor

Codex generated this pull request, but encountered an unexpected error after generation. This is a placeholder PR message.


Codex Task

@GsCommand GsCommand merged commit de1b491 into main Feb 15, 2026
1 check passed
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 18e191e7b9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

function verifySignature(receiptHash, signatureB64, pubkeyBytes) {
const spki = Buffer.concat([ED25519_SPKI_PREFIX, pubkeyBytes]);
const key = crypto.createPublicKey({ key: spki, format: "der", type: "spki" });
return crypto.verify(null, Buffer.from(receiptHash, "utf8"), key, Buffer.from(signatureB64, "base64"));

Choose a reason for hiding this comment

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

P1 Badge Reject non-canonical base64 signatures during verification

verifySignature decodes signatureB64 with Buffer.from(..., "base64") but never validates that the input is strict base64, and Node silently ignores trailing invalid characters; as a result, a tampered value like "<validSig>***" is accepted and still verifies as valid. This weakens receipt validation because malformed or manipulated signature encodings are treated as authentic instead of being rejected.

Useful? React with 👍 / 👎.

@GsCommand GsCommand deleted the codex/create-unit-test-suite-for-ens-receipts branch February 15, 2026 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant