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 | access-control | true | false | ## Low: Code Refactoring
### Description
## Code Refactoring Suggestions
1. **Check for Settled Orders**
Add a check at the beginning of the Settle instruction to ensure that the order has not already been settled. This prevents redundant processing and avoids unnecessary state modifications.
2. **Correct Action... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Interest calculation error if L2 sequencer go down
### Description
Beedle Interest calculation depend on L2 sequencer, which will cause the interest calculation error if L2 sequencer go down.
### Impact
Some related functions will not work normal when l2 sequencer go down. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `BerabotRouter` Calculation for Paths Longer Than Two Is Broken
### Description
The `BerabotRouter` mimics the functionality of the Uniswap V2 router when a V2 router is selected for the swaps.
Swaps between tokens that do not have a pool together are supported by defining a path for the swap. Example: `WETH... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | dos | false | false | ## Gas: [G-10]
### Description
L659 - Gas is saved if the variable in storage: state_lastValsetNonce is not set to zero, since it is its default value (the tests in remix said a difference of 2246).
**[V-Staykov (Cudos) commented](https://github.com/code-423n4/2022-05-cudos-findings/issues/156#issuecomment-1122387518... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Global vetoes are circumvented by strategist controlled calldata
### Description
Hook validation returns false when both global and strategy level hooks are vetoed: `globalHooksVetoed && strategyHooksVetoed`. Later, the internal `_validateSingleHook` validates against the global or strategy hook root depend... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | overflow | false | false | ## High: Potential Overflow in Accumulator Variables
### Description
The issue is pinpointed within the [`Node`](https://github.com/longgammalabs/hanji-contracts/blob/09b6188e028650b9c1758010846080c5f8c80f8e/src/TrieLib.sol#L10) struct of the `Trie` contract.
There is a vulnerability due to the use of `uint64` variab... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | signature | false | false | ## Gas: Unnecessary conversions from bytes to string in the Signature contract
### Description
In the Signature smart contract, the `EIP712_DOMAIN_TYPEHASH` and the `PAYROLL_TX_TYPEHASH` are calculated by hashing the encoding of their corresponding struct types using the `keccak256` hash function. However, the strings... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: Lack of event emissions after updating state
### Description
The following functions do not emit relevant events despite executing state-altering actions:
* No event is emitted when the [`_autoProcessRewardsCount`](https://github.com/bancorprotocol/contracts-v3/blob/b2224595afab14827ee065cb65a1444d61689fb3/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 | token | true | false | ## Low: Use _safeMint() rather than _mint()
### Description
The `SablierV2LockupDynamic` and `SablierV2Linear` contract make use of the standard `_mint()` function when minting the ERC721 to the receiver.
```solidity
function _createWithMilestones(LockupDynamic.CreateWithMilestones memory params) {
...
_mint({ 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: Contracts are not directly implementing their interface contracts
### Description
There are interface contracts in `interfaces/` for all contracts in `contracts/` but they are not used directly. This means some method might actually not be overriden since the code is not making use of compiler checks. Make sur... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Interest Accrued is removed from totalActiveDebt when calling openTrove
### Description
The total active debt in a `TroveManager` is not correctly updated when a new Trove is opened, resulting in the complete removal of the interest accrued since the last update.
When a Trove is opened within a `TroveManager... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Input Sanitation
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `a994411`. The client provided the following explanation: In general for input sanitization we rely on angular's built in XSS protection which requires us to manually bypass in order to render any values as inter... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Token ID potential duplication due to manipulable total supply
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
The current implementation generates Token IDs based on the total supply of tokens. This approach is problematic, especially for burnable ERC721 tokens where the 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: CHANGING FUNCTION VISIBILITY FROM PUBLIC TO EXTERNAL CAN SAVE GAS
### Description
There is a function declared as public that is never called internally within the contract. It is best practice to mark such functions as external instead, as this saves gas (especially in the case where the function takes argume... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Low: Smart Wallet Creation Thresholds
### Description
## SmartWallet Initialization Issue
SmartWallet initialization fails to ensure that the signature threshold is less than or equal to the number of owners. This can lead to wallets that are dead upon creation, making it impossible to sign transactions if the thr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Soundness Check Functions Should Trigger Emergency State
### Description
Both `proveNonDeterminisitcPendingState()` and `overridePendingState()` include calls to `_proveDistinctPendingState()` which validates that a soundness violation has occurred within the proving system.
However, only `proveNonDeterminis... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Missing bound check on rewardsDuration function
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
In contracts NarwhalPool.sol and TradingVaultV2, at line 110 inside the setRewardDuration function allows the governance to to set the duration of rewards. This value is then used by ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: boostDelegate can steal reward from user due to insufficient slippage protection
### Description
## Vault.batchClaimRewards Function Overview
### Context:
(No context files were provided by the reviewer)
### Description:
The `Vault.batchClaimRewards()` function enables users to claim Bima rewards using a boos... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Allowing last-minute bidding cancellations will always make the auction settle at the re- serve price
### Description
The protocol allows users to cancel their bids at the last minute, even at the timestamp `== listingEnd` (when `settleAuction()` is also allowed).
For English auctions, an attacker could use... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | true | true | ## Medium: Missing duplicate Incentive Logic can result in Incentive System accounting being broken
### Description
`IncentiveManager::addIncentiveLogic` allows the owner to add a new Incentive Logic to the list of Incentive Systems:
```solidity
function addIncentiveLogic(address logic) external onlyOwner {
uint2... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | true | false | ## Low: [34] Consider rightly passing the elements of the `BridgehubL2TransactionRequest` in `_requestL2Transaction()`
### Description
### Proof of Concept
Take a look at https://github.com/code-423n4/2024-03-zksync/blob/4f0ba34f34a864c354c7e8c47643ed8f4a250e13/code/contracts/ethereum/contracts/state-transition/chain... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `LibWell.getBeanTokenPriceFromTwaReserves()` incorrectly assumes that token has 18 decimals
### Description
Any Well LP can be whitelisted according to docs:
https://docs.bean.money/almanac/farm/sun#minting-whitelist
In case newly whitelisted Well has token with non 18 decimals, inner mechanism in core `sunri... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 constants instead of keccak256
### Description
Constants for each error reason have already been declared, but they are not used. Instead, the `keccak256` of the errors is computed again. To save gas, the `keccak256` should be replaced with the constant variables.
### Recommendation
The recommendation is ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Use of reason strings instead of custom errors
### Description
**Severity**: Informational
**Status**: Acknowledged
**Description**
Inside the contracts the reason strings from MiningErrors are used when reverting. An alternative would be to use custom errors. This contributes to reducing contract size and ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Import declarations should import specific identifiers, rather than the whole file
### Description
Using import declarations of the form `import {} from "some/file.sol"` avoids polluting the symbol namespace making flattened files smaller, and speeds up compilation.
*There are 20 instances of this issue.* | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Admin | false | true |
[ExecutionDelegate.sol#L119](https://github.com/code-423n4/2022-10-blur/blob/2fdaa6e13b544c8c11d1c022a575f16c3a72e3bf/contracts/ExecutionDelegate.sol#L119)<br>
To use the protocol (buy/sell NFTs), users must approve the `ExecutionDelegate` to handle transfers for their `ERC721`, `ERC1155`, or `ERC20` tokens.
The saf... | Code4rena | 3 | Blur Exchange |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: PIN code is sometimes not requested
### Description
The PIN code mechanism is implemented to further protect the wallet from unauthorized use. However, the PIN code set by the user is not always requested, for instance, when an app returns from being backgrounded.
### Recommendation
Short term, ensure the PIN... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Asset ID Check for Refunds on Zero Debt
### Description
## Vulnerability Overview
The vulnerability concerns the refund logic for excess USDF in `close_trove` when the debt is zero. If the amount of USDF sent (`msg_amount`) is greater than the debt, the difference is treated as "excess" and is refunde... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: In important libraries of PoolTogether, the `pow()` function of PRBMath is used, which exhibits inconsistent return values
### Description
### Lines of code
### Impact
The `DrawAccumulatorLib.sol` and `TierCalculationLib.sol` libraries inherit a version of `PRBMath` that contains a critical vulnerability... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: isCoolerCallback can be bypassed
### Description
Source: https://github.com/sherlock-audit/2023-08-cooler-judging/issues/187
## Found by
0xbepresent, BugHunter101, Delvir0, Hama, Ignite, Kow, Mlome, Vagner, banditx0x, castle\_chain, deadrxsezzz, detectiveking, evilakela, harisnabeel, jah, klaus, libratus, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unsafe usage of ERC20 transfer and transferFrom
### Description
_Submitted by CertoraInc, also found by 0x1f8b, 0xSky, CodingNameKiki, DecorativePineapple, jonatascm, Noah3o6, oyc_109, pedr02b2, peritoflores, and Waze_
Some ERC20 tokens functions don't return a boolean, for example USDT, BNB, OMG. So 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: `NodeOperatorRegistry::updateOperatorControllingAddress` allows to override `_newOperatorAddress` if its address is already assigned to an operator ID
### Description
**Description:** Current implementation does not check if the new assigned address has already been assigned to an operator ID. As a consequence... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No update to ETH reserve bookkeeping when ETH is deposited
### Description
When ETH is deposited into the `swETH` contract, new `swETH` tokens are minted, but the value of the ETH reserves in the protocol is not updated. This could lead to possible accounting errors and potential resultant loss.
`swETH.deposi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Unlocked Pragma
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `6a438116a094c459ecd7206ae641949d36b6ebce`. The client provided the following explanation:
> Modified as recommended. Version locked to 0.8.19.
**File(s) affected:**`All Files`
**Description:** Every Solidity file spec... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Transfers of 0 Amount Not Possible
### Description
The [`update` helper function](https://github.com/OpenZeppelin/stellar-contracts/blob/01dbcb53d3992570dba5faf517a3d0502ebf1254/contracts/token/fungible/src/storage.rs#L356) defined in the `openzeppelin_fungible_token` crate is responsible for updating token ba... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | access-control | true | false | ## High: Risk of accounting errors due to missing check in the invest function
### Description
Because of a missing check in the invest function, investing multiple tokens with different decimals in the same strategy will result in incorrect profit-and-loss (PnL) reporting, which could result in the loss of user or pr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | storage | false | false | ## Medium: M05] Missing zero address checks
### Description
###### Medium
Components: [`deploy`](https://github.com/BeamNetwork/currency/tree/af3428020545e3f3ae2f3567b94e1fbc5e5bdb4c/contracts/deploy) and [`proxy`](https://github.com/BeamNetwork/currency/tree/af3428020545e3f3ae2f3567b94e1fbc5e5bdb4c/contracts/proxy)... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | high | integer-overflow | true | false | ## High: Stale Funds Data in Leverage Validation Due to Missing Funding Rate Settlement
### Description
In `perp_change_leverage`, the code calls `check_soc_loss` but omits `check_funding_rate` before validating leverage constraints. As a result, `check_client_leverage` uses stale funds data when computing evaluation ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | storage | false | false | ## Medium: `voteDelegate` can perform any arbitrary calls on behalf of `VoterProxy`
### Description
Function `vote` in `VoterProxy` defined at https://github.com/convex-eth/platform/blob/754d9e700693246275b613e895b4044b63ce9ed5/contracts/contracts/VoterProxy.sol#L130 accepts call from `voteDelegate` through `Booster` ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | true | false | ## Low: [06] Grammatical and spelling errors
### Description
https://github.com/GenerationSoftware/pt-v5-cgda-liquidator/blob/7f95bcacd4a566c2becb98d55c1886cadbaa8897/src/LiquidationRouter.sol#L60
https://github.com/GenerationSoftware/pt-v5-draw-auction/blob/f1c6d14a1772d6609de1870f8713fb79977d51c1/src/RngRelayAucti... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `roundedUpNumberOfDays` in `_isTokenRateWithinAllowedRange()` can be calculated more precisely
### Description
If `rateL1TimestampDiff` is divided by `ONE_DAY_SECONDS` without remainder, `roundedUpNumberOfDays` will be 1 more than it should be:
https://github.com/lidofinance/lido-l2-with-steth/blob/792071cdeaf... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Overcomplicated unit conversions
### Description
There are many instances of unit conversion in the system that are implemented in a confusing way. This could result in mistakes in the conversion and possibly failure in correct accounting. It’s been seen in the ecosystem that these type of complicated unit ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Application Monitoring Can Be Improved by Emitting More Events
### Description
**Update**
The client provided the following explanation:
> Implemented suggestion for Remove event. The client extended the `Remove` event. No event was added in case an `lpPositions` element was deleted.
**File(s) affected:**`Ep... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | front-running | false | false | ## Low: Noteworthy design observations
### Description
The locking mechanism for havven tokens is enforced in the `transfer()` and `transferFrom()` functions. The current implementation of this locking mechanism incentivises users to either lock their entire balance of havvens or none at all. If a user were to partial... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Possible overflow will break the logic in `HoneyBox`
### Description
**Impact:**
High, as bundles storage variables will be overwritten
**Likelihood:**
Low, as it is not expected to add more than 255 bundles
**Description**
In `HoneyBox::addBundle` we have the following code:
The comment is wrong, as 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 | token | true | false | ## Medium: Auction won't work correctly with fee-on-transfer & rebasing tokens
### Description
**Impact:**
High, as it can lead to a loss of value
**Likelihood:**
Low, as such tokens are not so common
**Description**
The code in `createAuction` does the following:
so it basically caches the expected transferred a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | true | false | ## Low: USE A MULTISIG ACCOUNT FOR THE OWNER
### Description
**Severity**: Low
**Status**: Acknowledged
**Description**
The functions `updateUsdt()`, `updateWeth()`, `updateOracle()` are onlyOwner callable. It means that the owner has the power of changing important variable values for the core behavior so it is r... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Delegates Are Unable To Vote
### Description
When submitting a vote as a delegate, the `vote()` function will always revert with "Invalid Node" as `rocketDAOProtocolVerifier.verifyVote()` expects the call to always come from the node itself.
When submitting a vote during phase 1 via `vote()`, delegates are ex... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unvalidated referral codes allow users to claim undeserved affiliate benefits
### Description
**Severity**: Low
**Status**: Resolved
**Description**
In the _openPosition function within the Platform contract, openPositionFees is called with the user-provided referralCode. Inside the openPositionFees functio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: The issue associated with using upgradeable ERC20 contract
### Description
**Severity**: Low
**Status**: Unresolved
**Description**
ERC20 token DevvE is upgradeable. This means the admin can in the future introduce new features and/or remove existing ones to the contract, which can impact the token holders.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The `SecuritizeRedemption.updateLiquidityProvider` function emits the wrong information.
### Description
**Description:** The `SecuritizeRedemption.updateLiquidityProvider` function emits the information that `oldProvider` is updated to `liquidityProvider`.
But the function allocates `_liquidityProvider` to `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 | reentrancy | false | false | ## Low: `ReentrancyGuardUpgradeable` is not initialized
### Description
All OpenZeppelin's upgradeable contracts provide a `__{ContractName}__init` function that [should be called on initialization](https://docs.openzeppelin.com/contracts/5.x/upgradeable).
However, the `ResolvStaking` contract misses to call the `__R... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Potential Balance Theft due to Zero Share Burning
### Description
An issue of Low severity has been identified in the `_burnShares` function within the `ozUSD` contract. Currently, it allows the burning of zero shares, which can be used for stealing some weis of USDX from the contract.
### Recommendation
It i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: The function returns a public variable
### Description
For the https://github.com/sushiswap/bentobox/blob/c2e150b16b8764ebfe2e1e6e267ae14e10738065/contracts/LendingPair.sol#L243 line, the `updateExchangeRate()` function returns a value.
Lines https://github.com/sushiswap/bentobox/blob/c2e150b16b8764ebfe2e1e6e2... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improper implementation of slippage check
### Description
_Submitted by WatchPug, also found by gzeon_
[`Zap.sol` L216-L238](https://github.com/Badger-Finance/ibbtc/blob/d8b95e8d145eb196ba20033267a9ba43a17be02c/contracts/Zap.sol#L216-L238)
In the current implementation of. `Zap.sol#redeem()`, the `outAmo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | true | false | ## Medium: LiquidateWithReplacement might not be available for the big enough debt positions
### Description
The `liquidatorProfitBorrowAsset` can be substantial for the biggest debt positions, but it is assumed that the corresponding big enough `params.borrower` will always be found. This means that there exists one ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | overflow | true | true | **Description:** The protocol intends to provide a generalized framework for constant-function AMM liquidity pools.
We have identified some invariants that should hold at any given time. One of these invariants is `totalSupply() == calcLpTokenSupply(reserves)`, and we can interpret this as the pool's total LP supply sh... | Cyfrin | 5 | Beanstalk Wells |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Importing deprecated simapp package
### Description
As per the [docs](https://github.com/cosmos/cosmos-sdk/blob/release/v0.47.x/UPGRADING.md#simapp);
> The simapp package should not be imported in your own app. Instead, you should import the `runtime.AppI` interface, that defines an App, and use the simtestut... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | flash-loan | true | false | ## High: An attacker can hijack the `CuratedVault`'s matured yield
### Description
`CuratedVault#totalAssets` does not update pool's `liquidityIndex` at the beginning will cause the matured yield to be distributed to users that do not supply to the vault before the yield accrues. An attacker can exploit this to hijack... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Cache result of external calls when result can't change between calls and is used multiple times
### Description
* `Tranche.sol`
```solidity
// configure
212: IERC20[] memory tokens = cdo.strategy().getSupportedTokens();
213: uint256 len = tokens.length;
214: address strategy = address(cdo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Two WETH addresses are stored in the same contract
### Description
`BalancerPoolHelper.sol` stores two WETH address values, one is hardcoded
and another is specified on the initialization
Both are used in the contract.
Consider leaving only one WETH address variable/constant. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Removing liquidity does not reduce the shares received by the overestimated amount
### Description
When redeeming liquidity leads to negative withdrawal shares and the share proceeds are adjusted again, the `overestimatedProceeds` that are treated as contributing to withdrawal shares are still paid out to 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 | overflow | true | false | ## Medium: Repaying loans with small amounts of debt tokens can lead to underflowing in the `roll` function
### Description
Due to precision issues when repaying a loan with small amounts of debt tokens, the `loan.amount` can be reduced whereas the `loan.collateral` remains unchanged. This can lead to underflowing in ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Using of a constant value instead of a constant name in `CSModule.initialize()`
### Description
`_pauseFor(type(uint256).max);` [is used](https://github.com/lidofinance/community-staking-module/blob/a898d045b63303294752d1a60ad9dfe8d8ba69ca/src/CSModule.sol#L206-L207) in `CSModule.initialize()` for an infinite ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: isGovernor excludes Factory owner
### Description
## Handle
0xRajeev
## Vulnerability details
## Impact
In the Factory contract, the Factory owner is authorized to change approval for governor addresses and is also treated as a governor in the modifier onlyGovernors. However, isGovernor modifier excludes ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Yearn token <> shares conversion decimal issue
### Description
_Submitted by cmichel_
The yearn strategy `YearnYield` converts shares to tokens by doing `pricePerFullShare * shares / 1e18`:
function getTokensForShares(uint256 shares, address asset) public view override returns (uint256 amount) {
if (sha... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: LlamaCore doesn't check if minExecutionTime returned by strategy is in the past
### Description
The `minExecutionTime` returned by a strategy is not validated.
### Recommendation
An additional `require(minExecutionTime >= block.timestamp)` safety check could ensure more protection. The Llama strategies could ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Discrepancy Between Function Calls
### Description
## Differences in Attribute Sources
There is a difference in the source of the attributes list utilized in the `get_attributes` function calls between `capy_labs::mix` and `genesis::mint`. The attribute `vec_map` in `capy_labs::mix` is obtained from the dynam... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `MIN_HOLDING_DURATION` will not hold a correct value if deployed on other network
### Description
`MIN_HOLDING_DURATION` in `Equity` is calculated assuming that it will be only deployed in Ethereum Mainnet, where each block is added every 12 seconds.
[Link to code](https://github.com/code-423n4/2023-04-frank... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inheritance Conflict in Decimals Method
### Description
## Vulnerability in Solidity's Inheritance Hierarchy
The vulnerability lies in how Solidity’s inheritance hierarchy and the `super` keyword determine which parent implementation is prioritized when overriding a function.
Here, `YieldToken` inherits bo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Malicious user can DOS pool and avoid liquidation by creating secondary liquidity pool for Velodrome token pair
### Description
For every Vault_Velo interaction the vault attempts to price the liquidity of the user. This calls priceLiquidity in the corresponding DepsoitReciept. The prices the underlying asset... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | true | ## Medium: Missing Check For Active L2 Sequencer in `calculateArbAmount()`
### Description
The `calculateArbAmount()` function converts an amount of ETH (in Wei) to its equivalent amount in ARB tokens, using the latest exchange rates for ETH/USD and ARB/USD provided by Chainlink price feeds:
```solidity
function calc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Block Time Differences Between Chains Could Affect the Vault’s Rewards
### Description
**Update**
This issue is marked as Acknowledged as the reward calculation in the XVS Vault contracts still relies on `block.number`.
**Update**
Marked as "Acknowledged" by the Venus team. The Venus team provided 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 | low | signature | true | false | ## Low: logic doesn 't support personal_sign
### Description
## ERC-7739 Specification Issue
**Context:**
(No context files were provided by the reviewer)
**Description:**
The ERC-7739 specification allows wrapping hashes that originate from either EIP-712 or EIP-191 `personal_sign`. However, in the Smart Sessio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TRST-L-3 Multiplier implementation causes limited functionality
### Description
**Description:**
linearMultiplier and instantMultiplier are used to calculate output token amount from input
token amount in transmute functions.
The issue is that they are uint256 variables and can only multiply _inputTokenAmou... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## High: Incorrect Share Accounting When Rolling Options
### Description
An options roll can be used to burn a position and transfer the burned position's size to a new OTM position that may differ in only strike and width. Several scenarios can lead to the option owner being able to collect an undue profit or not rec... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Low: Dust can be left on the contract because of the rounding
### Description
At line https://github.com/vibexyz/vibe-contract/blob/d08057edbaf83b00d94dcaca2a05e3c44a45e4d9/contracts/RoyaltyReceiver.sol#L58 transferrable `amount` is calculated based on `totalAmount` and pre-defined `recipientBPS[i]`. In some cases,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: A strategy declaring a loss can keep excess debt
### Description
Strategies are extended credit by the vault and can declare a gain or loss when reporting results. If a strategy declares a gain, the strategy must have a token balance of at least the amount of the gain, as the funds will be redistributed by 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... | cyfrin_structured | low | rounding | true | false | ## Low: `BeforeSwapFeeOverride` struct could be used in the `FeeOverride` struct
### Description
The `BeforeSwapFeeOverride` and `BeforeSwapPriceOverride` structs defined in `IHooklet` are not currently used:
```solidity
/// @notice Overrides the swap fee of a pool before the swap is executed.
/// Ignored if the pool... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Possible Insufficient Tokens for User Claims
### Description
**Update**
Marked as "Mitigated" by the client. Addressed in: `cc2715b243ef003d9dd222b0a0cf1563b7fc590b`. The client provided the following explanation:
> This is guaranteed by out e2e test as well. In test we claim all allocation for each of the 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... | skyward_49k | low | token | true | false | ## Low: transfer... logic for debt tokens in ATokenERC6906 does not incorporate indexes
### Description
It is true that only the mini pool can transfer debt tokens between users (as is enforced in the before token transfer hook) and currently it doesn't use this logic, but the transfer logic implemented for the debt 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 | initialization | true | true | ## Medium: Total supply can be low down to zero after the fork, allowing for execution of exploiting proposals from any next joiners
### Description
Total supply can be low down to reaching zero during the forking period, so any holder then entering the forked DAO with `joinFork()` can push manipulating proposals and ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: Unnecessary implementation of the `RollupRevenueVault::initialize` given that the deployed proxy is already initialized
### Description
**Description:** The `RollupRevenueVault` contract will be used to upgrade the implementation of the [proxy](https://lineascan.build/address/0xfd5fb23e06e46347d8724486cdb68150... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: LONG LITERAL UINT256 USED IN COLLATERALMANAGER
### Description
Critical protocol parameters are set within the `initialize()` function of `CollateralManager.sol` contract. Specifically, `MCR` (minimum collateral ratio) and `CCR` (critical collateral ratio) are set using a long literal. This can lead to confusi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | cross-chain | true | false | ## Medium: All bridged funds will be lost for the users using the account abstraction wallet
### Description
### Lines of code
### Impact
Users with account abstraction wallets have a different address across different chains for same account, so if someone using an account abstraction wallet bridge the asset, asse... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inadequate Emergency Shutdown Role Enforcement in RAACMinter: Denial of Service in Emergency Response
### Description
The RAACMinter contract is designed with a robust role-based access control system to manage various operational functions, including pausing, updating parameters, and handling emergency shutdo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users Will Be Forced To Liquidations Due To Missing Functionality To Update Position
### Description
**Severity**: Informational
**Status**: Acknowledged
**Description**
A user can create a new position using the function `openPosition()` inside SakeVaultV2.sol at L564.
As the DTV for the user's position ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `CompensationPriceFinder` amount delta rounding directions are not consistent with Uniswap
### Description
**Description:** `CompensationPriceFinder::getZeroForOne` and `CompensationPriceFinder::getOneForZero` both round down in every instance when invoking `SqrtPriceMath::getAmount0Delta` and `SqrtPriceMath::... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | true | false | ## Medium: Malicious users can DoS loan creations and deposits, causing temporary funds freezing and additional costs incurred for message reversals
### Description
Report type: Smart Contract
Target: https://testnet.snowtrace.io/address/0x2cAa1315bd676FbecABFC3195000c642f503f1C9
Impacts:
- Griefing (e.g. no profit... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The distribution logic will be broken after calling `rageQuit()`
### Description
Malicious users might receive more distributed funds than they should with higher `distributionShare`.
### Proof of Concept
In `PartyGovernanceNFT.sol`, there is a `getDistributionShareOf()` function to calculate the distributi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inadequate Error Messages in require Statements
### Description
In [`UNCX_ProofOfReservesV2_UniV3.sol`](https://github.com/uncx-private-repos/liquidity-locker-univ3-contracts/blob/342c621cc93a13882601b30e547907877f3e3f86/contracts/UNCX_ProofOfReservesV2_UniV3.sol), there are multiple `require` statements that ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Low: authenticatorData.length has to be at least 33
### Description
The `verifySignature()` function checks if `authenticatorData` is well-formed by verifying its length and the flags stored at index 32.
```solidity
if (authenticatorData.length < 32 || !checkAuthFlags(authenticatorData[32], requireUserVerification... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wasteful array representation for variable
### Description
**Severity**: Low
**Status**: Resolved
**Description**
dpnm_sc.sol - treeuserlevelslock is represented as a mapping of an array. The array represents the last level reached by the userAddress that maps to that array. The pattern that it takes is in ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Missing checks for address(0)
### Description
In some of the smart contracts in-scope, values are assigned to address state variables without checking whether the assigned address is the zero address (`address(0)`). This oversight can lead to unintended behavior and potential security vulnerabilities in the 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 | medium | other | true | false | ## Medium: BlockhashRegistry - recreateBlockheaders succeeds and emits an event even though no blockheaders have been provided ✓ Fixed
### Description
The method is used to re-create blockhashes from a list of rlp-encoded `_blockheaders`. However, the method never checks if `_blockheaders` actually contains items. The... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Function consolidatePendingState() can be executed during emergency state
### Description
The function `consolidatePendingState()` can be executed by everyone even when the contract is in an emergency state. This might interfere with cleaning up the emergency. Most other functions are disallowed during 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 | medium | initialization | false | false | ## Medium: M09] Confusing phase transitions
### Description
###### Medium
The [inflation](https://github.com/BeamNetwork/currency/tree/51b65c5c7af455391af2bc30d13d761566d8c236/contracts/inflation) module of the Eco system is characterized by having clearly defined phases. For example, there is a commit phase, a reve... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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**
Fixed by the client in commit `1c7cefe`
**File(s) affected:**`OWNToken.sol`
**Description:** The constructor of the `OWNToken` contract does not perform any input validation on the `name_` and `symbol_` parameters. This can lead to invalid or empty token na... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Avoid duplicated code
### Description
Duplicate code makes it harder to understand the code’s intention and thus, auditing the code correctly. It also increases the risk of introducing hidden bugs when modifying one of the copies of some code and not the others.
The logic in [getParticipantBalance()](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... | solodit_api | medium | liquidation | true | true | Source: https://github.com/sherlock-audit/2023-02-blueberry-judging/issues/155
## Found by
berndartmueller, obront, SPYBOY, cducrest-brainbot
## Summary
`bank.totalLend` tracks the total amount that has been lent of a given token, but it does not account for tokens that are withdrawn when a position is liquidated.... | Sherlock | 5 | Blueberry |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.