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
medium
flash-loan
true
false
## Medium: Incorrect checking in `receiveFlashLoan` can cause `swapETHForYt` to fail unexpectedly. ### Description The following checking in `receiveFlashLoad` is incorrect, causing `swapETHForYt` to fail. ```solidity File: metapool-router/src/MetapoolRouter.sol 333: if (repayAmount > remaining) revert Errors.Metapo...
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
DOS
false
true
`JBTiered721DelegateStore.recordMintBestAvailableTier` potentially iterates over all tiers to find the one with the highest contribution floor that is lower than `_amount`. When there are many tiers, this loop can always run out of gas, which will cause some transactions (the ones that have a high `_leftoverAmount` wi...
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
access-control
false
false
## Low: Lack of Specification and Test Suite ### Description **File(s) affected:**`ShootERC20.sol` **Description:** Although the `ShootERC20` is a typical ERC-20 token with an additional self-burning feature, it is still recommended to document the use cases of the ERC-20 token, either in the code comments or on a pu...
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: opJUMP /opJUMPI reading position out of code bounds ### Description The check for jump destination being within code bounds is done as `bytecodeLength < jumpDst`. In case `dst == bytecodeLength`, it proceeds to fetch bytecode at position `code[bytecodeLength]`. ### Recommendation Check `dst < bytecodeLength`...
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
flash-loan
false
false
## High: A detached reward distributor can be drained ### Description If admin decided to change the current reward distribution logic and set new one by using the [`_setRewardDistributor()`](https://github.com/dforce-network/LendingContracts/blob/6f3a7b6946d8226b38e7f0d67a50e68a28fe5165/contracts/Controller.sol#L548)...
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: `size > 0` check not required in function getMax() ### Description The check `size > 0` is already implemented in the function topVotedPieceId() [here](https://github.com/code-423n4/2023-12-revolutionprotocol/blob/d42cc62b873a1b2b44f57310f9d4bbfdd875e8d6/packages/revolution/src/CultureIndex.sol#L487) (which 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...
cyfrin_structured
low
token
true
false
## Low: Consolidate `REWARD_DURATION` used in four contracts into one shared constant ### Description Consolidate `REWARD_DURATION` used in four contracts into one shared constant: ```solidity core/StabilityPool.sol 26: uint256 constant REWARD_DURATION = 1 weeks; 399: rewardRate = SafeCast.toUint128(...
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: Incorrect contracts used ### Description **Description** Some contracts inherit upgradeable contracts from OpenZeppelin contracts-upgradeable. So it should use all utility contracts from the upgradeable set. For now incorrect contracts from the “vanilla” set are used in a mixed case with upgradeable ones. Su...
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
integer-overflow
false
false
## Low: Lack of validation for `A` in `GeoEmaAndCumSmaPump::constructor` ### Description In the `GeoEmaAndCumSmaPump::constructor`, the EMA parameter ($\alpha$) `A` is initialized to `_A`. This parameter is supposed to be less than 1 otherwise `GeoEmaAndCumSmaPump::update` will revert due to underflow. ### Impact Giv...
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: ReaperVaultERC4626 is not EIP-4626 compliant and integrations can result in loss of funds ### Description ## Lines of code https://github.com/code-423n4/2023-02-ethos/blob/main/Ethos-Vault/contracts/ReaperVaultV2.sol#L368-L408 ## Vulnerability details ## Impact Contracts that integrate with the `ReaperV...
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: Non whitelisted caller can queue withdrawal ### Description There will be several StakingManager contracts in the system as some of them will be deployed for institutions. Only whitelisted addresses should be allowed to stake and withdraw from the institution's Staking-Manager. It's possible to configure wh...
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
Account Abstraction
false
true
[contracts/smart-contract-wallet/paymasters/verifying/singleton/VerifyingSingletonPaymaster.sol#L97-L111](https://github.com/code-423n4/2023-01-biconomy/blob/53c8c3823175aeb26dee5529eeefa81240a406ba/scw-contracts/contracts/smart-contract-wallet/paymasters/verifying/singleton/VerifyingSingletonPaymaster.sol#L97-L111) ...
Code4rena
5
Biconomy
[ { "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: Safety checks ### Description The constructor and setter functions lack some important safety checks. For example, it is important to make sure vestingEntryStartTime < vestingEntryEndTime, at all times. Also, the DAO multisig address should be verified to not be zero. **Mitigation review:** Additional safet...
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
true
true
## Medium: moveOut() can be exploited using reentrancy for tokens with callbacks ### Description `TokenFlow.moveOut()` calculates the amount of tokens transferred to the payer by taking the difference between the payer's balance before and after the transfer: ```solidity function moveOut(address token, uint128 amount...
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: Error Code Conflict ### Description ## Issue Description In `momentum_safe.move`, `EMSAFE_TX_SEQUENCE_NUMBER_INVALID` and `EMSAFE_TX_SENDER_INVALID` have the same value. ## Remediation Change the value of one of the error codes. ## Diff ## Patch Fixed in `921ad74` ### Recommendation Change the value 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
oracle
true
false
## Low: Incorrect oracle fee refund in `closeTradeMarketTimeout()` ### Description _Acknowledged_ In `closeTradeMarketTimeout()`, the contract refunds the current `oracleFee` to the user. However, the oracle fee may have changed since the original trade was opened. This means the user could receive more or less than ...
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: Incorrect price used when updating the global position data ### Description Incorrect price used when updating the global position data leading to a loss of assets for LPs. ### Impact Loss of assets for the LP as mentioned in the above section. ### Recommendation Use the current price instead of liquidated ...
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
rounding
false
false
## High: Refund Calculation Uses Stale Share-Mint Total ### Description **Update** Marked as "Fixed" by the client. Addressed in: `9ac820a185586306aba2c49c67fe2ce7b243aa27`. **File(s) affected:**`programs/ntbundle/src/instructions/refund_deposit.rs` **Description:** The `refund_deposit()` function calculates `shares...
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: Accounts blocked by the token cannot claim their fees ### Description **Description:** In `SolidlyV2`, liquidity providers accrue fees from trades made in the pool. These fees are bound to the account holding the liquidity position at the time of trading as the fees are synced on transfers. When the liquidity...
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: Incorrect inflator arithmetic in view functions ### Description The return values of the `loansInfo` method in the `Pool` contract include a `maxThresholdPrice` that has already been multiplied by the value of `inflator`. ```solidity function loansInfo() external view override returns (address, uint256, uint25...
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
dos
true
false
## High: Whitelisted accounts can be forcefully DoSed from buying `curveTokens` during the presale ### Description Whitelisted accounts can be DoSed from buying `curveTokens` during the presale by a malicious party, as a result, the user who owns the whitelisted account will be forced to miss the presale and it will 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
access-control
false
false
## Low: Proxy initialization may be front-run to compromise protocol ### Description ## Security Context **Context:** `AttestationIndexer.s.sol#L21`, `StaticAttester.s.sol#L17` **Description:** Proxy initialization may be susceptible to front-running if transactions are not bundled for atomic execution during de...
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: `Project.addTasks()` wouldn't work properly when it's called from disputes contract. ### Description _Submitted by hansfriese, also found by Lambda_ [Project.sol#L238](https://github.com/code-423n4/2022-08-rigor/blob/5ab7ea84a1516cb726421ef690af5bc41029f88f/contracts/Project.sol#L238) `addTasks()` 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...
skyward_49k
high
token
true
false
## High: Gauge Rewards Stuck In `VoterProxy` Contract When `ExtraRewardStashV3` Is Used Within Angle Deployment ### Description _Submitted by xiaoming90_ > Note: This report aims to discuss the issue encountered when `ExtraRewardStashV3` is used within Angle Deployment. There is also another issue when `ExtraRewardSt...
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: Code Maturity ### Description ## Potential Overflow in TokenInfoV1::get_token_price Function There is a potential for overflow in the `TokenInfoV1::get_token_price` function due to the limitations of the `u64` data type. This function calculates the token price using a formula that factors in the current supp...
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: Unexpected `PERMIT_CODE` in `RouterV2` ### Description The `PERMIT_CODE` is assumed to always be the initial operation in the list. As a result, the `_checkTo()` method does not anticipate this code to follow and consequently returns zero. - https://github.com/eywa-protocol/eywa-clp/blob/d68ba027ff19e927d6...
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: `maxReferralEarningTime` should be within a defined threshold to avoid excessive waiting for earning ### Description **Severity**: Medium **Status**: Resolved **Description** The function `setMaxReferralEarningTime` within the `Keeper.sol` smart contract is used for setting `maxReferralEarningTime`’s va...
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: 2 variables not indexed by `marketIndex` ### Description _Submitted by gpersoon_ In the token contract: `batched_stakerNextTokenShiftIndex` is indexed by `marketIndex`, so it can have separate (or the same) values for each different `marketIndex`. `stakerTokenShiftIndex_to_longShortMarketPriceSnapshotIndex_...
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: [WP-H7] InsuranceFund#syncDeps() may cause users’ fund loss ### Description ## Lines of code https://github.com/code-423n4/2022-02-hubble/blob/ed1d885d5dbc2eae24e43c3ecbf291a0f5a52765/contracts/InsuranceFund.sol#L116-L119 ## Vulnerability details https://github.com/code-423n4/2022-02-hubble/blob/ed1d885...
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: In contract UnifarmRewardRegistryUpgradeable, function safeWithdrawAll, for a better gas optimization, you can safe the value of tokens.length in memory and iterate over the variable that is safe in memory, it will be cheaper to read from memory every time then to read fromstorage. ### Description **Recommenda...
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: It is not possible to unregister tokens if they are no longer wanted to be supported ### Description **Severity**: Medium **Status**: Resolved **Description** The `registerToken()` function within the `WrappedTokenBridge.sol` smart contract is used to register a certain pair of tokens for bridging them:...
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: Privileged Roles and Ownership ### Description **Update** The client marked the issue as "Acknowledged". **Description:** Certain contracts have state variables, e.g. `owner`, which provide certain addresses with privileged roles. Such roles may pose a risk to end-users. For a detailed list of roles per cont...
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: Owner Can Add Arbitrary Code to Be Executed From the SocketGateway Contract ### Description The Socket system is managed by the `SocketGateway` contract that maintains all routes and controller addresses within its state. There, the address with the `Owner` role of the `SocketGateway` contract can add new r...
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
false
false
## Low: Unsafe Casting of settlementTokenPrice ### Description The `payKeeper()` function performs an unsafe cast of the `settlementTokenPrice` variable. This may lead to an unlikely edge case where arithmetic underflows are not properly handled by the protocol.
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: Unlocked Pragma ### Description **Update** The client has acknowledged the issue with the following comment: "In order to allow for the possibility for these contracts to be inherited in other projects which may use future Solidity versions for compilation, we’ll keep this as is." **File(s) affected:**`src/*`...
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: Redundancy in data might cause conflict ### Description **Severity**: Low **Status**: Acknowledged **Description** SwapLibrary.sol - in all methods of the library we have swapData and fromAsset. fromAsset is actually part of swapData's path variable. Passing conflicting data (i.e. different fromAsset and pa...
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: addOwner() can only add 255 owners ### Description The `addOwner()` function's Natspec states: ```solidity /// @dev convenience function that can be used to add the first /// 256 owners. ``` However, `addOwner()` can only add 255 owners. When `ownerIndex` is `i`, this indicates that the first `i` owners have 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
high
other
true
false
## High: Improper Usage Of Variable For State Updating ### Description ## Code Update in SpotEngineState Contract In the `updateStates` function of the **SpotEngineState** contract, the `quoteState` variable is used instead of the `state` variable. Updates will apply to respective states since updates are applied 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
signature
false
false
## Low: Use domain separator for message hashing ### Description Currently, the signatures can potentially be replayed on different smart contracts and different chains. This is because domain separator isn't used as specified in EIP-712. A domain separator defines the verifying contract and chain ID which is then inc...
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: Use named returns where this can eliminate in-function variable declaration ### Description **Description:** Use named returns where this can eliminate in-function variable declaration: * `yUSDeVault` : functions `totalAccruedUSDe`, `_convertAssetsToUSDe`, `previewDeposit`, `previewMint` * `pUSDeVault` : 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
medium
front-running
true
false
## Medium: Frontrunning validator freeze to withdraw tokens ### Description Covalent implements a freeze mechanism to disable malicious Validators, this allows the protocol to block all interactions with a validator when he behaves maliciously. Covalent also implements a timelock to ensure tokens are only withdraw af...
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
oracle-manipulation
false
false
## Medium: No checks for L2 Sequencer being down ### Description Neither `PriceFeed.sol` (which is designed to work with Chainlink) nor `StorkOracleWrapper` (which has been created to allow `PriceFeed` to work with Stork Oracles) implement a check to test whether the L2 Sequencer is currently down. When using Chainli...
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: Upgradability ### Description **Update** The client acknowledged the issue and provided the following explanation: > This is a design behavior. It will need to be deepened on the documentation. **File(s) affected:**`FanToArtistStaking.sol` **Description:** While upgradability is not a vulnerability in itsel...
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
access-control
true
false
## High: A malicious/compromised Registry or Factory admin can drain all the funds from the Vault contracts ### Description _Submitted by WatchPug_ The current design/implementation allows a market address (registered on the `registry`) to call `Vault#borrowValue()` and transfer tokens to an arbitrary address. ####...
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: Essential Recovery Function for Exported ERC20 Tokens in the Curves Protocol ### Description Implementing a recovery function for exported ERC20 tokens in the Curves smart contract is critical for maintaining the integrity of its ecosystem, where the ERC20 token supply must precisely mirror the value locked wi...
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
false
false
## Low: Inconsistent Risk Premium Validation in `Accounting` Allows Future Underflows or Zero APR ### Description **Description:** `Accounting::calculateRiskPremium` computes `risk = riskX + riskY * pow(tvlRatio, riskK)`. `Accounting::setRiskParameters` checks that `risk = 1e18`. In `Accounting::updateIndexes`, the e...
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: Missing Validation Logic ### Description ## Validation Logic Implementation 1. Implement a validation logic to verify that the sum of all vesting schedules adds up to the expected amount to be distributed. 2. Validate whether an asset already exists before attempting to register it again in `register_asset`. ...
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
false
false
## Medium: ZETA coin type outbound CCTXs can be sent to unsupported external chains, which results in a DoS of the outbound queue ### Description Checking whether an external chain supports ZETA by checking if the `zeta_token_contract_address` is set to the empty string (`""`) is ineffective, as the actual value is se...
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
front-running
false
false
## Low: Incomplete token simulation in CronV1Pool due to missing queryJoin and queryExit functions ### Description The CronV1Pool contract is missing the `queryJoin` and `queryExit` functions, which are significant for calculating `maxAmountsIn` and/or `minBptOut` on pool joins, and `minAmountsOut` and/or `maxBptIn` 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: `claimVotingRewardBatch()` allows early claims, missing rewards ### Description _Resolved_ In the `Voter` contract, the `claimVotingRewardBatch()` function enables voters to claim their accumulated voting rewards from the associated `VotingReward` contracts for the gauges they have voted on: However, this 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
other
true
false
## Low: Code Optimisation ### Description ## Summary of Issues Identified 1. There is unnecessary signing and seed usage in certain `token::transfer` function calls. Specifically, in the deposit instruction, there are calls to `token::transfer` that do not require seeds or a signed invocation. 2. The `handle` functi...
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
Payable
false
false
Source: https://github.com/sherlock-audit/2023-01-ajna-judging/issues/163 ## Found by Chinmay ## Summary The buyPunk function here seems to be for transferring NFT from sender to pool, but the original contract has a payable function that uses msg.value checks ## Vulnerability Detail This seems to be a weird im...
Sherlock
4
Ajna
[ { "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: Admin can bypass the upgrade delay by `delegate` and `emergencyUpgrade` ### Description The admin can bypass the upgrade delay flow and immediately change the address of the wallet core by following the sequence: - `transferDelegation` (to a new `delegate` account, controlled by the admin) - `acceptDelegati...
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: Project contains no build instructions ### Description The Stylus repository contains information regarding the project, a roadmap, and information regarding gas pricing, but it lacks other essential information. The repository’s README should include at least the following: - Instructions for building 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
low
other
true
false
## Low: Residual claim reverts on shortage ### Description _Acknowledged_ `BobStaking::claimResidualRewards` reverts whenever `rewardTokenBalance` is lower than the user’s residual allocation, while `BobStaking::_claimRewards` already supports partial payouts in the same situation. If the pool is briefly underfunded,...
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
true
## Low: Reserved assets could be extracted from the Vault ### Description Some strategy functions can release assets without checking if those assets are part of `reservedLiquidity`. `AccountableFixedTerm._loan.drawableFunds` is not verified to be in sync with the queue `reservedLiquidity`. Hence the borrower can inad...
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 Existence Determination ### Description ## Analysis of `Exist` Function Implementation In its current implementation, `Exist` fails to consider accounts with non-zero balances as existing in the state. If an account with a non-zero balance is considered non-existent, it may result in incorrect gas ...
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
access-control
true
false
## High: Attacker can gain infinitive FLUX by repeating this attack! ### Description Report type: Smart Contract Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/Voter.sol Impacts: - Unauthorized minting of NFTs ## Description ## Brief/Intro Attacker can gain infinitive FLUX by repeating ...
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: Use of send ### Description Use of **send** is always risky and should be analyzed in detail. Two occurrences found in [line 255](https://github.com/iExecBlockchainComputing/rlc-token/blob/3d9aa99ba33bb035c59740a621b1f21cd45cbac5/contracts/Crowdsale.sol#L255) and [line 297](https://github.com/iExecBlockchainCo...
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: Unsafe `unchecked` block and potential overflow risk ### Description The use of the `unchecked` block in the code introduces a risk of overflow if the `tokensOwed0` and `tokensOwed1` values grow too large, especially when fees accumulate over a long period without being collected by the position owner. Althoug...
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: ESynth can restrict borrowers from performing common actions ### Description According to code documentation, ESynths are able to be used as collateral in other vaults, but will also be the underlying (i.e. borrowable) asset in Synthetic Vaults. Synthetic Vaults include hook contracts that disable deposit 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
medium
rounding
true
false
## Medium: Uptime loss due to integer division in `UptimeTracker::computeValidatorUptime` can make validator lose entire rewards for an epoch ### Description **Description:** `UptimeTracker::computeValidatorUptime` loses validator uptime due to integer division truncation when distributing uptime across multiple epoch...
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
Share Inflation
true
false
##### Description Each AMM tick represents an empty vault, where shares are issued for collateral. A hacker can manipulate a tick so that it contains just 1 wei share and any amount of collateral. For example, suppose the hacker initially inflates the tick so that it contains 1 wei share and 1 ETH. Next, the hacker se...
MixBytes
5
Curve Finance
[ { "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: Inefficient Payout Distribution Due to Quadratic Gas Complexity ### Description The `_distributeProportionalPayouts()` function uses nested for-loops with a linear search to find whether a player already exists in the `uniquePlayers` array. This creates **quadratic gas complexity (O(p²))** with respect to...
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
token
true
true
## Low: `FiveFiftyRule::_updateEntityAllowance` rounds in wrong direction for entity allowance subtraction ### Description Function `_updateEntityAllowance` is used to either increase/decrease the entity allowance based on where parameter `add` is `true`/`false`. When `add == false`, `adjusted_amt` is the amount to 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
gas
other
true
false
## Gas: Using `private` rather than `public` for constants, saves gas ### Description If needed, the values can be read from the verified contract source code, or if there are multiple values there can be a single getter function that [returns a tuple](https://github.com/code-423n4/2022-08-frax/blob/90f55a9ce4e25bceed...
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: Zero `curvePriceWad` from rounding causes incorrect pricing or denial of service ### Description **Description:** The curve price calculation in `SecuritizeAmmNavProvider::_curveBuy` can round to zero when reserves become imbalanced: Mathematically, this simplifies to: For `curvePriceWad` to round to ze...
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: Missing zero amount validation in token transfers in `DIAWhitelistedStaking` ### Description The `unstakePrincipal()` function in `DIAWhitelistedStaking` performs token transfers without validating that the transfer amounts are non-zero. Specifically, the transfer to the beneficiary `STAKING_TOKEN.safeTransfer...
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
false
## Medium: The Liquidity Pool will lack margin of Synthetix perpetual market, if `liquidationBufferRatio` of contract `PerpsV2MarketSettings` from Synthetix is updated ### Description The Liquidity Pool can lack the margin of PerpMarket if `liquidationBufferRatio` of contract `PerpsV2MarketSettings` from Synthetix 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
false
false
## Low: L03] Missing time requirement to challenge ### Description ###### Low In the `PolicyVotes` contract, [there are state variables that define the time intervals](https://github.com/BeamNetwork/currency/blob/51b65c5c7af455391af2bc30d13d761566d8c236/contracts/inflation/PolicyVotes.sol#L72-L84) for the different ...
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: Clone-and-Own ### Description **Update** Address.sol has been removed, and `AddressAliasHelper.sol` is now imported as a package. However, for `BytesLib`, the repository or commit used has not been specified. **Update** Addressed in: `aaceb406bf0f53576c164e2305d22c59d044a58b`. **File(s) affected:**`Address....
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
front-running
true
false
## High: updateDebtReporting can be front run, putting all the loss on later withdrawals but taking the profit ### Description updateDebtReporting takes in a **user input** of destinations in array whose debt to report, so if a destination vault is incurring loss and is not on the front of withdrawalQueue than a attac...
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: USING ++I CONSUMES LESS GAS THAN I++ IN LOOPS ### Description In the loop below, the variable `i` is incremented using `i++`. It is known that, in loops, using `++i` costs less gas per iteration than `i++`. This does not only apply to the iterator variable. It also applies to variables declared within the loop...
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: Vault Token Can Be Incorrectly Registered as Oracle Token Overwriting Exchange-Rate Checks ### Description **Update** Marked as "Fixed" by the client. Addressed in: `0fbb0f5b6ee180201e6fab70bec63de80a8d05a4`. The client provided the following explanation: > Fixed **File(s) affected:**`src/oracle/OracleRegist...
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
Rounding
false
false
Source: https://github.com/sherlock-audit/2022-10-rage-trade-judging/issues/37 ## Found by rvierdiiev, tives, peanuts, joestakey, cccz, ctf\_sec, \_\_141345\_\_, 0x52, GimelSec, clems4ever ## Summary To calculate the exchange rate for shares in DnGmxSeniorVault it divides the total supply of shares by the totalAss...
Sherlock
4
Rage Trade
[ { "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: Wrong Amount of Loan Interest is Calculated ### Description The vulnerability involves miscalculating interest rates in a lending protocol's codebase. The code mistakenly treats the `interestRate` meant for per-second calculations as if it's per-year. This results in underestimated interest due to incorrect di...
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
reentrancy
false
false
## Low: Reentrancy can be in base pool ### Description - https://github.com/ConicFinance/protocol/blob/7a66d26ef84f93059a811a189655e17c11d95f5c/contracts/CurveHandler.sol#L74 It is supposed to use `basePool` in `CurveHandler` to work with LP tokens. However, there is no read-only reentrancy check for base pools (htt...
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: Possible erroneous Transfer event in transferFrom ### Description In [`transferFrom`](https://github.com/fiinu/smart-contract/blob/7589b9d137bbf902e142e4f0476b06976e390bdb/FiinuCoin.sol#L77) it is not checked that the source account has enough balance. This is not severe because, in general, the [safe subtract...
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 should be cached in stack variables rather than re-reading them from storage ### Description The instances below point to the second+ access of a state variable within a function. Caching of a state variable replace each Gwarmaccess (**100 gas**) with a much cheaper stack read. Other less obvio...
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: `TricryptoLPStrategy.compoundAmount` always returns 0 because it's using staticall vs call ### Description [`compoundAmount`](https://github.com/Tapioca-DAO/tapioca-yieldbox-strategies-audit/blob/05ba7108a83c66dada98bc5bc75cf18004f2a49b/contracts/curve/TricryptoLPStrategy.sol#L104-L107) will always try to sel...
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: Discrepancy in EIP-2200 implementation ### Description The `WasmStateStoreCost` function, which is an adaptation of go-ethereum’s `makeGasSStoreFunc` function, introduces a discrepancy from the original code (and a deviation from the EIP-2200 specification) when performing EIP-2200’s “stipend check.” In partic...
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: Hardcoded voting and proposal thresholds ### Description Voting and proposal thresholds are hardcoded in the `initialize()` function of `GovernorCharlieDelegate`. While it is assumed the IPT total supply should not change, if it ever does (e.g. through an owner address minting additional tokens), the hardcoded...
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: Poor code management practices ### Description The changes made to the DeGate protocol for version 0.2.0 were implemented through only a few commits. Most of the changes were consolidated and introduced under a single commit, resulting in very large unorganized code diffs. A very large diff under one commit ...
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
false
false
## Low: Potential Overflows inBondingCurve ### Description The operation `totalTokensToSell**power` appears in the functions `_computePriceFromQuantity()` and `getCurrentPrice()`. The expected decimal places of `totalTokensToSell` is 18 and the initial total supply is 1,000,000,000 (1 billion). As `totalTokensToSell` ...
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: Iteration through storage array. ### Description **Description** LockedStaking.sol: getRewardsWeight(), line 362.
 Iteration through a storage array might consume more gas than allowed per transaction, thus function will always revert, preventing the protocol from correct operation. Issue is marked 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
medium
other
true
false
## Medium: Redeem function active when vault is paused ### Description The vault's deposit, mint, and withdraw functionalities are halted when it is paused. This is implemented through the `whenNotPaused` modifier in the following functions: function deposit( uint256 _amount, address _receiver ) public whenNo...
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: Insu�ficient protection of tokens during transit ### Description The QT Wallet and the wormhole server use a cryptographic scheme where data is encrypted with the shared secret key, and devices are paired on the wormhole server by a hash of a hash of the secret. Specifically, secrets are double-hashed using 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
medium
other
false
false
## Medium: Interest Rate Accumulation ### Description ## Issue with Interest Rate Accumulation The issue revolves around the improper handling of interest rate accumulation, specifically during periods when no active issuance is taking place. The protocol allows buying bonds during one issuance and redeeming them in ...
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
rounding
false
false
## Medium: Tokens with extreme price differences along the path could round price to zero ### Description In the unlikely event that the price ratio between two tokens is more than `1e18:1`, the oracle will round the price down zero. While the largest price ratio I can currently find is `BTC/SHIB` (which can be calcu...
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: Remove loop when sending actions ### Description `Hype_Module::sendAction` manually allocates and copies a 4-byte header plus payload in a loop. Use packed encoding to avoid the loop and shrink bytecode, e.g.: ```solidity bytes memory data = abi.encodePacked(bytes4(uint32(0x01000000) | uint32(actionIndex)), 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
other
false
false
## Low: Insufficient Arguments ### Description As all the hooks from the library are meant to be general-purpose template hooks, some `virtual` functions from these hooks that are meant to be overridden by inheriting contracts can benefit from having more arguments. Some examples are: * In the [`BaseDynamicFee` hook]...
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: Password stored in cleartext in session storage ### Description The Uniswap wallet browser extension stores user passwords in session storage. The password is stored in cleartext only when the wallet is unlocked and inaccessible to content scripts. Instead of storing a cleartext password, the extension could 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
low
initialization
true
false
## Low: Reasonable values for `START_TIME` and `END_TIME` ### Description There is an insufficient input check of `startTime_` and `endTime_` parameters in the contract constructor. Since the input is used for immutables it is important to check that the parameters have reasonable values. At least `startTime_` and `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
true
false
## Low: `isPaused` check can be added to the modifier `onlyQuestActive`, as it's used only on the claim function ### Description In the `claim` function a check is made to ensure the quest isn't paused. Considering the fact that the modifier `onlyQuestActive` is only used once and it's on this particular function. 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
liquidation
true
false
## Low: [04] Fee calculation in `LeverageZapRouterBase` could lead to excessive fees being charged and inaccurate CDP debt ### Description This can result in users paying higher fees than intended and having their CDPs reflect a higher debt than the actual eBTC received. ### Proof of Concept The problem is present ...
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
false
false
## High: Increasing reserves breaks PrizePool accounting ### Description ### Lines of code ### Impact When anyone calls the `increaseReserve` method in `PrizePool.sol` the accounted balance in the prize pool isn't properly updated. This allows a vault to effectively steal the prize token contribution and this ...
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: Incorrect event emitted in `setUpdateWeightRunnerAddress()` function ### Description Incorrect event emitted in \`setUpdateWeightRunnerAddress()\` function. When changing the `UpdateWeightRunner.sol` address, the event should emit 2 params - old and new addresses: ```solidity event UpdateWeightRunnerAddressUp...
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
token
true
true
## Low: Small unripe token withdrawals don't decrease BDV and Stalk ### Description For any whitelisted token where `bdvCalc(amountDeposited) < amountDeposited`, a user can deposit that token and then withdraw in small amounts to avoid decreasing BDV and Stalk. This is achieved by exploiting a rounding down to zero 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
low
token
false
false
## Low: Join Events must be explicitly transfered to recipient after transfering Balancer Pool Tokens in order to realize the full value of the tokens ### Description Any user receiving LP tokens transferred to them must be explicitly transferred with a join event in order to redeem the full value of the LP tokens 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
medium
initialization
true
false
## Medium: Buying post-distribution locks funds ### Description Allowing users to purchase tokens after distribution can result in a permanent loss of funds. The `distribute` function can only be called once per user, meaning any additional purchases made afterward will leave the funds locked indefinitely, as distribu...
0