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

ca #22

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
Draft

ca #22

wants to merge 12 commits into from

Conversation

mirooon
Copy link
Owner

@mirooon mirooon commented Mar 5, 2025

Which Jira task belongs to this PR?

Why did I implement it this way?

Checklist before requesting a review

Checklist for reviewer (DO NOT DEPLOY and contracts BEFORE CHECKING THIS!!!)

  • I have checked that any arbitrary calls to external contracts are validated and or restricted
  • I have checked that any privileged calls (i.e. storage modifications) are validated and or restricted
  • I have ensured that any new contracts have had AT A MINIMUM 1 preliminary audit conducted on by <company/auditor>

/// @notice Initialize the contract.
/// @param _foreignOmniBridge The contract address of the foreign omni bridge on the source chain.
/// @param _wethOmniBridge The contract address of the weth omni bridge on the source chain.
constructor(IOmniBridge _foreignOmniBridge, IOmniBridge _wethOmniBridge) {

Check notice

Code scanning / Olympix Integrated Security

Parameters passed to a constructor that are not validated for correct values may lead to contract creation in an undesired state. For more information, visit: http://detectors.olympixdevsectools.com/article/web3-vulnerability/no-parameter-validation-in-constructor Low

Parameters passed to a constructor that are not validated for correct values may lead to contract creation in an undesired state. For more information, visit: http://detectors.olympixdevsectools.com/article/web3-vulnerability/no-parameter-validation-in-constructor
@mirooon mirooon marked this pull request as ready for review March 5, 2025 19:08
@mirooon mirooon marked this pull request as draft March 5, 2025 19:39
@mirooon mirooon marked this pull request as ready for review March 5, 2025 19:39
@mirooon mirooon marked this pull request as draft March 5, 2025 19:43
@mirooon mirooon marked this pull request as ready for review March 5, 2025 19:44
@mirooon mirooon marked this pull request as draft March 5, 2025 19:44
@mirooon mirooon marked this pull request as ready for review March 5, 2025 19:47
@mirooon mirooon marked this pull request as draft March 5, 2025 19:47
@mirooon mirooon marked this pull request as ready for review March 5, 2025 19:52
@mirooon mirooon marked this pull request as draft March 5, 2025 19:52
@mirooon mirooon marked this pull request as ready for review March 5, 2025 19:54
@mirooon mirooon marked this pull request as draft March 5, 2025 19:54
@mirooon mirooon marked this pull request as ready for review March 5, 2025 19:55
@mirooon mirooon marked this pull request as draft March 5, 2025 19:55
@mirooon mirooon marked this pull request as ready for review March 5, 2025 20:03
@mirooon mirooon marked this pull request as draft March 5, 2025 20:03
@mirooon mirooon marked this pull request as ready for review March 5, 2025 20:08
@mirooon mirooon marked this pull request as draft March 5, 2025 20:08
@mirooon mirooon marked this pull request as ready for review March 5, 2025 20:11
@mirooon mirooon marked this pull request as draft March 5, 2025 20:11
@mirooon mirooon marked this pull request as ready for review March 5, 2025 20:13
@mirooon mirooon marked this pull request as draft March 5, 2025 20:14
@mirooon mirooon marked this pull request as ready for review March 5, 2025 20:14
@mirooon mirooon marked this pull request as draft March 5, 2025 20:15
@mirooon mirooon marked this pull request as ready for review March 5, 2025 20:17
@mirooon mirooon marked this pull request as draft March 5, 2025 20:17
@mirooon mirooon marked this pull request as ready for review March 5, 2025 20:26
@mirooon mirooon marked this pull request as draft March 5, 2025 20:26
@mirooon mirooon marked this pull request as ready for review March 5, 2025 20:28
@mirooon mirooon marked this pull request as draft March 5, 2025 20:28
@mirooon mirooon marked this pull request as ready for review March 5, 2025 20:33
@mirooon mirooon marked this pull request as draft March 5, 2025 20:34
@mirooon mirooon marked this pull request as ready for review March 5, 2025 20:38
@mirooon mirooon marked this pull request as draft March 5, 2025 20:38
@mirooon mirooon marked this pull request as ready for review March 5, 2025 20:41
@mirooon mirooon marked this pull request as draft March 5, 2025 20:41
@mirooon mirooon marked this pull request as ready for review March 5, 2025 20:54
@mirooon
Copy link
Owner Author

mirooon commented Mar 5, 2025

🤖 GitHub Action: Security Alerts Review 🔍

🚨 Unresolved Security Alerts Found! 🚨
The following security alerts must be resolved before merging:

🔴 View Alert - File: src/Facets/OmniBridgeFacet9.sol
🔹 Parameters passed to a constructor that are not validated for correct values may lead to contract creation in an undesired state. For more information, visit: http://detectors.olympixdevsectools.com/article/web3-vulnerability/no-parameter-validation-in-constructor

⚠️ Please resolve the above issues before merging.

🟢 Dismissed Security Alerts with Comments
The following alerts were dismissed with proper comments:

🟢 View Alert - File: src/Facets/OmniBridgeFacet9.sol
🔹 Test functions fail to thoroughly test all aspects of contract constructors, potentially missing critical initialization issues. For more information, visit: http://detectors.olympixdevsectools.com/article/web3-vulnerability/incomplete-constructor-tests
🔹 Dismiss Reason: False positive
🔹 Dismiss Comment: This alert was fixed in another, separate PR: https://github.com/mirooon/contracts/pull/1037 However, since that fixing PR did not touch the CalldataVerificationFacet (only the related test file), the fix was not detected as such and this error was not resolved .

🟢 View Alert - File: src/Facets/OmniBridgeFacet9.sol
🔹 The contract contains functions with inadequate validation of input parameters, potentially leading to unexpected behavior or vulnerabilities. For more information, visit: http://detectors.olympixdevsectools.com/article/web3-vulnerability/insufficient-parameter-assertion
🔹 Dismiss Reason: False positive
🔹 Dismiss Comment: fixed in PR: #3

🟢 View Alert - File: src/Facets/OmniBridgeFacet9.sol
🔹 Parameters passed to a constructor that are not validated for correct values may lead to contract creation in an undesired state. For more information, visit: http://detectors.olympixdevsectools.com/article/web3-vulnerability/no-parameter-validation-in-constructor
🔹 Dismiss Reason: False positive
🔹 Dismiss Comment: fixed in PR: https://www.facebook.com/pull/33

@mirooon mirooon marked this pull request as draft March 5, 2025 20:54
@mirooon mirooon marked this pull request as ready for review March 5, 2025 20:55
@mirooon mirooon marked this pull request as draft March 5, 2025 20:55
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