prompt
listlengths
2
2
source
stringclasses
3 values
severity
stringclasses
5 values
category
stringclasses
186 values
has_code
bool
2 classes
has_poc
bool
2 classes
reference_response
stringlengths
23
5k
firm
stringclasses
26 values
quality_score
float64
0
5
protocol
stringclasses
398 values
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
front-running
false
false
## High: Vault is vulnerable to inflation attack which can cause complete loss of user funds ### Description Attacker can attack the first depositors in the vault and can steal all users funds. this attack is also famously known has first deposit bug too. while doing this attack , there is no loss of attacker funds, b...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
token
false
false
## Low: Upgradeable ERC20 token ### Description **Severity**: Informational **Status**: Acknowledged **Description** Contract LibertyFinanceToken is an ERC20 token that is upgradeable as well. It is generally not advised to make an ERC20 token upgradeable as it becomes unpredictable for token holders regarding thei...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: `BoostAggregator` owner can set fees to 100% and steal all of the user's rewards ### Description ### Lines of code ### Impact Users who use `BoostAggregator` will suffer a 100% loss of their rewards. ### Proof of Concept After users have staked their tokens, the owner of the `BoostAggregator` can set...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
false
false
## Low: Missing docstrings ### Description All the functions in the [`CompoundPrizePoolBuilder`](https://github.com/pooltogether/pooltogether-pool-contracts/blob/5a9381340a7cef139c77e44c5ad5c2a5d6e12e36/contracts/builders/CompoundPrizePoolBuilder.sol) and the [`yVaultPrizePoolBuilder`](https://github.com/pooltogether/...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
solodit_api
high
Validation
true
false
Source: https://github.com/sherlock-audit/2022-10-illuminate-judging/issues/47 ## Found by IllIllI, 0x52, kenzo ## Summary Some of the protocols `lend` methods take as user input the *underlying asset* and the *pool to swap on.* They do not check that they match. **Therefore a user can supply to `Lender` DAI underl...
Sherlock
3
Illuminate
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
overflow
true
false
## Low: Multiplication could overflow in `RebasingLibrary` for tokens with greater than 18 decimals ### Description **Description:** `RebasingLibrary` contains special handling for tokens with greater than 18 decimals: **Impact:** When using tokens with high decimal values, the multiplication here could overflow cau...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
true
false
## High: Missing transfer of tokens before island.mint() ### Description The Burve contract allows users to provide liquidity to both the island pool and Uniswap V3 pools. When adding liquidity to the island pool, it will transfer tokens in from the sender (which is the Burve contract itself) before providing liquidit...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Incorrect event field ### Description In `OrderFilled` event first field should be `taker` https://github.com/1inch/limit-order-protocol/blob/a14bde6a260458de5083cee117d734221e1cbc05/contracts/LimitOrderProtocol.sol#L48 ### Recommendation We recommend to rename `maker` to `taker`.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
liquidation
true
false
## Low: TRST-L-2 Insufficient dust checks ### Description **Description:** In `hedgeDelta()`, there is a dust check in the case of sell wETH order: However, the actual used amount is _delta The check should be applied on deltaToUse rather than wethBalance because it will be the minimum of wethBalance and _delta. A...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
cross-chain
true
false
## Low: DECLARATION NAMING CONVENTION ### Description The linked declarations do not conform to the [Solidity](https://solidity.readthedocs.io/en/v0.7.3/style-guide.html#naming-conventions) style guide in regard to its naming convention. ``` camelCase : Should be applied to function names, argument names, local and s...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
false
false
## High: Fixed-rate loans can be repeatedly rebalanced ### Description Any user’s fixed-rate loan [can be rebalanced](https://gitlab.com/aave-tech/dlp/contracts/blob/1f8e5e65a99a887a5a13ad9af6486ebf93f57d02/contracts/lendingpool/LendingPool.sol#L493) if the rate falls outside an acceptable range. The lower boundary of...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: Avoid hardcoding addresses when contract is intended to be deployed to multiple chains ### Description While the [`LimitOrderRegistry::fastGasFeed`](https://github.com/crispymangoes/uniswap-v3-limit-orders/blob/83f5db9cb90926c11ee6ce872dc165b7f600f3d8/src/LimitOrderRegistry.sol#L190-L193) state variable is [ov...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
overflow
true
false
## Medium: `FluidLocker::_getUnlockingPercentage()` divides before multiplying, suffering a significant precision error ### Description [FluidLocker::_getUnlockingPercentage()](https://github.com/sherlock-audit/2024-11-superfluid-locking-contract/blob/main/fluid/packages/contracts/src/FluidLocker.sol#L384) is calculat...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
false
false
## Low: [14] Contract Owner Has Too Many Privileges ### Description The owner of the contracts has too many privileges relative to standard users. The consequence is disastrous if the contract owner's private key has been compromised. And, in the event the key was lost or unrecoverable, no implementation upgrades and ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
oracle
false
false
## Low: Check for the trusted executor on Pyth price update is not enforced ### Description `OracleUpdateModule` allows trusted executors to update the Stork and Pyth oracles price. For the Stork oracle, the price is verified and then saved in storage. However, for the Pyth oracle, the price is updated in the `Pyth` ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
rounding
true
false
## Low: LACK OF VALIDATION FOR EXTENSIONS OF THE MINT ### Description The Huma protocol allows the Huma owner to add liquidity assets by providing the corresponding mint account, which can then be used as the underlying asset for creating pools. However, the `add_liquidity_asset` instruction handler does not validate...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: BlockhashRegistry- assembly code can be optimized ✓ Fixed ### Description The following code can be optimized by removing `mload` and `mstore`: **code/in3-contracts/contracts/BlockhashRegistry.sol:L106-L125** ``` require(first > 0xf7, "invalid offset"); uint8 offset = first - 0xf7 + 2; /// we are using as...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: A `SPTV2` Instance Cannot Have More than `256` Different Reward Curves ### Description **Update** Marked as "Acknowledged" by the client. The client provided the following explanation: > Acked. Documentation updated in rewards section under Creating a Reward Curve **File(s) affected:**`RewardPoolLib.sol` **...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Improve inline documentation ### Description Key contracts under review have limited comments (inline documentation) within the code, and critical functions lack adequate explanations. This makes understanding the protocol's operations difficult when reviewing the code. ### Recommendation Ensure every functio...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
solodit_api
high
dos
true
false
## Vulnerability Report: verifyDoubleSigning `verifyDoubleSigning` is vulnerable to gas griefing attacks, allowing a malicious operator to evade slashing. This vulnerability stems from the linear complexity \( O(N) \) of `verifyDoubleSigning`, where \( N \) denotes the length of the delegators array (`delegatedValidat...
OtterSec
5
Ethos EVM
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Missing route and reward validations allows creating economically non-viable intents ### Description The `IntentSource` contract lacks validation for route and reward parameters when creating intents. This allows the creation of intents that provide no economic value to fillers or could result in tokens being ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
overflow
true
false
## Low: Ether send function remainder handling ### Description The Ether send function depicted below implements logic to reimburse the sender if an extraneous amount is left in the contract after the disbursement. **code/BitwaveMultiSend.sol:L22-L43** ``` function sendEth(address payable [] memory \_to, uint256[]...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
true
false
## Low: Ineffective role seggregation in LevelBaseReserveManager ### Description In the `LevelBaseReserveManager` contract, the same `_admin` account is assigned to both the `DEFAULT_ADMIN_ROLE` and the `PAUSER_ROLE`: ```solidity _grantRole(DEFAULT_ADMIN_ROLE, _admin); _grantRole(ALLOWLIST_ROLE, _allowlister); _grant...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
signature
false
false
## Medium: The withdraw method in the Solana node doesn't increment the nonce when the withdrawal transaction fails ### Description The missing `increment nonce` in the `withdraw` method can cause the nonce to get stuck when the `withdraw` transaction fails. ### Impact When a withdrawal transaction on Solana fails, t...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
initialization
true
true
## High: Ethereum bridge’s failure to check transferFrom return values could facilitate illicit transfers ### Description The Ethereum bridge’s `sendERC20ToSidechain` function (figure 1.1) does not check the values returned by certain ERC20 tokens’ `token.transferFrom` function, which may return false (rather than rev...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
solodit_api
medium
Denial-Of-Service
false
true
_Submitted by oyc&#95;109, also found by 0x52, IllIllI, and pashov_ <https://github.com/jbx-protocol/juice-contracts-v2-code4rena/blob/828bf2f3e719873daa08081cfa0d0a6deaa5ace5/contracts/abstract/JBPayoutRedemptionPaymentTerminal.sol#L594> ### Impact The function `processFees()` in `JBPayoutRedemptionPaymentTerminal....
Code4rena
4
Juicebox
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
reentrancy
false
false
## Low: Reentrancy Potential in subAccounts.submitTransfers() ### Description Description The structure of the function subAccounts.submitTransfers() is especially vulnerable to reentrancy attacks. As discussed in LYRA-01, there is a reentrancy risk from the use of managerData . Even if this risk were closed, subAccou...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Edge case for totalAssets can cause divide by zero error ### Description A borrower can default, causing a decrease in `totalAssets` (`pool.tranchesAssets(index)`), without a corresponding decrease in `totalSupply`. This scenario may lead to a situation where the `totalSupply` of the vault is non-zero while `t...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
token
false
false
## Low: compliance ### Description Although a minor problem, the [`decimals`](https://github.com/fiinu/smart-contract/blob/7589b9d137bbf902e142e4f0476b06976e390bdb/FiinuCoin.sol#L184) state variable should be defined with type `uint8` to be [compliant with ERC20](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-2...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: `LybraGovernance`: Vote casters cannot change or remove vote ### Description ### Impact In `_countVote()` total votes are added and never decremented, indicationg there is no mechanism/function for users to remove vote casted. ### Recommendation Consider allowing removal of votes if `proposalState` is still ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
oracle
true
false
## High: Packet burn state not reset in `finalizeOpen()` causes failure ### Description In the `Packet.sol` contract, when a user initiates a burn with **INSTANT_OPEN_PACKET** type, an issue occurs in the execution flow that leads to transaction failures. The sequence occurs as follows: - User calls `initiateBurn()` w...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
false
false
## Low: Hard-coded pause collateral fee not appropriate for multi-chain usage ### Description **Description:** As Solidly aims to be multi-chain in the future, [hard-coding](https://github.com/SolidlyV3/v3-rewards/blob/6dfb435392ffa64652c8f88c98698756ca80cf28/contracts/RewardsDistributor.sol#L553) a pause collateral f...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
storage
true
false
## Low: Incorrect ERC-7201 storage location in Denylister ### Description The ERC-7201 storage location is calculated incorrectly, potentially causing storage collisions. The ERC-7201 Namespaced Storage Layout location is defined by ``` erc7201(id: string) = keccak256(keccak256(id) - 1) & ~0xff ``` The Denylister c...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
other
false
false
## Low: Unnecessary `onlyRegisteredOperatorNode` on `completeStakeUpdate` function ### Description `completeStakeUpdate` is calling internal function `_completeStakeUpdate` which has the same modifier applied. Currently the modifier `onlyRegisteredOperatorNode` is checked twice. ### Recommendation Consider removing `...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Number the WebAuthn verification steps to match its spec ### Description As done in `checkAuthFlags()`, comments describing verification steps can be numbered to correspond to the same numbered bullets in the WebAuthn specification. This makes it easier to reference for cross-checking. ### Recommendation Numbe...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
medium
other
true
false
## Medium: No way to recover principal if an operator is removed by Chainlink ### Description Chainlink can remove operators from the [OperatorStakingPool](https://etherscan.io/address/0xa1d76a7ca72128541e9fcacafbda3a92ef94fdc5#code). This will stop the Operator from accruing any more rewards by removing their princip...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
token
false
false
## Medium: Collect modules can fail on zero amount transfers if treasury fee is set to zero ### Description _Submitted by hyh_ Treasury fee can be zero, while collect modules do attempt to send it in such a case anyway as there is no check in place. Some ERC20 tokens do not allow zero value transfers, reverting such ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
overflow
false
false
## High: Call injection allows price corruption ### Description Dexter is vulnerable to a call injection vulnerability—anyone can manipulate the price and make a profit from the exchange. Tezos’ call order allows call injection vulnerability (see Appendix D). As a result, anyone can execute arbitrary code between the ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Wrong error message string in function createVault() ### Description Function : createVault() in Cally.sol line 169 require(dutchAuctionReserveStrike require(dutchAuctionReserveStrike < strikeOptions[dutchAuctionStartingStrikeIndex], "Reserve strike more than Starting strike"); ### Impact If the current er...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
initialization
false
false
## Medium: Governance can backdoor new Safes via malicious upgrade ### Description The SafeDeployer contract is responsible for deploying and configuring new "top-level" console accounts and sub-accounts. These are initialized via the authorized safe factory address with the authorized reference singleton (the impleme...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: Batch Fees Multiplier Cap Bypassed With Multiple Calls ### Description The aggregators who verify batches by posting zero-knowledge proofs on-chain are compensated by a fee paid by the sequencer. This fee is updated when a non-trusted aggregator verifies a batch so that it remains competitive. Depending on ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Emit events. ### Description **Description** Functions transferVaultOwner(), lowerVaultFee(), updateName(). Setters should emit events to log changes to storage variables. **Recommendation**: Add events to setter functions. Answer from client. Some events on vaults and spool were not added/removed to decrea...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: Self-XSS in dApp Browser ### Description **Update** The recommendation has been implemented. However, the specific implementation may not prevent all scripting attacks. The client would do well to consider using well-established libraries such as [DOMPurify](https://github.com/cure53/DOMPurify) and [js-xss]...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Cognitive Complexity ### Description **Severity**: Informational **Status**: Acknowledged **File**: multiple **CWE**: 1120 **Details**: Multiple functions have cognitive complexity up to 173, while the recommended value is 15. **Recommendation**: Decrease cognitive complexity to be at most 50. If a comp...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
other
true
false
## Low: Inconsistent implementation of ERC-7201 Namespaced Storage locations ### Description Regarding the implementation of Namespaced Storage locations, the EIP-7201 formula should be followed to strictly conform to the EIP specification, as is correctly done by the modified OpenZeppelin libraries in `libraries/exte...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
oracle
true
false
## Gas: [02] Use function instead of modifiers (4 instances) ### Description Deployment. Gas Saved: **115 926** Minimum Method Call. Gas Saved: **162** Average Method Call. Gas Saved: **-264** Maximum Method Call. Gas Saved: **-481** Overall gas change: **734 (2.459%)** ### src/BorrowController.sol:[17](https://g...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
true
false
## Low: The `setRouter()` Function Does Not Set `isCapExempt[r]` ### Description Owner can add routers via `setRouter()`, but the function does not mark the router as `isCapExempt`. In constructor the initial router was added to `isCapExempt` but `setRouter()` does not follow that behavior. ### Impact If the owner ad...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
initialization
true
false
## Medium: Excess ETH from `forgingFee` can get stuck in `EntityForging` under certain situations ### Description The `forgeWithListed` function contains a vulnerability in the fee checking mechanism. The line that checks the forging fee allows users to send more ETH than the required amount. Normally, users would wan...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
dos
true
false
## Medium: `SiloFacet::transferDeposit` does not verify if amount is 0, leading to full withdrawal DoS for any recipient ### Description The `SiloFacet::transferDeposit` function allows any user to transfer their deposit to another user. However, the function does not check the amount being transfered. Worse still, if...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Add to `_blacklist function_` ### Description Cryptocurrency mixing service, Tornado Cash, has been blacklisted in the OFAC. A lot of blockchain companies, token projects, NFT Projects have `blacklisted` all Ethereum addresses owned by Tornado Cash listed in the US Treasury Department's sanction against the pr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
reentrancy
false
false
## Medium: Fee on transfer token not supported ### Description If you are making a Lock fund for escrow using a fee on transfer token then contract will receive less amount (X-fees) but will record full amount (X). This becomes a problem as when claim is made then call will fail due to lack of funds. Worse, one user w...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
token
false
false
## High: [introduced with the first round of fixes] Stray tokens can be locked in ArroToken contract. ### Description The [`transferAnyERC20Token` function](https://github.com/pjsimpkins/ArroERC20Code/commit/624571234909c8353ed4af3958ac8a2ccd67b0e2#diff-38fb6a3b33704daa511018d2a39a5078d8a2e5676af51be449604b33f8331de3R...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
token
true
false
## High: Inconsistent Handler Validation Behavior in Cairo ERC20Handler's Cross-Chain Callback ### Description ### Impact The `receive_cross_chain_callback` function in the Cairo implementation of ERC20Handler uses an assert statement to validate handlers, which causes the function to revert if a handler is invalid o...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: tbtc - Where possible, use constant rather than state variables ✓ Addressed ### Description `TBTCSystem` uses a state variable for `pausedDuration`, but this value is never changed. **tbtc/implementation/contracts/system/TBTCSystem.sol:L34** ``` uint256 pausedDuration = 10 days; ``` ### Recommendation Is...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Lack of `DAO` token address check ### Description The `DAO` token address can be set only during deployment. In case the `DAO` address immutable is zero the contract will be useless.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: If Across Bridging fails, all funds intended for bridging will become locked ### Description If the Across bridging process fails, funds intended for bridging become locked in the Rebalancer contract, making them inaccessible. ### Impact Funds become completely locked inside the Rebalancer contract and are...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
initialization
true
false
## Medium: Wrong initial TwoCurve liquidity computation ### Description When adding initial liquidity to the TwoCurveCryptoNG pool, the conversion in `ZapMathLib.computeSharesToTwoCrypto` tries to split the total shares into `sharesToPool` and `sharesToPt` that are turned into PT according to the initial pool price. H...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Inaccurate version pragma. ### Description **Severity**: Informational **Status**: Resolved **Description** `pragma solidity ^0.8.0;` is used in contract. The contract should be deployed with the same compiler version and options with which it has been most tested. Locking the pragma version helps ensure t...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: Orderers will lose their Beans after migration to L2 ### Description Current version of Beanstalk deployed on Mainnet has following logic of order creation in Market: Order on Market means that order creator wants to buy Pod for Beans. During creation Market transfers Beans from orderer to Beanstalk. Probl...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: Long and complex function ### Description The [exported anonymous function of `make-release.ts`](https://github.com/celo-org/celo-monorepo/blob/0e876e5cad0e93f5dd1fff853f4be3c9a0e5c2a7/packages/protocol/scripts/truffle/make-release.ts#L124) is too long and complex. This function spans around 100 lines and has ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
liquidation
false
false
## Low: Collateral With No Value Can Be Claimed Through Liquidation ### Description The [`liquidate`](https://github.com/euler-xyz/euler-vault-kit/blob/83ea1ad97b7c561d6601b220d23ec85d67ceb297/src/EVault/modules/Liquidation.sol#L47-L58) function allows for the [claiming of collateral](https://github.com/euler-xyz/eule...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
token
true
false
## Medium: The protocol does not compatible with token such as USDT because of the Approval Face Protection ### Description The protocol does not compatible with token such as USDT because of the Approval Face Protection ### Impact second and following repay borrow will revert if the ERC20 token is subject to approva...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
reentrancy
false
false
## Low: Use `ReentrancyGuardTransient` for faster `nonReentrant` modifiers ### Description Use [ReentrancyGuardTransient](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/ReentrancyGuardTransient.sol) for faster `nonReentrant` modifiers: * `issuance/src/minter/Minter.sol`
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
initialization
true
false
## Medium: Removal of a liquidity pool on `AgentToken::removeLiquidityPool` still incurs taxes on swaps ### Description ### Finding description The `AgentToken.sol` contract uses tax mechanism whenever swaps take place for the added liquidity pools, which can be observed in the transfer functions. The liquidity poo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
false
false
## Gas: State variables can be marked as immutable ### Description The `AxelarImplementation::gateway` and `LayerzeroV2Implementation::endpoint` state variables can only be set once by the protocol admin. As the values of these variables are known at the time of contract deployment, they can be made immutable. ### Re...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
cross-chain
false
false
## Low: transferTrancheTokens() allows sending to non existing chains ### Description The `transferTrancheTokens()` function does not check the `destinationId` (chainId). As a result, the tokens could end up on a non-existing chain and be lost. Several other bridge-based protocols perform checks for allowed destinatio...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
true
false
## Gas: Inline small `private` functions only called once ### Description **Description:** `StandardToken::_updateName` and `_updateSymbol` are very small `private` functions that are only ever called once by `updateNameAndSymbol`. Hence it is more gas efficient to inline them; here is an implementation that also ca...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
true
false
## High: Missing Activation Epoch Check in Join ### Description ## Vulnerability in StakedWal Joining Protocol When joining a `StakedWal`, it must have the same `node_id`, `activation_epoch`, and `state`. However, for a `StakedWal` in the withdrawal state, only the `withdraw_epoch` is checked, while the activation ep...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
cross-chain
true
false
## Medium: Griefing XMsg Execution With Return Bombs ### Description It is possible to grief a relayer by making them spend a lot of gas to process return data from an XCall, such that it is no longer profitable for them to execute these XMsgs. The `_exec(XTypes.Msg)` function checks if the return data from the XCall i...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: [02] Redundancy in code comments ### Description In IdentityStaking.sol, there are 2 cases of code comment redundancy. In `communityStake()` and `extendCommunityStake()`, change `12-104 weeks and 104 weeks` into `12-104 weeks`. **Instance 1** https://github.com/code-423n4/2024-03-gitcoin/blob/6529b351cd72...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
liquidation
false
false
## Medium: Extension logic incorrectly extends the auction by an additional amount of existing duration ### Description Incorrect auction extension logic extends the auction by an additional amount of the previous duration instead of extending it by 15 minutes. ### Impact Delayed payout of funds/collateral upon aucti...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
true
false
## Low: Confusing Function Naming in `_checkTradeType` Function ### Description **Severity**: Informational **Status**: Resolved **Location**: Trading.sol In the smart contract, there exists a function named `_checkTradeType` with a misleading name that obscures its intended functionality. Despite its name suggesti...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: INABILITY TO CLOSE UNNEEDED ACCOUNTS ### Description The program lacks functionality to close unnecessary `PositionInfo` and `UserInfo` accounts, resulting in rent lamports being permanently locked. ### Recommendation To address this issue, it is recommended to close the unneeded accounts and sent the rent ba...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: User Can Vote Even When They Have 0 Locked Mento (Edge Case) ### Description There exists an edge case where the user will be withdrawing his entire locked MENTO amount and even then will be able to vote , this is depicted by a PoC to make things clearer. ### Impact User still able to vote even when the en...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Multiple calls to the same field ### Description **Severity**: Informational **Status**: Resolved **File**: lending/programs/water/src/lib.rs: (numerous places) **Description** We identified that through the entire code, there are innumerable places when the same field is accessed multiple times (i.e., ctx...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
true
false
## High: Some offers can't be cancelled ### Description A normal user can't cancel their offer when using a specific API. ### Proof of Concept 1. The function [`offer`](https://github.com/code-423n4/2023-04-rubicon/blob/main/contracts/RubiconMarket.sol#L511) of `SimpleMarket` is not overridden by the `RubiconMarket...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Kodiac Island pause mechanism can lock funds ### Description The [Kodiac Island contract](https://berascan.com/address/0x4a254B11810B8EBb63C5468E438FC561Cb1bB1da#code) has a pause mechanism that disables the `mint()` and `burn()` functions, as well as a `restrictedMint` parameter that restricts minting capabil...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: Inadequate Test Suite and Documentation ### Description **Update** Mitigated. Comments will be stripped from the code and technical documentation will not be made public to make forking the codebase more difficult. The client has committed to publishing detailed end-user-facing documentation. Marked as "Fi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
initialization
true
false
## Medium: Missing Asset Type Validation ### Description ## Validation Issue in CreateSsl Within `CreateSsl`, there is a lack of validation on the `asset_type` parameter. This may result in a user creating an SSL pool with an invalid or uninitialized `asset_type`. Specifically, in `PoolRegistry`, while fetching token...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
false
false
## Gas: Optimize names to save gas ### Description Contracts most called functions could simply save gas by function ordering via Method ID. Calling a function at runtime will be cheaper if the function is positioned earlier in the order (has a relatively lower Method ID) because 22 gas are added to the cost of a func...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
token
true
false
## Low: Unnecessary redundant variable ### Description **Severity**: Informational **Status**: Resolved **Description** `ERC20DistributionNative` - In function `purchaseTokens()` the variable `inittokenbalance` is declared in order to reflect the ERC20 balance of the contract: but priorly `pool_balance` served th...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
cross-chain
true
false
## High: `CoreRouter.sol`’s `repayBorrowInternal` incorrectly updates `same chain` borrow balances on `cross chain` repayments ### Description When a user repays a cross-chain debt (`_isSameChain == false`), `CoreRouter.repayBorrowInternal` still executes the block labeled `// Update same-chain borrow balances.` As a ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
liquidation
true
false
## High: `COLLATERAL_THRESHOLD` should be set to `125%` instead of `120%`. ### Description The price of `BondToken` depends on whether the `collateralLevel` is above or below `120%`. - If `collateralLevel 120%`: The price of `BondToken` is set to 100. As you can see, when the `collateralLevel` moves from below t...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
oracle
true
false
## Medium: Usage of deprecated ChainLink API in `Buoy3Pool` ### Description _Submitted by cmichel, also found by 0xRajeev and a_delamo_ The Chainlink API (`latestAnswer`) used in the `Buoy3Pool` oracle wrappers is deprecated: > This API is deprecated. Please see API Reference for the latest Price Feed API. [Chainlin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
token
true
false
## Low: `balanceOf` does not revert on zero address query ### Description According to the ERC721 spec and the natspec comment in the code, `VoterID#balanceOf` should revert when called with the zero address, but it does not: [`VoterID.sol#L168-L175`](https://github.com/code-423n4/2022-05-factorydao/blob/e22a562c01c5...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
true
false
## Gas: Using `storage` instead of `memory` for structs/arrays saves gas ### Description When fetching data from a storage location, assigning the data to a `memory` variable causes all fields of the struct/array to be read from storage, which incurs a Gcoldsload (**2100 gas**) for *each* field of the struct/array. If...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
storage
false
false
## Low: `DiamondProxy` License ### Description `DiamondProxy` is a fork of https://github.com/mudgen/diamond-3/blob/master/contracts/Diamond.sol, but has changed the license from MIT to CC0-1.0. While this should be no problem legally (as far as I know), there is no reason to change the license in my opinion.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
solodit_api
medium
other
false
false
## Security Report ## Severity **Medium Risk** ## Context BytesLib.sol#L23 ## Description The `concat` function does not clean the potential dirty bytes that might have been copied from `_postBytes` (nor does it clean the padding). The dirty bytes from `_postBytes` are carried over to the padding for `tempBytes`. #...
Spearbit
5
Liquid Collective
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
true
false
## Low: Not used approvals ### Description `UniswapV3PoolHelper.initializePool()` gives approvals to mint initial LP tokens. But in fact, tokens are transferred directly via `uniswapV3MintCallback()`. As a result, this initial approval was not necessary and can be removed.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: Missing Fallback Function to reject accidental Ether transfers to contract StableSwap_V2 ### Description **Severity**: Medium **Status**: Resolved **Recommendations**: Consider implementing a non-payable fallback function with appropriate logging to handle any unexpected Ether transfers to this contract ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
liquidation
true
true
## Medium: last repayments are calculated incorrectly for "irregular" loan durations ### Description When taking a loan, a borrower expects that at the end of each payment cycle they should pay `paymentCycleAmount`. This is not true for loans that are not a multiple of `paymentCycle`. ### Impact A borrower taking a l...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: changeTreasury() Lack of check and remove old ### Description changeTreasury() Lack of check and remove old ### Impact whiteListAddress abnormal ### Recommendation ```solidity function changeTreasury(uint256 _marketId, address _treasury) public onlyTimeLocker { if (_treasury == address(0)) rever...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
access-control
false
false
## Medium: Missing ISM validation in `RequestOracle.handle()` and `PushOracleReceiver.handle()` ### Description This issue has been identified within the `handle()` function of `RequestOracle` and `PushOracleReceiver` contracts. The `handle()` function only validates that the message sender is the trusted mailbox bu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: [09] `depositNative`, `withdrawNative`, `redeemNative` functions cannot be called from Router ### Description ### Finding description and impact The VaultRouter has no commands to call Vault’s `depositNative`, `withdrawNative`, and `redeemNative` functions, making these functions uncallable. ### Proof of Con...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
access-control
true
false
## Medium: Risk of Frozen Funds Due to Unauthorized Claim on Behalf of Contract in `ERC20Rewarder` ### Description **Update** The issue was resolved by the client in commit `d92957f3c8a3979be78a350adc42ce22c43443b3`. The destination address of the claim is now validated against `tx.origin`. **File(s) affected:**`ERC...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: `approveTokens` should be triggered after changing Comet Rewards and Router ### Description Changing Comet Rewards and Router without immediately triggering the `approveTokens` function could result in a revert period when `harvest` is triggered due to a lack of approval. Consider immediately calling `approveT...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
liquidation
true
false
## High: Incorrect valuation of LP tokens ### Description The Frax Protocol uses liquidity pool (LP) tokens as collateral and includes their value in the global collateralization value. In addition to the protocol’s incorrect inclusion of FRAX as collateral (see [TOB-FRSOL-024](#)), the calculation of the value pool t...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
signature
true
false
## Medium: Reorg Vulnerability in DAO Membership Creation Allows Users to Join Incorrect DAOs ### Description Due to the reliance on `MembershipFactory` address and nonce during DAO creation, reorgs on the Polygon chain could direct users to join incorrect DAOs, resulting in potential fund loss and unexpected costs. ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
token
false
false
## Low: Balance diff considerations ### Description In the `solverMetaTryCatch()` function, the `ExecutionEnvironment` tracks the difference in its bid token balance before and after the solver receives control flow. The assumption is that an increase in token balance would be due to a direct transfer from the solver....
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Improper Handling of Payable Proposals ### Description An issue has been identified in the `LegacyRecoveryPlugin`. The `LegacyRecoveryPlugin.lrPropose` and `LegacyRecoveryPlugin.lrConfirm` functions are marked as `payable`. This design was implemented for consistency, allowing voters to transfer funds to execu...
0