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
low
other
false
false
## Low: Internal Functions Should Be Prefixed With _ ### Description **Severity**: Informational **Status**: Acknowledged **Recommendation**: Internal and private functions for example handleWithdrawalIncentive and beforeFulfillRedeem which should be prefixed with an underscore (_). It is recommended that such fu...
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: Erroneous Check In Set Custodian ### Description In set_custodian, there is a condition that verifies if custodians are enabled and if the key of the authority differs from the Key of the Custodian. However, the program does not account for the situation where the authority itself is the custodian and the cust...
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: [Deployment Audit] Two Sets of Contracts Used in Parallel on Mainnet ### Description **Update** Marked as "Acknowledged" by the client. The client provided the following explanation: We will figure out a central place where users can see the currently used proxy contract address and clearly state that this 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
cross-chain
false
false
## Low: Unused function ### Description ## Code Review Summary ## Context Bridge.sol#L66 ## Description/Recommendation The functions `_encMsg()`, `addressToBytes32()`, and `addressToBytes32()` are currently unused in the codebase. If they are no longer needed, consider removing them to keep the code clean. Otherwi...
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: NatSpec improvement ### Description ## Context **File:** ISablierFlowBase.sol **Line:** 158 ## Description/Recommendation Change ETH to native tokens to avoid confusion, as the contracts may be deployed on other EVM chains. ## Status - **Sablier:** Fixed in PR 362. - **Cantina Managed:** Verified.
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: [WP-M4] Unable to use `L2GatewayRouter` to withdraw LPT from L2 to L1, as `L2LPTGateway` does not implement `L2GatewayRouter` expected method ### Description _Submitted by WatchPug_. Per the document: > The following occurs when LPT is withdrawn from L2 to L1: > The user initiates a withdrawal for X LPT...
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: `swETH::reprice` may run out of gas or become exorbitantly expensive when scaling to large number of validator operators due to iterating over them all ### Description **Description:** `swETH::reprice` [loops](https://github.com/SwellNetwork/v3-contracts-lst/tree/a95ea7942ba895ae84845ab7fec1163d667bee38/contra...
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: [09] `transferFrom` should only use allowance when `spender != from` ### Description ### Proof of Concept Take a look at https://github.com/code-423n4/2024-08-wildcat/blob/fe746cc0fbedc4447a981a50e6ba4c95f98b9fe1/src/market/WildcatMarketToken.sol#L49-L66 This function is used for the popular implementation...
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: Missing Input Validation ### Description **Update** From dev team: > The files affected listed in this issue are all unmodified Compound code. The team made the decision to not modify any of these files to avoid unnecessary risks on code that already works in production. The statement above is partially true...
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: Use stack variables rather than making repeated external calls ### Description Within `LimitOrderRegistry::withdrawNative`, calls to determine the contract balance of native/wrapped native assets are cached in [stack variables](https://github.com/crispymangoes/uniswap-v3-limit-orders/blob/83f5db9cb90926c11ee6c...
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
false
## High: No accounting for totalVoting in `Bribe.sol::withdraw` function leads to loss of Yield ### Description Report type: Smart Contract Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/Bribe.sol Impacts: - Permanent freezing of unclaimed yield ## Description ## Brief/Intro `Bribe.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
access-control
false
false
## Low: renounceOwnership implementation can block onlyOwner functions ### Description OpenZeppelin's Ownable contract implements a `renounceOwnership` function that allows the owner to set `address(0)` as the new owner. This action blocks any future assignment of ownership. Consequently, this would inhibit the follow...
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: Initial griefing attack possible ### Description **Severity** **Impact:** High, as the victim loses their funds **Likelihood:** Low, as it comes at a cost for the attacker **Description** The famous initial deposit attack is largely mitigated by the solady library. However, doing this attack can cause 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
oracle
false
false
## Low: MISSING SANITY CHECKS FOR IMPORTANT VARIABLES ### Description **Severity**: Low **Status**: Resolved **Description** There are some important variables in the `UsdOracle.sol` contract that are not checked before being set in the constructor and also in the functions used for updating their values. **Recom...
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: Registered modules have access to critical functions ### Description Registered modules have access to several critical functions, such as `addModule` / `removeModule`, `r1AddOwner` / `k1AddOwner`, `r1RemoveOwner` / `k1RemoveOwner` / `resetOwners`, `r1AddValidator` / `k1AddValidator`, and `r1RemoveValidator...
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
true
false
## High: `PortcalFacet.repayAavePortal()` can trigger an underflow of `routerBalances` ### Description _Submitted by Ruhum, also found by 0x1f8b and WatchPug_ [PortalFacet.sol#L80-L113](https://github.com/code-423n4/2022-06-connext/blob/main/contracts/contracts/core/connext/facets/PortalFacet.sol#L80-L113) The calle...
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: Checking `bool` return of ERC20 `approve` and `transfer` breaks protocol for mainnet USDT and similar tokens which don't return true ### Description **Description:** Checking `bool` return of ERC20 `approve` and `transfer` breaks protocol for mainnet USDT and similar tokens which [don't return true](https:/...
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: Skipped Transaction Processing ### Description The audit commit inadvertently removed [the `processL2Tx` function invocation](https://github.com/matter-labs/era-contracts/blob/f29f2b72f999d6b91785accfb84eafb371620214/system-contracts/bootloader/bootloader.yul#L619-L621). If deployed, the bootloader would not ...
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
dos
true
false
## Low: Restriction Of Whitelist Modification ### Description ## Whitelist Modification Implementation The current implementation of `add_addresses_to_whitelist` and `remove_addresses_from_whitelist` only prevents modifications to the whitelist during the **After** and **Finalized** stages of the IDO. However, they d...
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: Unmasked Result of Create2 Address Calculation ### Description **Update** Marked as "Fixed" by the client. Addressed in: `736822e`. **File(s) affected:**`OrangeKitSafeFactory.sol` **Description:** The `computeAddress()` function in the `OrangeKitSafeFactory` contract is borrowed from OpenZeppelin's `Create2`...
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: Add proper check when setting reserve fees ### Description If `newFee` is being set to a non-zero value, add a check to ensure that `reserveFeeRecipient` is also non-zero. Otherwise, reserve fees will be sent to the zero address (refer to `InterestImpl.sol`, line 60). The `reserveFeeRecipient` is not set in 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
low
initialization
false
false
## Low: Connected pair of parameters (depositStatus and withdrawStatus) ### Description **Description** Parameters depositStatus and withdrawStatus are set together in constructor and can be changed only together in burnContract() methods. There is no way to change them separately, and these two parameters can have 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
reentrancy
false
false
## Low: Use call instead of transfer ### Description solidity `transfer()` function is used in `disburseNative()` for native ETH transfer. The transfer and send functions forward a fixed amount of 2300 gas. Historically, it has often been recommended to use these functions for value transfers to guard against reentran...
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: Inconsistent Rewards Distribution Due Complex `updateRewards()` Architecture ### Description **File(s) affected:**`ProtocolState.sol` **Description:** Snapshotters receive rewards in the protocol by the sequencer calling the `updateRewards()` function in the `ProtocolState` contract. In the event that rewards...
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: The deadline of a signed message has no upper limit ### Description ## Context No context files were provided by the reviewer. ## Description/Recommendation To mitigate the risk of users timing their calls to `stakeWithBoost` to maximize rewards (as highlighted in finding 2), consider incorporating a signing ...
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: meta.tuneBelowCapacity param is not updated when BondBaseSDA.setIntervals is called ### Description When BondBaseSDA.setIntervals function is called then meta.tuneBelowCapacity param is not updated which has impact on price tuning. ### Impact Tuning logic will not be completed when needed. ### Recommendat...
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: Excessive use of whenNotPaused might block withdrawals ### Description The `whenNotPaused` modifier may prevent redeeming funds or completing withdrawals in the event of an emergency, especially if the pause and unpause functionalities are controlled by a timelock in the reserve managers. ### Recommendation 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
other
false
false
## Low: RPC crash due to bug in Actix websocket parser ### Description The Monad RPC can optionally be configured to accept websocket connections. It uses the `actix-http` crate to serve websocket connections. This crate contains a bug in the websocket frame parser where a malformed frame can cause the code to panic. ...
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: Unusable library ### Description MerkleProof library is not used in this contract: https://github.com/1inch/cumulative-merkle-drop/tree/96fb63d0cbfea73603e7500961c71e8ab1fb8c10/contracts/CumulativeMerkleDrop.sol#L14 ### Recommendation We recommend to remove this library from 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
other
true
false
## Medium: `allowUSDCtoVault` increases allowance by X instead of setting it to X. ### Description **Severity**: Medium **Status**: Resolved **Description** The `allowUSDCtoVault` function withing the `MMTrade.sol` smart contract is used for setting MMTrade to Trade’s allowance to an specific amount: However, 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
medium
rounding
true
false
## Medium: User receives excess rewards for allocation after distribution start ### Description The `UsualSP` contract incorrectly calculates rewards for users who receive allocations after the reward distribution has started. This results in users receiving rewards as if they had been staking since the beginning of 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
gas
other
true
false
## Gas: Use custom errors rather than `revert()`/`require()` strings to save gas ### Description Custom errors are available from solidity version 0.8.4. Custom errors save [**~50 gas**](https://gist.github.com/IllIllI000/ad1bd0d29a0101b25e57c293b4b0c746) each time they're hit by [avoiding having to allocate and store...
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: An array's length should be cached to save gas in for-loops ### Description Reading array length at each iteration of the loop consumes more gas than necessary. In the best case scenario (length read on a memory variable), caching the array length in the stack saves around 3 gas per iteration. In the worst 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
low
front-running
true
false
## Low: [02] Allowing operator to stake its vault to multiple DSSes can cause some DSSes' slashings of such vault to fail ### Description The protocol allows an operator to overleverage by staking its vault to multiple DSSes. When a malicious behavior occurs, all of these DSSes can request to slash the operator's vaul...
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: UNCHECKED KEEPER RATE ### Description The `instantiate` and `execute_update_config` functions in the **krp-staking-contracts/basset\_sei\_rewards\_dispatcher** contract do not verify that `krp_keeper_rate` is lower than 1. If it is mistakenly set to a value greater than 1, the operation of rewards dispatching ...
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
flash-loan
true
false
## Low: Remove redundant `morphoMarketId` validation checks in `_closeLoanMorphoWithShares` and `_openLoanPosition` ### Description `RockoFlashRefinance::_closeLoanMorphoWithShares` and `_openLoanPosition` contain redundant validation `morphoMarketId`. The reasons why this validation is redundant: * `RockoFlashRefina...
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: User's stake can be reduced before stakes are finalized in SDK contracts. ### Description **Description** Perpetual TokensFarmSDK.sol TokensFarmSDK.sol During the execution of the make DepositRequest() function, the value in the `totalActiveStakeAmount[user] mapping is updated. This value is used in the no...
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: `spTKNMinimalOracle.sol` counts debond fee twice, which will make the end price (spTKN per base) higher than it should be ### Description The `spTKNMinimalOracle::_calculateBasePerPTkn` will count unwrap fee twice, which will make the base per PTkn price lower than what it should be. Eventually the base per...
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: Lack of input sanitization ### Description Throughout the codebase, many contracts have an instance of the function `modifyParameters()`, which allows authorized accounts to change parameters of the protocol. For example, such functions exist [in the `CoinSavingsAccount`](https://github.com/reflexer-labs/geb/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
medium
token
false
false
## Medium: Basis points constant BPS_MAX is used as minimal fee amount requirement ### Description _Submitted by hyh, also found by cmichel_ Base fee modules require minimum fixed fee amount to be at least BPS_MAX, which is hard coded to be 10000. This turns out to be a functionality restricting requirement for some...
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
## Handle Czar102 ## Vulnerability details ## Impact Total supply of the token may exceed the `maxCap` introduced. This can happen when a user wants to join the pool. The [check in `BasketFacet::joinPool(...)`](https://github.com/code-423n4/2021-12-amun/blob/main/contracts/basket/contracts/facets/Basket/BasketFace...
Code4rena
5
Amun
[ { "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
upgrade
false
false
## Medium: `SecuritizeAmmNavProvider` missing `whenNotPaused` modifier on important state-changing functions ### Description `SecuritizeAmmNavProvider` inherits from `BaseContract` which inherits from `PausableUpgradeable`, but does not have the `whenNotPaused` modifier on important state-changing functions. ### Impa...
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
token
false
false
## Gas: Replace OZ ERC20 with solady ERC20 ### Description Solady's ERC20 implementation is more gas efficient than OZ's version. We recommend to switch to that library instead
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
Chainlink
false
true
_Submitted by 0xNineDec, also found by 0x1f8b, 0x29A, 0x52, 0xdanial, 0xDjango, 0xf15ers, bardamu, cccz, Cheeezzyyyy, Chom, codexploder, defsec, Franfran, Alex the Entreprenerd, Green, hake, hansfriese, horsefacts, hubble, hyh, IllIllI, jonatascm, kebabsec, Meera, oyc&#95;109, pashov, rbserver, Ruhum, simon135, tabish,...
Code4rena
5
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
medium
other
true
false
## Medium: Incorrect slippage handling in `swap_internal()` ### Description In the [`swap_internal()`](https://github.com/code-423n4/2024-10-superposition/blob/7ad51104a8514d46e5c3d756264564426f2927fe/pkg/seawater/src/lib.rs#L183-L186) function, the slippage check uses the `||` operator to validate the swap results. 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
true
false
## Low: Repeated Arguments Passed in validateRebalanceStableBorrowRate() ### Description The function `validateRebalanceStableBorrowRate()` takes the arguments `reserveCache`, `stableDebtToken`, `variableDebtToken`, and `aTokenAddress`. This is unnecessary as `reserveCache` contains each of the token addresses and thu...
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: MISCALCULATION OF PENDING DELTA LIQUIDITY LEADS TO AN INCORRECT HEDGE ### Description The `_getLiquidity` function in the **LiquidityPool** contract miscalculates the value of `pendingDeltaLiquidity` when **pendingDelta > freeLiquidity**. Consequently, in the aforementioned situation, the liquidity pool cann...
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: Uncalled public functions ### Description **Severity**: Informational **Status**: Resolved **Description** Public functions that are never called from within the contract should be marked as external. **Fixed**: Issue fixed in commit 4886ba3
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: Hardcoded gas in `ClFactory`'s `getSwapFee` and `getUnstakedFee` can cause issues ### Description In `getSwapFee` and `getUnstakedFee`, the gas provided to perform static calls to `unstakedFeeModule` and `swapFeeModule` is hardcoded. Consider making it configurable to avoid potential issues in the future, 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
medium
rounding
true
false
## Medium: TRST-M-4 truncation in reward calculation could cause leakage of rewards ### Description **Description:** In ComplexRewarder.sol, `updatePool()` call updates values in the specified pool. **reward** could be a fairly large number. The decimals of **reward * ACC_TOKEN_PRECISION** is 10**30, because of how ...
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: Areas of the codebase that are inconsistent with the documentation ### Description The Primitive codebase contains clear documentation and mathematical analysis denoting the intended behavior of the system. However, we identified certain areas in which the implementation does not match the white paper, includin...
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: FujiOracle - setPriceFeed should check asset and priceFeed decimals ### Description `getPriceOf()` assumes that all price feeds return prices with identical decimals, but `setPriceFeed` does not enforce this. Potential misconfigurations can have severe effects on the system’s internal accounting. ### Recommen...
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: GCC versions 9.2 through 10.2 miscompile certain memcmp calls ### Description Decrypted Sapiens asked us to evaluate the impact of an unresolved code generation bug in GCC (#95189) on the Nervos smart contracts. This bug does not currently appear to negatively affect the project but should be addressed when an...
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
false
false
## High: DepositQueue can become permanently locked ### Description When users attempt to join the [`STETHVault`](https://github.com/pods-finance/yield-contracts/blob/9389ab46e9ecdd1ea1fd7228c9d9c6821c00f057/contracts/vaults/STETHVault.sol), they first join a [`DepositQueue`](https://github.com/pods-finance/yield-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
low
initialization
false
false
## Low: Constants instead of magic numbers ### Description It is best practice to use constant variables rather than literal values to make the code easier to understand and maintain. ### Proof of Concept Instances include: #### InfinityExchange.sol [20000](https://github.com/code-423n4/2022-06-infinity/blob/76537...
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
dos
true
false
## Low: TRST-L-3 Relayer can choose amount of gas for delivery of message ### Description **Description:** LSP6 supports relaying of calls using a supplied signature. The encoded message is defined as: The message doesn't include a gas parameter, which means the relayer can specify any gas amount. If the provided 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
gas
other
true
false
## Gas: [G‑13] 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/90f55a9ce4e...
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: StUSR Transfers Less Than Expected ### Description * https://github.com/resolv-im/resolv-contracts/blob/a36e73c4be0b5f233de6bfc8d2c276136bf67573/contracts/ERC20RebasingUpgradeable.sol#L135 StUSR, when transferring, converts the underlying amount into shares with a rounding error in favor of the sender (i.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: Handle Watcher Message Properly ### Description ## Current Watcher Implementation Issue The current watcher implementation is directly checking marshalled return messages for an "error" string to decide whether an error occurred. **Location:** `node/pkg/watchers/sui/watcher.go` Successful messages that 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
high
oracle
false
false
## High: Failure To Include Offset Value In Signature Verification ### Description ## Security Advisory ## Issue Description In the `PullFeedSubmitResponseV2` and `PullFeedSubmitResponse` instructions, the offset field is not verified in the oracle signature verification. Since the offset is controlled by the user 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
medium
other
false
false
## Medium: `AdaptiveIRM#_curve` multiples instead of dividing leading to "V" shaped curve instead of expected "L" shaped curve ### Description **Details** [AdaptiveIRM.sol#L110-L115](https://github.com/hyperstable/contracts/blob/35db5f2d3c8c1adac30758357fbbcfe55f0144a3/src/libraries/AdaptiveIRM.sol#L110-L115) 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
high
cross-chain
false
false
## High: An attacker can lock operator out of the pod by setting gas limit that's higher than the block gas limit of dest chain ### Description [HolographOperator.sol#L415](https://github.com/code-423n4/2022-10-holograph/blob/f8c2eae866280a1acfdc8a8352401ed031be1373/contracts/HolographOperator.sol#L415) When a beamin...
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: Add parameter to Event-Emit ### Description Some event-emit description has no parameter. Add to parameter for front-end website or client app, they can see that something has happened on the blockchain. Events with no old value;
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: Unhandled return value of `transferFrom` in `timeLockERC20()` could lead to fund loss for recipients ### Description _Submitted by 0xRajeev, also found by Sherlock, pauliax, shw, and JMukesh_ ERC20 implementations are not always consistent. Some implementations of `transfer` and `transferFrom` could return...
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: `TokenHandler.safeTransferIn` does not work on non-standard compliant tokens like USDT ### Description _Submitted by cmichel_ The `TokenHandler.safeTransferIn` function uses the standard `IERC20` function for the transfer call and proceeds with a `checkReturnCode` function to handle non-standard compliant 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...
skyward_49k
low
access-control
false
false
## Low: Consider using 2 step update for owner and admin ### Description Single-step change of owner or admin poses a security risk. This approach is not recommended, as if an incorrect address is mistakenly set by the owner, it would render the owner and admin specific features inaccessible. ### Recommendation Consi...
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: Extract or use named constants ### Description The Seaport codebase has done an impressive job avoiding "magic numbers" and using named constants, which makes inline assembly much easier to read, understand, and verify. However, there are a few remaining numbers that could be replaced with more readable named ...
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: Large multiples of ten should use scientific notation (e.g. `1e6`) rather than decimal literals (e.g. `1000000`), for readability ### Description *There are 2 instances of this issue:* https://github.com/code-423n4/2022-05-backd/blob/2a5664d35cde5b036074edef3c1369b984d10010/protocol/contracts/utils/CvxMintAmo...
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: Wrong calculation of `erc20Delta` and `ethDelta` ### Description _Submitted by WatchPug, also found by harleythedog_ [`Swap.sol` L200-L225](https://github.com/code-423n4/2021-10-tally/blob/c585c214edb58486e0564cb53d87e4831959c08b/contracts/swap/Swap.sol#L200-L225) When a user tries to swap unwrapped ETH 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...
skyward_49k
low
other
false
false
## Low: Missing event when is certificate is verified ### Description `mapping(bytes32 => bytes) public verified;` In `CertManager`, when a new certificate hash is added, it doesn't emit an event, so there is no way to track and observe offchain. ### Recommendation Emit an event with the certificate hash and other ne...
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
initialization
true
false
## Gas: Uniswap pair token order detection can be simplified ### Description The Flapper UniV2 contracts check if `dai` is the first token by using: ```solidity daiFirst = pair.token0() == dai; ``` ### Recommendation As both tokens are known in the constructor (token pair verification is performed in the deployment sc...
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: Missing Verification ### Description ## Issue with remove_stop Function The `remove_stop` function fails to verify the `next_stop` field before removing a stop, enabling users to remove stops. The issue arises if the rider attempts to remove a stop that has yet to be reached, which may result in inconsistenci...
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: Fallback logic fails to choose fresher oracle ### Description _Resolved_ When the primary oracle is unhealthy, the contract checks the fallback oracle. If fallback is also unhealthy → the contract returns the primary oracle data, even if fallback is less stale. System may return older or more inaccurate data...
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
front-running
true
true
## Low: User can frontrun operator slashing/update rewards by withdrawing from the pool ### Description When an operator is slashed a part of their staked principal is removed and transferred to the slasher. This will happen to all the slashable operators configured in the Chainlink [`PriceFeedAlertsController`](https...
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: Typos, grammatical errors, redundancies and complexity in NatSpec docs and comments ### Description There are multiple problems in the NatSpec docs and comments of the `LizardLounge` contract: - The `IUSDC` file has this `// Unit testing for the LizardLounge Contract` comment, which implies interface is only ...
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
reentrancy
false
false
## Severity: Medium Risk ## Context - `Divider.sol` Lines: 183-231, 279-313 ## Situation The functions `issue()` in `Divider.sol` (Lines 183-231) and `redeemZero()` in `Divider.sol` have extra checks when the flags `level.issueRestricted()` or `level.redeemZeroRestricted()` are set. In that case, the function can onl...
Spearbit
4
Sense
[ { "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: Unsafe ERC20 methods ### Description Using unsafe ERC20 methods can revert the transaction for certain tokens. ### Impact The contract will malfunction for certain tokens. ### Recommendation Consider using `SafeERC20` for `transferFrom`, `transfer` and `approve`.
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: CollateralToken 'stokenURI uses the underlying assets's tokenURI ### Description Since the CollateralToken positions can be sold on secondary markets like OpenSea, the `tokenURI` endpoint should be customized to avoid misleading users. It should contain information relating to the CollateralToken and not just ...
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
access-control
true
false
## Gas: Unnecessary custom bitwise negation function ### Description The `AllocatorRoles._bitNot` function behaves identically to the NOT opcode available in Solidity, which is represented by the `~` sign. Therefore, this function is unnecessary and incurs additional costs. ```solidity function _bitNot(bytes32 input)...
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: [01] Improve security posture of `_delegatedAddress` in `FighterFarm.sol` ### Description The `_delegatedAddress` field represents the backend's address, responsible for signing various messages related to `claimFighters` . There are two issues with it, which increase the risk for the protocol. 1. `_delegate...
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: Precision Issue In Health Factor Calculation ### Description All healthy positions can be liquidated due to precision issues in calculating `userData.healthFactor`. Inside `liquidationCall()`, the function expects `userData.healthFactor` to be expressed in 18 decimals: ```solidity if (userData.healthFactor >...
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 an interface instead of an abstract contract ### Description **Description** For now MGDcontract.sol has no functional value as an abstract contract. Consider usage of the interface. Such a move will save gas and decrease the contract size. **Recommendation**: Use an interface instead of an abstract 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
gas
liquidation
true
false
## Gas: Remove boolean condition that will always be `false` from `LiquidationBranch::liquidateAccounts` ### Description **Description:** Consider this section of code from `LiquidationBranch::liquidateAccounts`: When determining what to use for input variable `pnlUsdX18`, it checks if `ctx.marginBalanceUsdX18 > req...
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: Non-Descriptive Underflow Revert on `mintedAmount` Subtraction ### Description The `L2WormholeGateway` contract subtracts `amount` from `mintedAmount` without first verifying that `mintedAmount >= amount`. If `mintedAmount` is ever less than `amount` (e.g., if tokens were minted by another bridge), the subtrac...
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
false
false
## Medium: Crash Eth Oracle On Any LogicCallEvent ### Description ## Handle nascent ## Vulnerability details **Severity: Medium** **Likelihood: High** In `eth_oracle_main_loop`, `get_last_checked_block` is called. Followed by: and may hit the code path: But will panic at `from_log` here: It can/will also be 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
access-control
true
false
## Low: Bypass of the fallback role to call any function signature in AccessControlRestriction ### Description The role to call the fallback functions in the `AccessControlRestriction` contract can be bypassed to also call other functions if: 1. The target contract was compiled with solc `<=0.4.17` 2. The function si...
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: Withdrawal Mechanism Fails When Share Price Declines ### Description The vulnerability manifests in the withdrawal flow between `initiateWithdrawal()` and `withdraw()`. When a user initiates withdrawal, the contract records the share amount and equivalent asset value at that time. However, if the share pric...
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: Challenges can be frontrun with de-leveraging to cause lossses for challengers ### Description Challenges, once created, cannot be closed. Thus once a challenge is created, the challenger has already transferred in a collateral amount and is thus open for losing their collateral to a bidding war which will mo...
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: Operator: missing check for configParmas\[0] (cushionFactor) in the constructor ### Description * * The `Operator::constructor` does not check the condition of the `cushionFactor`. Below is the condition for the `cushionFactor` checked in the `Operator::setCushionFactor`.
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: [20] Credentials would no longer be grant-able after a while ### Description ### Proof of Concept Take a look at https://github.com/code-423n4/2024-08-wildcat/blob/fe746cc0fbedc4447a981a50e6ba4c95f98b9fe1/src/types/RoleProvider.sol#L37-L42 This function helps calculate the expiry for a credential granted at...
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
true
true
## Low: Token transfer hooks should be invoked at the end of execution to prevent the hooklet executing over intermediate state ### Description `ERC20Referrer::transfer` invokes the `_afterTokenTransfer()` hook before the unlocker callback (assuming the recipient is locked): ```solidity function transfer(address 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...
skyward_49k
low
other
true
false
## Low: Lack of error handling in Terminal’s post-insert hooks ### Description The Terminal allows users to register post-insert hooks that will be executed when a unit is added to the DAG (Figure 5.1). The handler type does not include a means of dealing with a failure, and the program will continue regardless of 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...
solodit_api
high
Deposit/Reward tokens
false
true
## Handle leastwood ## Vulnerability details ## Impact `ConvexYieldWrapper.sol` is a wrapper contract for staking convex tokens on the user's behalf, allowing them to earn rewards on their deposit. Users will interact with the `Ladle.sol` contract's `batch()` function which: - Approves Ladle to move the tokens. - ...
Code4rena
3
Yield
[ { "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: Inconsistent handling of uninitialized auction data ### Description In the `getPrices` function of the **BeraAuctionHouse** contract, there is a contradictory logic when dealing with uninitialized settlement data. Specifically, if `settlementState.blockTimestamp == 0`, the function reverts with a `MissingSettl...
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
logic
true
false
## High: Incorrect Shares Calculation Due to Shadowed Variable ### Description In the `StakingVault` contract, there's a variable shadowing issue in the `_deposit` function that leads to incorrect calculation of shares. The `daysSinceLastDeposit` variable is declared twice, with the inner declaration shadowing the out...
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
false
false
## High: First pool depositor can be front-run and have part of their deposit stolen ### Description The first deposit with a `totalSupply` of zero shares will mint shares equal to the deposited amount. This makes it possible to deposit the smallest unit of a token and profit off a rounding issue in the computation fo...
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: Remove unused constants before production launch ### Description Some variables are declared and either not used or are for test purposes only. These variables can be removed from the code. ### Recommendation The recommendation is to remove unused/test constants before the production launch.
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: Missing events for access control role changes ### Description _Resolved_ The USG contract lacks event emissions for access control role modifications. Four setter functions (`setIsMinter, setIsBurner, setIsIRProducer, and setIsPegKeeper`) update important permission mappings without emitting events, making 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
medium
initialization
true
false
## Medium: Vault creator can prevent users from claiming staking rewards ### Description Vault creator can prevent users from claiming rewards from the staking contract. This can boost his liquidity and lure depositors to stake vault tokens. He can present a high APY and low fee percentage which will incentivize stake...
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: auth only works well with external functions ### Description The auth modifier of `AccessControl.sol` doesn't work as you would expect. It checks if you are authorized for `msg.sig`. However, `msg.sig` is the signature of the first function you have called (not the current function). So, if you call functio...
0