Skip to content

Blue fallback rolling auction negative - #1128

Closed
peyha wants to merge 2 commits into
blue-fallback-rolling-auctionfrom
blue-fallback-rolling-auction-negative
Closed

Blue fallback rolling auction negative#1128
peyha wants to merge 2 commits into
blue-fallback-rolling-auctionfrom
blue-fallback-rolling-auction-negative

Conversation

@peyha

@peyha peyha commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

No description provided.

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

Copy link
Copy Markdown

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: 62415a703d

ℹ️ 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".

Comment on lines +166 to +168
require(msg.sender == MIDNIGHT, NotMidnight());

(address caller, bytes memory callerData) = abi.decode(data, (address, bytes));

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Authenticate callbacks against the active roll

Checking only msg.sender == MIDNIGHT does not prove this callback originated from roll: an attacker can call Midnight.repay on their own behalf with zero units, select this contract as the callback, and encode any target roller and payload in data. Any roller that trusts calls from this contract can therefore have its onRepay logic triggered with forged parameters; store and validate the active roll/caller context before forwarding the callback.

Useful? React with 👍 / 👎.

@peyha

peyha commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

Not planned after this

@peyha peyha closed this Aug 7, 2026
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