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

solc-version detector: Missing 0.5.11 #320

Closed
montyly opened this issue Aug 23, 2019 · 11 comments · Fixed by #357
Closed

solc-version detector: Missing 0.5.11 #320

montyly opened this issue Aug 23, 2019 · 11 comments · Fixed by #357
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@montyly
Copy link
Member

montyly commented Aug 23, 2019

0.5.11 is incorrectly reported as an old version.

@yxliang01
Copy link
Contributor

yxliang01 commented Oct 28, 2019

@montyly I proposed #357 to fix this. However, I feel the logic can be made more generic, so that no need to update the list of too recent versions whenever there's new solc version. E.g. set a version number to be the latest version that is well-tested and known to be stable. Then, for a version that is after this version, if it is a known vulnerable version, report vulnerable text, otherwise, too recent. Possibly, it can automatically pick the latest version among the ALLOWED_VERSIONS?

@montyly
Copy link
Member Author

montyly commented Oct 30, 2019

Thanks @yxliang01 for the contribution!

It's a good idea! I agree we can just parse the latest element of 0.5.X and report when its greater than our recommended version.

@montyly montyly reopened this Nov 4, 2019
@montyly
Copy link
Member Author

montyly commented Nov 6, 2019

Task Description

Change the logic of the solc-version detector (see discussions above)

Acceptance criteria

  • The solc-version detector extracts the minor version of 0.4.x/0.5.x and compares it to a lower bound and an upper bound

Required Skills

  • Experience with Python 3.6
  • Experience with Solidity smart contracts
  • Experience with Slither

Feel free to ask questions here, or join our slack (#ethereum)

@gitcoinbot
Copy link

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


This issue now has a funding of 100.0 SAI (100.0 USD @ $1.0/SAI) attached to it.

@karansinghgit
Copy link

@montyly why is there a need for a lower bound and upper bound?

@gitcoinbot
Copy link

gitcoinbot commented Nov 22, 2019

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work has been started.

These users each claimed they can complete the work by 6 days, 10 hours from now.
Please review their action plans below:

1) uivlis has been approved to start work.

I will test version_number against upper and lower bound of ALLOWED_VERSIONS and will also test it not to be in BUGGY_VERSIONS.
2) b-m-f has applied to start work (Funders only: approve worker | reject worker).

I have already worked on solc-select and would like to pick this up.
I will implement a check against the minor version and compare against the ALLOWED_VERSIONS variable.
A correct message ( "version too high" || "version to low") will be reported.

Learn more on the Gitcoin Issue Details page.

@montyly
Copy link
Member Author

montyly commented Nov 22, 2019

Hi @uivlis and @b-m-f, thank you for your interest in this issue.

This requires only one contributor, so we will go with the first one who applied. @ceresstation can you approve @uivlis ? Thank you

@gitcoinbot
Copy link

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work for 100.0 SAI (100.0 USD @ $1.0/SAI) has been submitted by:

  1. @uivlis

@ceresstation please take a look at the submitted work:


@montyly
Copy link
Member Author

montyly commented Nov 28, 2019

The issue was solved in #378 by @uivlis.

@ceresstation can you send the bounty? Thanks

@uivlis
Copy link
Contributor

uivlis commented Dec 9, 2019

@ceresstation I sent you a payment reminder, maybe you forgot about this one?

@gitcoinbot
Copy link

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


The funding of 100.0 SAI (100.0 USD @ $1.0/SAI) attached to this issue has been approved & issued to @uivlis.

@montyly montyly closed this as completed Dec 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
5 participants