u2 / u2.github.io Goto Github PK
View Code? Open in Web Editor NEWu2.github.io
Home Page: https://github.com/u2/u2.github.io
u2.github.io
Home Page: https://github.com/u2/u2.github.io
slither --json - --pretty-json cvc/SWC/swc-113-dos/send_loop.sol
{
"success": true,
"error": null,
"result": {
"detectors": [
{
"description": "Refunder.refunds (cvc/SWC/swc-113-dos/send_loop.sol#11) is never initialized. It is used in:\n\t- Refunder.refundAll() (cvc/SWC/swc-113-dos/send_loop.sol#19-24)\n",
"check": "uninitialized-state",
"impact": "High",
"swc-issue": "swc-109 Uninitialized Storage Pointer",
"recommend": "\nInitialize all the variables. If a variable is meant to be initialized to zero, explicitly set it to zero to improve code readability.\n"
},
{
"description": "Refunder.refundAll() (cvc/SWC/swc-113-dos/send_loop.sol#19-24)using transfer() and send() functions which forward a fixed amount of 2300 gas:\n\t- require(bool)(refundAddresses[x].send(refunds[refundAddresses[x]])) (cvc/SWC/swc-113-dos/send_loop.sol#22)\n",
"check": "hardcode-gas",
"impact": "Medium",
"swc-issue": "swc-134 State Message call with hardcoded gas amount",
"recommend": "Avoid the use of transfer() and send() and do not otherwise specify a fixed amount of gas when performing calls. Use .call.value(...)('') instead. Use the checks-effects-interactions pattern and/or reentrancy locks to prevent reentrancy attacks."
},
{
"description": "solc-0.4.24 is not recommended for deployment\n",
"check": "solc-version",
"impact": "Low",
"swc-issue": "swc-102 Outdated Compiler Version",
"recommend": "Deploy with any of the following Solidity versions:\n - 0.8.18\n \n The recommendations take into account:\n - Risks related to recent releases\n - Risks of complex code generation changes\n - Risks of new language features\n - Risks of known bugs\n \n Use a simple pragma version that allows any of these versions.\n Consider using the latest version of Solidity for testing."
},
{
"description": "Pragma version0.4.24 (cvc/SWC/swc-113-dos/send_loop.sol#7) allows old versions\n",
"check": "solc-version",
"impact": "Low",
"swc-issue": "swc-102 Outdated Compiler Version",
"recommend": "Deploy with any of the following Solidity versions:\n - 0.8.18\n \n The recommendations take into account:\n - Risks related to recent releases\n - Risks of complex code generation changes\n - Risks of new language features\n - Risks of known bugs\n \n Use a simple pragma version that allows any of these versions.\n Consider using the latest version of Solidity for testing."
},
{
"description": "Loop condition x < refundAddresses.length (cvc/SWC/swc-113-dos/send_loop.sol#20) should use cached array length instead of referencing `length` member of the storage array.\n ",
"check": "cache-array-length",
"impact": "Low",
"swc-issue": "swc-113 DoS with Failed Call",
"recommend": "Cache the lengths of storage arrays if they are used and not modified in `for` loops."
}
]
}
}
The number of potential paths is very large, so blockchains amortize validation by
downloading every transaction and verifying them as they are added. This allows
us to assume that every reference to an already verified transaction is a valid path
and only verify the most recently added UTXOs.
Intertwined identity and
agency using crypto addresses and signatures are stronger than any mobile 2FA
side channel association and authentication[11].
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.