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
other
true
false
## Medium: registerAsset misuse can permanently disable TransmuterBuffer and break the system ### Description _Submitted by hyh_ TransmuterBuffer's refreshStrategies() is the only way to actualize \_yieldTokens array. The function requires registeredUnderlyings array to match current Alchemist's \_supportedUnderlying...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: DOS WITH BLOCK GAS LIMIT ### Description The `setAllocations()` function is used to set the token allocations for each recipient included in the function call: ### Recommendation \*\*SOLVED: \*\* The `Pangolin Team` solved this issue by implementing the above recommendation. The maximum number of recipients h...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
overflow
false
false
## Low: Code Maturity ### Description ## Proposal Execution and Member Management 1. **Proposal Deletion and Vote Handling**: The function `account::ExecuteProposal` calls `deleteProposalAndVotes(ctx, msg.ProposalId)`, removing the proposal and its associated votes from the collections. However, after deleting 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
gas
other
true
false
## Gas: Don't cache calls/variables if using them once ### Description ### No need to cache `lrtConfig.getContract(LRTConstants.EIGEN_STRATEGY_MANAGER)` https://github.com/code-423n4/2023-11-kelp/blob/f751d7594051c0766c7ecd1e68daeb0661e43ee3/src/NodeDelegator.sol#L38-L46 The variable `eigenlayerStrategyManagerAddre...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Properties of the transaction Object Might Be Undefined ### Description The Metamask Snaps API does not guarantee that the properties `from` and `method` of the `transaction` object are defined. Depending on the transaction type, it could happen that these properties are not defined. This would result in 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
true
false
## Medium: Total Amount Limit Can Be Bypassed During Allocations ### Description The `allocateTokens` function in the `TreasuryVesting` contract contains a vulnerability that allows operators to allocate more tokens than the category's total amount limit. This occurs because the check that's meant to enforce the categ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A single external protocol can DOS rebalancing process ### Description A failure in an external money market can DOS the entire rebalance process in Notional. ### Impact Notional would not be able to rebalance its underlying holding if one of the external money markets causes a revert. The probability 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
low
initialization
true
false
## Low: Missing validation for initialization calldata in `POLIsolationModeWrapperUpgradeableProxy` constructor ### Description **Description:** The `POLIsolationModeWrapperUpgradeableProxy` constructor accepts initialization calldata without performing any validation on its content before executing it via `delegateca...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Account may get blacklisted during the bridge process ### Description https://github.com/code-423n4/2023-09-ondo/blob/main/contracts/bridge/DestinationBridge.sol#L349 Accounts that bridge tokens may get blacklisted in the source chain after the bridging process had been initiated. This could lead to 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
oracle
true
false
## Low: No validity check on chainlinkWrapper ### Description In `_allocateValueCall()`, there is no check done that `chainlinkWrapper` is valid. ```solidity function _allocateValueCall(address bidToken, uint256 bidAmount, bytes calldata data) internal virtual override { address chainlinkWrapper = abi.decode(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
critical
access-control
true
true
## Critical: Permissionless reward distribution can be abused to cause full denial of service and loss of funds for pools ### Description The distribution of reward token incentives is a permissionless action, meaning that anyone can create a worthless token and mint a large amount to be distributed. Whenever a notifi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users can evade the `yDUSD` vault's withdrawal timelock mechanism ### Description The `yDUSD` vault's withdrawal timelock mechanism is vulnerable. An exploiter can withdraw the `DUSD` assets in their account by using another account's `proposedWithdraw` request info, breaking the vault's core invariant. ##...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 liquidity while paused ### Description The function `removeLiquidity()` in `StableSwapFacet.sol` has a `whenNotPaused` modifier, while the comment indicates that liquidity can always be removed, even when the pool is paused. Conversely, the `removeLiquidity()` function in `StableSwap.sol` lacks this mod...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [24] `outgoing_messages` could be made more efficient ### Description Take a look at [the `outgoing_messages` method in the `Client` struct](https://github.com/code-423n4/2024-08-axelar-network/blob/69c4f2c3fcefb1b8eb2129af9c3685a44ae5b6fe/axelar-amplifier/contracts/axelarnet-gateway/src/client.rs#L47-L51): ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Require New Authority as Co-Signer for Authority Transmission ### Description The current `TransferDelegateAuthority` function allows for the transfer of delegate authority without any validation or a two-step confirmation process. This lack of validation can lead to critical errors, such as mistakenly transfe...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistency between PErc20 and PEther interfaces ### Description **Severity**: Low **Status**: Acknowledged **Description** The protocol distinguishes between two types of PTokens: PErc20 and PEther. Both types implement the same functionalities but present behaviors. For instance, the mint function in t...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
cross-chain
false
false
## High: Fee calculation in _sendDeposits is done for overall msg.value instead of bridged value ### Description The **OmniXMultisender** contract implements a function `sendDeposits` to utilize Layerzero's native airdrop functionality to bridge gas tokens. To offer such a service, **OmniX** charges a flat **1% fee*...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Excessive type repetition in returned tuples ### Description Several functions return tuples that contain many fields of the same type adjacent to one another. Such a practice is error-prone, as callers could easily confuse the fields. An example appears in figure 7.1. The tuple returned by the `calculateUserA...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Rebalance will fail if a market has high utilization ### Description _Submitted by cmichel_ The `AssetManager.rebalance` function iterates through the markets and withdraws **all** tokens in the `moneyMarkets[i].withdrawAll` call. Note that in peer-to-peer lending protocols like Compound/Aave the borrower...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
oracle
true
false
Source: https://github.com/sherlock-audit/2023-01-optimism-judging/issues/75 ## Found by unforgiven, csanuragjain ## Summary All withdrawals are finalized after a 7 days window (finalization period). After this duration transaction are confirmed and user can surely withdraw their balance. But due to lack of check, ...
Sherlock
4
Optimism
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Sense PT redemptions do not allow for known loss scenarios ### Description Sense PT redemptions do not allow for known loss scenarios, which will lead to principal losses ### Impact _Permanent freezing of funds_ There may be a malicious series sponsor that purposely triggers a loss, either by DOSing Lido ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Possibility to use incorrect mint to claim tokens ### Description The `claimSolana` and `claimEvm` instructions enable users to claim their tokens based on their point score. Although unlikely, it is possible to invoke both claim instructions with an incorrect mint account and the corresponding treasury and 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
medium
reentrancy
false
false
## Medium: Ethereum reimbursements sent to an incorrect address ### Description #### Resolution Remediated as per the 1inch team as of [1inch/[email protected]`6b1a3df`](https://github.com/1inch/solidity-utils/commit/6b1a3dfbe5410b37fa9d3558b606990d9fb32e43) by adding the correct recipient of the refund. 1inch tea...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
overflow
true
false
## Medium: CreditDelegationBranch Rebalancing Underflows When Debt Exceeds USDC Balance ### Description The CreditDelegationBranch's rebalancing mechanism can underflow when attempting to settle debt that exceeds a vault's USDC balance, leading to potential vault corruption or system-wide issues. ### Impact * Vault s...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
initialization
false
false
## High: C03] Inflation parameters are miscalculated ### Description ###### Critical The [`computeVote`](https://github.com/BeamNetwork/currency/blob/51b65c5c7af455391af2bc30d13d761566d8c236/contracts/inflation/CurrencyGovernance.sol#L226) [function](https://github.com/BeamNetwork/currency/blob/51b65c5c7af455391af2b...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Risk of DoS when stoping large rental orders due to block gas limit ### Description When an order is created on Opensea the `Create::validateOrder()` policy method is used to ensure the order is configured correctly. Currently there is no maximum limit to the number of `offers` in the input `ZoneParameters`...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unreachable Code ### Description ## Robust Value Documentation The `robust_value` function should always return a value. However, entering the `unreachable!()` code in this function is possible due to a potential overflow in `total += s` or by passing empty items. ## Code Snippet ## Remediation Remove `ro...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Events for Function Calls ### Description Consider to add events for critical state-changing functions to improve traceability and debugging. ``` /** * @notice Sets the recipient address for protocol fees. * @dev Can only be called by the contract owner. * @param feeRecipient_ The address to which proto...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 slippage protection on liquidity buffer increase ### Description The lack of slippage protection when adding liquidity to a buffer may lead a buffer liquidity provider to receive fewer shares than expected. When adding liquidity to a buffer through `addLiquidityToBuffer`, the amount of shares received...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
overflow
false
false
## Medium: Nudge check will break once limit is reached ### Description ## Severity: Medium Risk ## Context: Minter.sol#L75 ## Description: Because you're checking both sides, once `oldRate` reaches the `MAX_RATE`, every new `nudge` call will revert. This means that if `_newRate` ever gets to `MAXIMUM_TAIL_RATE` 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
liquidation
true
false
## Low: Unnecessary External Call ### Description ## Code Optimization Guidance There is no need to make an unnecessary external call to the function `submitSlowModeTransaction` in the `depositCollateral` function. A simple internal function call is sufficient since `msg.sender` does not change. ## Remediation Repl...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Vault
true
true
<https://github.com/code-423n4/2022-09-y2k-finance/blob/main/src/Controller.sol#L148-L192> <https://github.com/code-423n4/2022-09-y2k-finance/blob/main/src/Vault.sol#L350-L352> <https://github.com/code-423n4/2022-09-y2k-finance/blob/main/src/Vault.sol#L203-L234> <https://github.com/code-423n4/2022-09-y2k-finance/bl...
Code4rena
5
Y2k 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
signature
false
false
## Medium: TypeScript Errors ✓ Fixed ### Description * `toggleHelper` `persistedData` should be checked for `null` and default to a sane initial config. `notifcount:Number` should be `notifcount:number`. ``` Type '{ addresses: Json; popuptoggle: Number; }' is not assignable to type 'Record'. Property 'popuptoggle...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Liquidation should not be paused ### Description The liquidate function is currently gated by a pause check via `self.pausable.assert_not_paused()`. While pausing protocol operations is essential during emergencies, applying this restriction to liquidation poses a critical risk to protocol solvency. In the c...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
liquidation
true
false
## Low: Inconsistent Calculation Of Max Withdraw Value ### Description ## Withdraw Obligation Collateral `withdraw_obligation_collateral` utilizes the loan-to-value (LTV) ratio from the `withdraw_reserves` configuration to calculate `max_withdraw_value`, which may not align with the user’s obligation if the obligatio...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Universal Router Does Not Forward Native Tokens to V4 Position Manager ### Description The Universal Router has implemented logic to facilitate the migration of positions from the Uniswap [v3 Position Manager](https://github.com/Uniswap/universal-router/blob/4ce107d6387558b97816293fe2c0d4d7c4cadef4/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
low
overflow
true
false
## Low: Integer Overflow ### Description ## Integer Overflow in Fee Rate Calculation An integer overflow may occur when specifying malformed fee rates in `payFees` and `borrow`. Specifically, if the sum of the fee rates exceeds 100%, an integer overflow may occur when calculating and transferring the loan amount afte...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing RekeyTo on mint operations allows vault owner to withdraw all the Algo from the vault ### Description The minting operation does not validate that its associated transaction has no `RekeyTo`. As a result, an attacker can rekey its vault and withdraw the Algo without paying back the wAlgo. The minting...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Front-Running
false
true
## SmartSession Vulnerability Overview ## Context SmartSession.sol#L139-L213 ## Description SmartSession offers an enable mode for when a smart account wants to enable policies within the same call when the related actions get executed. In this case, it first enables the required policies during the validation phase ...
Cantina
4
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
other
true
false
## Low: Incorrect Voting Power Reporting in `veRAACToken.sol::getLockPosition` Function ### Description The `veRAACToken.sol::getLockPosition()` function incorrectly reports a user's voting power by returning their raw veRAAC token balance instead of calculating the time-decayed voting power. This creates a discrepan...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential 99.5% loss in `emergencyWithdraw()` of two Yieldbox strategies ### Description Slippage is incorrectly calculated where `minAmount` is intended to be 99.5%, however it's calculated to be only 0.5%, making the other 99.5% sandwichable. The usual correct `minAmount` slippage calculation in other Yield...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Misleading Documentation ### Description There are several instances where the codebase's documentation could be improved: * [This comment](https://github.com/Consensys/linea-contracts-fix/blob/04d6677474421239c1f215c5a676223d09266ba4/contracts/verifiers/PlonkVerifierFull.sol#L1070) references the Lagrange p...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Non-informative LogWithdrawal event. ### Description **Description** LockToken.sol: the LogWithdrawal event only reports the destination address and transferred amount but does not carry information about the token address and token ID in the case of an NFT. **Recommendation** Extend this event and add an 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
high
reentrancy
true
true
## High: Malicious user can overtake a prefunded auction and steal the deposited funds ### Description In the auction house whenever a new auction (lot) is created, its details are recorded at the 0th index in the `lotRouting` mapping. This allows for an attacker to create an auction right after an honest user and tak...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: User to sell the last supply will make the exchange contribution forever stuck ### Description [BancorExchangeProvider::_getScaledAmountOut()](https://github.com/sherlock-audit/2024-10-mento-update/blob/main/mento-core/contracts/goodDollar/BancorExchangeProvider.sol#L345) decreases the amount out when the 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
initialization
true
false
## Gas: Emitting storage values instead of the memory one. (Save ~200 gas) ### Description Here, the values emitted shouldn’t be read from storage. The existing memory values should be used instead: https://github.com/code-423n4/2023-01-popcorn/blob/d95fc31449c260901811196d617366d6352258cd/src/vault/Vault.sol#L629-L6...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent Polynomial Encoding ### Description The [`submitData` function](https://github.com/Consensys/linea-contracts-audit/blob/29e6798eb85074253145c4688acfa540f37a220f/contracts/LineaRollup.sol#L161) interprets the compressed data as polynomial coefficients. On the other hand, the [`submitBlobData` funct...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Manipulated sendParam in swapExactCollateralForDebtAndLZSend function allows unauthorized token minting ### Description The `swapExactCollateralForDebtAndLZSend` function allows malicious users to mint arbitrary amounts of debt tokens by manipulating LayerZero send parameters, bypassing collateral requirement...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
false
## Low: [16] MISSING NATSPEC COMMENTS ### Description NatSpec comments provide rich code documentation. The following functions miss NatSpec comments. Please consider adding NatSpec comments for these functions. **[Dravee (judge) commented](https://github.com/code-423n4/2023-03-polynomial-findings/issues/99#issuecom...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: setUnitPrice takes effect on pause branch ### Description In `setUnitPrice`, if the vault is paused, the call to `_validatePriceUpdate` will revert. However, on the pause branch, this check is already passed, leading to mixed behavior where on the first such call, state changes take effect: ```solidity 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...
skyward_49k
low
other
false
false
## Low: Use of 'msg!' consumes additional computational budget ### Description The usage of `msg!` is usually advisable during tests, and will incur in additional computational budget when the instruction is processed in Mainnet. In both `resolve_batch_deposit` and `resolve_batch_withdraw` instructions, it was observ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: BalanceGteEnforcer: Lock Mechanism Insufficient ### Description The current implementation of the `ERC20BalanceGteEnforcer` contains a potential flaw when handling several `Delegations` from the same `delegator`. Specifically, if the `delegator` creates several `Delegations` in the delegation chain that cal...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary State Storage of `pyth` Address ### Description The `pyth` address is stored as a regular state variable. If this address is never intended to change, making it effectively immutable could save gas on repeated reads. The issue is classified as **low** severity because it focuses on optimization ra...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: `PerpetualBond.epoch` not updated after yield distribution ### Description In [`PerpetualBond::distributeBondYield`](https://github.com/YieldFiLabs/contracts/blob/40caad6c60625d750cc5c3a5a7df92b96a93a2fb/contracts/core/PerpetualBond.sol#L215-L241) the caller is supposed to provide a `nonce` that matches [`epoc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: AssignmentHook Does Not Sign Over metaHash ### Description The function `hashAssignment()` does not hash over `assignment.metaHash`, allowing it to be arbitrarily set by the proposer. ```solidity function hashAssignment( ProverAssignment memory assignment, address taikoAddress, bytes32 blobHash ) ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Payout not resolved for losing bet ### Description **Severity** **Impact:** Medium, affects core function resolvePayout, leading to delays in resolving bets, which in turn affects the efficient use of funds. **Likelihood:** Medium, there's a common scenario where a sub-bet, not necessarily the first 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
token
false
false
## Low: Use safeTransfer/safeTransferFrom consistently instead of transfer/transferFrom ### Description It is good to add a require() statement that checks the return value of token transfers or to use something like OpenZeppelin’s safeTransfer/safeTransferFrom unless one is sure the given token reverts in case of a 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
high
access-control
false
false
## High: Minting tokens is not restricted. ### Description **Description** Line 30, function mint(). Currently, anyone can call this function, thus minting as many tokens as one wants. **Recommendation**: Consider adding restrictions to the mint() function(such as onlyOwner).
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Having no deposits in `StakedEXA` will lead to stuck rewards when harvesting ### Description The provider in `StakedEXA` is free to distributed rewards as it pleases and there is an automated way to distribute via `StakedEXA::harvest()`. The harvest setup may be started but no actual deposits have been made...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Using `private` rather than `public` for constants, saves gas ### Description If needed, the value can be read from the verified contract source code. Saves **3406-3606 gas** in deployment gas due to the compiler not having to create non-payable getter functions for deployment calldata, not having to store the...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: [10] Secondary market buyer may suffer a loss if the forging happens before the transfer ### Description The parameter `forgePotential` is crucial as it determines the number of times an NFT can forge within a year. ```solidity require( forgePotential > 0 && forgingCounts[tokenId] <= forgePotential, '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...
solodit_api
medium
other
true
false
Source: https://github.com/sherlock-audit/2022-11-bond-judging/issues/21 ## Found by hansfriese, xiaoming90 ## Summary The current implementation of the circuit breaker is not optimal. Thus, the market maker will lose an excessive amount of payout tokens if a quoted token suddenly loses a large amount of value, ev...
Sherlock
3
Bond Protocol
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## Gas: Unnecessary calculation when lenderData.current_debt == requiredAmount ### Description If `lenderData.current_debt == requiredAmount`, the calculated `newDebt` will be 0, which is the initial value. ### Recommendation Drop the equality case. ```diff - if (lenderData.current_debt >= requiredAmount) { + if (len...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `USDMPegRecovery` Risk of fund locked, due to discrepancy between curveLP token value against internal contract math ### Description _Submitted by Alex the Entreprenerd, also found by gzeon, IllIllI, and leastwood_ [USDMPegRecovery.sol#L90](https://github.com/code-423n4/2022-02-concur/blob/72b5216bfeaa7c5298...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Two Pyth prices can be used in the same transaction to attack the LP pools ### Description Pyth oracles use a pull model, where the consumer of the price needs to provide a signed price from an offline provider. There are no guarantees that the price at the current time is the freshest price, which means an 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
overflow
false
false
## Medium: A has mint caps that are not checked by ERC721SeaDrop ### Description `ERC721SeaDrop` inherits from `ERC721A`, which packs `balance`, `numberMinted`, `numberBurned`, and an extra data chunk into one storage slot (64 bits per sub-storage) for every address. This creates an inherent cap of \( 2^{64} - 1 \) 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
high
other
true
false
## High: Creating rewardTokens without streaming depositTokens ### Description _Submitted by bitbopper_ #### Impact `stake` and `withdraws` can generate rewardTokens without streaming depositTokens. It does not matter whether the stream is a sale or not. The following lines can increase the reward balance on a `wit...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Iterative multiplication causing unnecessary computation ### Description **Severity**: Informational **Status**: Resolved **Description** VaultMath.sol - method arraySum(int256[5] memory _array) is computationally inefficient since each element of _array is multiplied by 1e18. **Recommendation** Make 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
other
false
false
## Low: referralFeeBps may be greater than feeBps ### Description `setFeeBps()` allows the owner to set `feeBps` to a value such that `referralFeeBps > feeBps`, which breaks the invariant that the referral fee is always `<= feeBps`. ### Recommendation Add `require(referralFeeBps <= _feeBps)` check to `setFeeBps()`.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Aave V3 pool address may not match future upgrade ### Description In the `ArbitrumStrategyManager` contract, the `_aaveV3Pool` variable is defined as an `immutable` address and is set to a hardcoded value of `0x794a61358D6845594F94dc1DB02A252b5b4814aD` during deployment. However, hardcoding the Aav...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unused variable ### Description Following smart contract contains unused variable: https://github.com/lidofinance/curve-merkle-oracle/blob/ae093b308999a564ed3f23d52c6c5dce946dbfa7/contracts/MerklePatriciaProofVerifier.sol#L37 ### Recommendation We recommend to remove unused variable.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Conviction scoring fails to initialize and bootstrap ### Description Conviction scores for new addresses/users fail to initialize+bootstrap in `ERC20ConvictionScore`’s `_updateConvictionScore()` because a new user’s `numCheckpoints` will be zero and never gets initialized. This effectively means that FairSid...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unchecked return value ### Description The function [`finalizeCrowdfund`](https://github.com/etherparty/FUEL-Contracts/blob/3717b751bb2fa57ae300776a93ee4d7d7beb2c07/contracts/FuelToken.sol#L202) is defined to return a boolean value indicating success. However, this return value is [ignored](https://github.c...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Floating pragma used ### Description Currently, the contract uses a floating pragma, allowing the contract to be compiled with any 0.8.x Solidity version higher than 0.8.18. It is a security best practice to set the pragma to a specific version to ensure the contract is not accidentally compiled to a version 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: [07] `IncrementGauge` can be called with `0` weight ### Description There is no check whether the passed weight from `GUILD` holder is greater than `0`. [ERC20Gauges.sol#L219-226](https://github.com/code-423n4/2023-12-ethereumcreditguild/blob/2376d9af792584e3d15ec9c32578daa33bb56b43/src/tokens/ERC20Gauges.sol...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
initialization
true
false
## Medium: Potential out-of-bounds in `removeCardBundlesFromPacketPool` ### Description The `removeCardBundlesFromPacketPool` function in the `CardAllocationPool` contract has a critical flaw that could lead to `out-of-bounds` access errors. When removing card bundles, the function **swaps the selected bundle with 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
other
true
false
## Low: Missing `last_time` Update in `spot_lp` Causes Incorrect Daily Trade Statistics ### Description **Description:** The `spot_lp` function uses `instr_state.header.last_time` to determine if a day has passed, but never updates this field. In contrast, other trading functions (`swap, new_spot_order, spot_quotes_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
medium
other
false
false
## Medium: Using floats for financial calculations is dangerous ### Description **Description** There are a lot of calculations with floats. It is dangerous practice for financial applications because of the way how floats are implemented. They have unpredictable “small” error, which may give some magick like a-b+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
true
false
## Medium: Zero Amount Transfer Vulnerability in Token Transfers ### Description The contracts contain multiple instances call of `safeTransfer()` and `safeTransferFrom()` calls that do not check if the transfer amount is greater than zero. This issue is present in the following locations: * In the init() function: ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insufficient data Validation in resolve Function of L1Resolver Contract ✓ Fixed ### Description In the `resolve` function of the `L1Resolver` contract, there is a lack of proper validation for the length of the `data` parameter. This function decodes the `data` parameter assuming it is sufficiently large to co...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `RevenueHandler` counts unclaimed tokens as new revenue ### Description Report type: Smart Contract Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/RevenueHandler.sol Impacts: - Theft of unclaimed yield ## Description ## Brief/Intro The `RevenueHandler` contract has a `checkpoint...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: findNewOwner edgecase ### Description ## Handle gpersoon ## Vulnerability details ## Impact In the function findNewOwner of RCOrderbook, as loop is done which included the check _loopCounter 1. ### Impact In the function findNewOwner of RCOrderbook, as loop is done which included the check _loopCounte...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Modulo operator introduces bias during `oddsBPS ratio` selection ### Description The `GachaTickets::getPayout` function uses `modulo` operation with the `recieved random number` to generate randomness for the lottery draw. But the `pyth documentation` states the following regarding the usage of modulo operatio...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary require in `AmbireAccountFactory.deploySafe()` ### Description `AmbireAccountFactory.deploySafe(code, salt)` returns the address where the bytecode "code" is deployed itself, deploying it first if it isn't already deployed. Therefore, it is meaningless to check that the fresh deployment is successf...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Erroneous docstrings and comments ### Description Several docstrings and comments throughout the code base were found to be erroneous. In particular: * [Line 209](https://github.com/UMAprotocol/protocol/blob/e6eaa48124ae3f209fb117cf05eb18292cf26d21/core/contracts/financial-templates/implementation/FeePayer.s...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
cross-chain
true
false
## High: swapInternal() shouldn't use msg.sender ### Description As reported by the Connext team, the internal stable swap checks if `msg.sender` has sufficient funds in `onexecute()`. This `msg.sender` is the relayer which normally wouldn't have these funds, so the swaps would fail. The local funds should come from t...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
rounding
true
false
## Medium: There is no way for the `admin` to sweep `rewards` lost due to precision ### Description When Rewards are being distributed, Precision will take place, and when it does, those tokens will be stuck in that contract with no way of being recovered, since there is no function to get them back ### Impact The 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
high
rounding
false
false
## High: Unstrict Swap Invariant ### Description ## Handling Errors in Uncorrelated Curves When dealing with an uncorrelated curve, the program introduced an error by reporting an incorrect swap if the `lp_value` after the swap is strictly smaller than the `lp_value` before the swap. The swap should be valid only whe...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Protocol will leak value to users due to rounding in `SecuritizeSwap::buy` ### Description Protocols should always round against users in favor of the protocol. The `buy` function in the `SecuritizeSwap.sol` is rounding the stable coin need it in favor of the user: ```solidity function buy(uint256 _dsTokenAm...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Incorrect Docstrings ### Description Throughout the codebase, multiple instances of incorrect or incomplete docstrings were identified: * In the `IPlonkVerifier.sol` interface, the [`Verify`](https://github.com/Consensys/linea-monorepo/blob/660f849d1757700df369ebf33964ed03862b8a8c/contracts/contracts/interfac...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Extra attention must be paid to future contract upgrades that utilize new or otherwise modify existing low-level calls ### Description Care must be taken when introducing new features to Beanstalk that leverage low-level calls to ensure that they cannot be manipulated to appear as if those to functions that us...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Source: https://github.com/sherlock-audit/2023-02-notional-judging/issues/22 ## Found by usmannk ## Summary New Curve pools have a different ABI than the one that the vaults attempt to use. Not differentiating between the two will lead to silent failures when vaults are deployed for new pools. ## Vulnerability De...
Sherlock
5
Notional Update #2
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Erroneous Validation After Market Shutdown ### Description When a market is [shutdown](https://github.com/radiant-capital/riz/blob/65ca7bb55550d30388e2b2277fefe5686ab7e4e8/src/riz-lending/RizLendingPoolConfigurator.sol#L491), the [`updateLendingPoolStatus` function](https://github.com/radiant-capital/riz/bl...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Missing zero delta check in `increaseDebtShare` and `decreaseDebtShare` ### Description The `Licredity::increaseDebtShare` and `Licredity::decreaseDebtShare` functions do not validate that the `delta` parameter is non-zero. A user can call these functions with `delta = 0`, which will result in an `amount` of 0...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Immutable
true
false
## Severity: High Risk **Context:** - OmniBridgeFacet.sol#L34-L106 - AxelarFacet.sol#L18-L23 **Description:** Most bridge facets call bridge contracts where the bridge address has been supplied as a parameter. This is inherently unsafe because any address could be called. Luckily, the called function signature is ...
Spearbit
5
LI.FI
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## Gas: Cheaper to not cache `calldata` array length ### Description **Description:** When an array is passed as `calldata` it is [cheaper not to cache the length](https://x.com/DevDacian/status/1791490921881903468): The same applies to: * `PauseManager::__PauseManager_init` * `LineaRollup::submitBlobs` * `L2Message...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 assumption that PT rate is 1.0 post-expiry ### Description PT rate will be hardcoded to 1.0 post-expiry, which is incorrect. The price returned from the Notional's `PendlePTOracle` contract will be inflated. As a result, the account's collateral will be overinflated, allowing malicious users to borr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Setter Functions Don’t Check for Value Changes ### Description This issue results in unnecessary event emissions when setting values that are already at the desired value. ### Proof of Concept The following setter functions do not check if the new value differs from the current value: * [setLockedStatus](ht...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Additional optimization at CoiinToken.sol ### Description **Description** maxMintMonthly and minMintMonthly can be changed to constant as you don’t change them further in the code: /// @notice The daily allowed COIIN to be minted uint256 public maxMintMonthly; uint256 public minMintMonthly; **Recommendation*...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
access-control
false
false
## Medium: Incorrect initialization of `powerThreshold` and lack of validation ### Description The `Bridge::powerThreshold` should be 2/3 the sum of the validator power across current validators at any point; however, the [calculation](https://github.com/hyperliquid-dex/contracts/blob/e0aff464865aa98c09450702d7fb36b1f...
0