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

use of floating pragma #257

Open
code423n4 opened this issue Nov 10, 2021 · 3 comments
Open

use of floating pragma #257

code423n4 opened this issue Nov 10, 2021 · 3 comments
Labels
0 (Non-critical) Code style, clarity, syntax, versioning, off-chain monitoring (events etc), exclude gas optimisation bug Something isn't working

Comments

@code423n4
Copy link
Contributor

Handle

JMukesh

Vulnerability details

Impact

Contracts should be deployed with the same compiler version and flags that they have been tested with thoroughly. Locking the pragma helps to ensure that contracts do not accidentally get deployed using, for example, an outdated compiler version that might introduce bugs that affect the contract system negatively.

Proof of Concept

https://github.com/code-423n4/2021-11-bootfinance/blob/b4ebd0a5ebcbc24f3d15836cdb9759243fc85868/core-contracts/contracts/sol/BTCPoolDelegator.sol#L3

https://github.com/code-423n4/2021-11-bootfinance/blob/b4ebd0a5ebcbc24f3d15836cdb9759243fc85868/core-contracts/contracts/sol/ETHPoolDelegator.sol#L3

https://github.com/code-423n4/2021-11-bootfinance/blob/b4ebd0a5ebcbc24f3d15836cdb9759243fc85868/core-contracts/contracts/sol/USDPoolDelegator.sol#L3

Tools Used

manual review

Recommended Mitigation Steps

use fixed solidity version

@code423n4 code423n4 added 0 (Non-critical) Code style, clarity, syntax, versioning, off-chain monitoring (events etc), exclude gas optimisation bug Something isn't working labels Nov 10, 2021
code423n4 added a commit that referenced this issue Nov 10, 2021
@chickenpie347 chickenpie347 added the duplicate This issue or pull request already exists label Jan 4, 2022
@chickenpie347
Copy link
Collaborator

Duplicate of #29

@chickenpie347 chickenpie347 marked this as a duplicate of #29 Jan 4, 2022
@0xean 0xean removed the duplicate This issue or pull request already exists label Jan 9, 2022
@0xean
Copy link
Collaborator

0xean commented Jan 9, 2022

Slightly different recommendation to not use a floating pragma regardless of the upgrade to 0.8.4+

@0xean 0xean reopened this Jan 9, 2022
@0xean
Copy link
Collaborator

0xean commented Jan 9, 2022

(IE not a dupe)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 (Non-critical) Code style, clarity, syntax, versioning, off-chain monitoring (events etc), exclude gas optimisation bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants