Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: malicious recovery detection #3834

Closed
wants to merge 1 commit into from
Closed

Conversation

schmanu
Copy link
Member

@schmanu schmanu commented Jun 12, 2024

What it solves

Resolves https://www.notion.so/safe-global/Recovery-tx-is-being-considered-a-malicious-tx-724664e7de4e4a8da4d88b5606af047c?pvs=4

How this PR fixes it

  • Uses correct multiSend deployment when trying to detect if recovery is malicious

How to test it

  • Queue a recovery through the interface

Checklist

  • I've tested the branch on mobile 📱
  • I've documented how it affects the analytics (if at all) 📊
  • I've written a unit/e2e test for it (if applicable) 🧑‍💻

Copy link

github-actions bot commented Jun 12, 2024

Copy link

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

@katspaugh
Copy link
Member

I guess it's a regression after #3811. So we cannot just always use the latest multisend contract?

Copy link

📦 Next.js Bundle Analysis for safe-wallet-web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 948.78 KB (-3 B)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Copy link

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements
79.44% (+0% 🔼)
11515/14496
🔴 Branches
58.45% (+0.01% 🔼)
2784/4763
🟡 Functions 66.74% 1846/2766
🟢 Lines
80.76% (+0% 🔼)
10381/12854
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🟢
... / recovery-state.ts
95.24% (+0.08% 🔼)
84.21% (-2.46% 🔻)
85.71%
96.55% (+0.06% 🔼)

Test suite run success

1436 tests passing in 199 suites.

Report generated by 🧪jest coverage report action from 23cdfa0

@schmanu
Copy link
Member Author

schmanu commented Jun 12, 2024

So we cannot just always use the latest multisend contract?

We use the version that we pass to the safe-core-sdk. But if that version has no MultiSendCallOnly contract it falls back to 1.3.0.
Maybe we could use the getMultiSendCallOnlyContract function of the safe-core-sdk instead of using safe-deployments. Then it would always be aligned.

@schmanu
Copy link
Member Author

schmanu commented Jun 12, 2024

Closing this as we reverted the change that caused this issue.

@schmanu schmanu closed this Jun 12, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jun 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants