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 | liquidation | true | false | ## Low: EnumerableSet.add/remove return value not checked
### Description
The return values of the `EnumerableSet.remove` and `EnumerableSet.add` functions are not validated in the Agreement contract, as shown in figures 2.1 and 2.2. This means that adding a duplicate collateral token address or removing a collateral ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unrestricted Access to the `createLot` Function in the `Auction` Contract
### Description
https://github.com/code-423n4/2023-06-stader/blob/main/contracts/Auction.sol#L48-L60
In the current design of the Stader ecosystem's smart contracts, the `createLot` function of the `Auction` contract can be called by an... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Initialization and Non-Zero Address Checks
### Description
Several critical parameters and addresses are not validated upon initialization. Specifically, there are no validations in the `LOB` [constructor](https://github.com/longgammalabs/hanji-contracts/blob/09b6188e028650b9c1758010846080c5f8c80f8e/src/Onchai... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | false | false | ## Medium: Introduce an emergency Withdraw Function
### Description
**Severity** - Medium
**Status** - Acknowledged
**Description**
The token being used in the system is the SnailBrook Token which is a token with a blacklist , i.e. an address could be blacklisted if malicious activities are found associated 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 | medium | other | true | false | ## Medium: Since the cost of launching a new pool is minimal, an attacker can maliciously consume `VirtualTokens`
### Description
When launching a new pool, the factory contract needs to call the `takeLoan` function to intervene with virtual liquidity. The amount that can be borrowed is limited to 300 ether per block.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Validation | true | false | ## Severity: Medium Risk
## Context
AeraVaultV1.sol#L574-L583
## Description
`enableTradingWithWeights` is a function that can only be called by the owner of the Aera Vault contract and that should be used only to re-enable the swap feature on the pool while updating token weights. The function does not verify if the... | Spearbit | 5 | Gauntlet |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Functions do not have slippage protection
### Description
During the mint and withdraw process, users specify the token or USD+ amount and the code calculates the receiving or sending amount based on oracle price. The issue is that the deposit/withdraw asset price or USD+ share price may change while the trans... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## Medium: Checking if amAMM is enabled
### Description
In the `BunniHook` contract `amAmmEnabledOverride` and `globalAmAmmEnabledOverride` are used to check if amAMM is enabled, taking precedence over the `hookParams.amAmmEnabled` value. As so, they can be used to disable amAMMs even when their `hookParams.amAmmEnabl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | true | false | ## Low: [02] Non-adherence to EIP-1822 standard in `WellUpgradeable.sol`
### Description
The `WellUpgradeable` contract fails to meet the EIP-1822 standard, potentially causing issues with upgradeability and compatibility with proxy contracts. It is explicitly mentioned in the [ReadMe](https://github.com/code-423n4/20... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | false | false | ## High: Incorrect Assumption of Stablecoin Market Stability
### Description
### Impact
The `StableVault` contract attempts to group all types of stablecoins under a single token which can be minted for any of the stablecoins supported by the system as well as burned for any of them.
This is at minimum a medium-seve... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Low: Unbounded loops could lead to out-of-gas errors
### Description
_Acknowledged_
The`whitelistedTokens()` and `participatedTokens()` functions use pagination to return token lists. This prevents the transaction from running out of gas when the lists are long.
However, the `refund()` and `totalParticipations()`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing access control in `CollateralLiquidityProvider::setExternalCollateralRedemption`
### Description
**Description:** The contract `CollateralLiquidityProvider` relies on `externalCollateralRedemption` to provide liquidity and this state variable can be changed via the function `setExternalCollateralRedem... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Split `require` statement with multiple conditions
### Description
**Severity**: Informational
**Status**: Acknowledged
**Description**
In Contract PairInfos, the method setPercentDepthArray(..) has a `require` statement which has multiple conditions.
In Contract PairStorage, modifier groupOk(...) and fe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [FIXED] Redundant initialization in `TopUpAllowedRecipients`
### Description
In the function [`_validateEVMScriptCallData`](https://github.com/lidofinance/easy-track/tree/425f4a254ceb2be389f669580b9dc76618e92756/contracts/EVMScriptFactories/TopUpAllowedRecipients.sol#L131 "/contracts/EVMScriptFactories/TopUpAl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Ignored return values
### Description
The call to the `addLiquiditySingleToken()` function in the `deposit()` function is expected to return three `uint256` type values, which are ignored during the function execution (`netLpOut`, `netSyFee`, `netSyInterm`).
Similarly, the call to the `removeLiquiditySing... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: LiquidityProviders.sol The share price of the LP can be manipulated and making future liquidityProviders unable to removeLiquidity()
### Description
## Lines of code
https://github.com/code-423n4/2022-03-biconomy/blob/04751283f85c9fc94fb644ff2b489ec339cd9ffc/contracts/hyphen/LiquidityProviders.sol#L345-L362
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: if-not-return statements used instead of require
### Description
At https://github.com/CoverProtocol/cover-core-v2/blob/513f5e502a8e8a623729c2c3480fca4e80fdef39/contracts/Cover.sol#L132 the check does nothing on fail, it just returns.
This is not a regular way to do this kind of checks, usually people just wr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Multiple calculation mistakes in the _findPricesClearBuffer function
### Description
The `_findPricesClearBuffer` function is designed to calculate the gETH/ETH prices. The first one (oracle price) is the price at the reference point, for ease of calculation let’s assume it is midnight. The second price is 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: Incorrect Hook Length Allocation
### Description
## ModifyHook Reallocation Explanation
Currently, in `ModifyHook`, the reallocation of the `SyMeta` account is based on the lengths of `pre_mint_hook_discriminator` and `post_redeem_hook_discriminator` within the meta account. The reallocating logic looks at th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: Free memory pointer not updated
### Description
_Resolved_
Code builds multiple EIP-712 hashes by borrowing the free-memory pointer, but it doesn't advance it afterward. This is resulting in the remaining of dirty bytes in memory and an out of sync free memory pointe.
It happens in multiple functions like `M... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Injected Vote Extensions Validation
### Description
## ValidateVoteExtensions Vulnerability
ValidateVoteExtensions relies on proposer-injected VoteExtension data, which may be manipulated to misrepresent the voting power of validators. The function calculates the total voting power (`totalVP`) base... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Outdated OpenZeppelin Library Version
### Description
The [OpenZeppelin library version in use](https://github.com/scroll-tech/scroll/blob/3bc8a3f5c6ac816ddffadca41024331dcf4d3064/contracts/package.json#L56-L59) is `^4.5.0` and `^4.5.2` for the upgradeable contracts, while the [current release version](https:/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Missing Newline Handling
### Description
The Snap does not handle newlines properly inside Snap Dialog, which may allow for easier message spoofing and phishing attacks by integrating arbitrary text into the rest of the message. This may deceive users into taking certain actions on behalf of the Snap component... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: optimization with SafeMath omitting
### Description
**Description**
Solidity 0.8.4 has integrated support of safe arithmetical operations with overflow and
underflow handling. So in such case SafeMath library can be omitted in order to perform gas
savings.
**Recommendation**:
SafeMath library can be omitte... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | true | ## High: Attacker with large funds can steal the pool's assets
### Description
A pool with an empty asset balance allows anyone to generate unlimited free share tokens. Such a pool can be emptied by an attacker.
`joinswapPoolAmountOut` is one of the functions to deposit a single asset:
```solidity
function joinswapP... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [05] Masking deposit calculation can lead to unexpected results in certain circumstances
### Description
https://github.com/code-423n4/2024-03-phala-network/blob/a01ffbe992560d8d0f17deadfb9b9a2bed38377e/phala-blockchain/crates/pink/runtime/src/contract.rs#L122-L135
The function coarse gas relies on complex bi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | other | false | false | ## Low: `SherpaVault::redeem` naming ambiguous
### Description
`SherpaVault` uses ERC-4626-adjacent terminology but different semantics. In ERC-4626, `redeem` means burning shares to withdraw assets. In `SherpaVault`, `redeem` means finalize a prior deposit by moving unredeemed shares into the user’s wallet. This nami... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: The `new_reward_for_pool` Function Does Not Exist
### Description
**Update**
Addressed in: `9398142`. Fixed as per recommendation.
**File(s) affected:**`lending_core/sources/farming.move`
**Description:** A comment above the `new_pool` function indicates that another function named `new_reward_for_pool` shou... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Attacker can borrow more than the collateral deposit.
### Description
Report type: Smart Contract
Target: https://testnet.snowtrace.io/address/0x2cAa1315bd676FbecABFC3195000c642f503f1C9
Impacts:
- Protocol insolvency
## Description
## Brief/Intro
Possibility to borrow more than the deposit amount. Please ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: L02] Confusing operation to update the no-confidence stake
### Description
###### Low
In the `PolicyVotes` contract, it is possible to [`challenge`](https://github.com/BeamNetwork/currency/blob/51b65c5c7af455391af2bc30d13d761566d8c236/contracts/inflation/PolicyVotes.sol#L245) all the proposals. When this hap... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Correspondence Between `chain_id.version` and `latest_height.revision_number` Is Not Enforced, Potentially Violating StateID Uniqueness
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `19d26e056bc3e5213cd4e3d24e7866de3f050e74`. The client provided the following explanation:
> The iss... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Token contract should have a blacklist function or modifier
### Description
NFT thefts have increased recently, so with the addition of stolen NFTs to the platform, NFTs can be converted into liquidity. To prevent this, we recommend adding a blacklist function.
There are 4 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... | skyward_49k | low | access-control | false | false | ## Low: Owner is allowed to revoke itself
### Description
It was observed that the L1Splitter contract is configuring multiple contract configurations through the Owner role. Setting of the Owner is achieved by implementing the Ownable2Step contract. The issue here is that Ownable2Step also allows the Owner to revoke ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Signature scheme is not checking that `signerAddress` is not 0
### Description
https://github.com/with-backed/papr/blob/9528f2711ff0c1522076b9f93fba13f88d5bd5e6/src/ReservoirOracleUnderwriter.sol#L88
`ecrecover` returns a value of 0 for invalid signature. We also note that in the constructor, there is no chec... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The `read()` function returns the wrong value because it is not properly scalable
### Description
**Severity**
**Impact**: High, because price data will be very inaccurate.
**Likelihood**: High, because it will always happen.
**Description**
In `OracleUniSolo.sol` we have the function `read()`:
This fun... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Compiler version (gas saving)
### Description
In solidity code and config specified compiler version `0.8.11`, more modern compiler version can improve gas optimization.
### Recommendation
We recommend updating it to `0.8.16` for gas saving. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | false | false | ## Medium: Malicious users could lock in the NAV/Share of the DV to cause the loss of fees
### Description
Source: https://github.com/sherlock-audit/2023-06-tokemak-judging/issues/601
## Found by
0x73696d616f, xiaoming90
Malicious users could lock in the NAV/Share of the destination vaults, resulting in a loss of ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: The Deposit and Withdraw event are always emitted with zero amount
### Description
The events emitted during the deposit or withdraw are supposed to contain the relevant amounts of tokens involved in these actions. But in fact the current balance of the address is used in both cases. These balances will be equ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Admin | true | true | ## Severity: Critical Risk
## Context:
- LooksRareProtocol.sol#L138
- LooksRareProtocol.sol#L391-L398
- ITransferSelectorNFT.sol#L14-L17
- TransferSelectorNFT.sol#L41
- TransferSelectorNFT.sol#L89-L98
## Description:
The Protocol owner can drain users' currency tokens that have been approved to the protocol. Makers w... | Spearbit | 5 | LOOKSRARE |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improper return of `chainlinkReferencePriceX96` in V3Oracle.`_getReferenceTokenPriceX96()`
### Description
*Note: Since the sponsor team chose to [mitigate](https://github.com/code-423n4/2024-04-revert-mitigation?tab=readme-ov-file#additional-scope-to-be-reviewed), this downgraded issue has been included 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... | cyfrin_structured | medium | reentrancy | true | true | ## Medium: Transceiver invariants and ownership synchronicity can be broken by unsafe Transceiver upgrades
### Description
Transceivers are upgradeable contracts integral to the cross-chain message handling of NTT tokens. While `WormholeTransceiver` is a specific implementation of the `Transceiver` contract, NTT Manag... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User Cannot Withdraw if Token Price Drops to Zero
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> Given the way the system is intended to be used, and the types of price data feeds that will be ingested by the on-chain PriceOracle, a price of... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | true | false | ## Low: Loss of precision in `twapPriceInEther` due to division before multiplication
### Description
### Relevant GitHub Links
https://github.com/Cyfrin/2023-09-ditto/blob/a93b4276420a092913f43169a353a6198d3c21b9/contracts/libraries/LibOracle.sol#L85
## Vulnerability Details
When calculating `twapPriceInEther`, `tw... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Stopped Validators Do Not Contribute Towards the Operator’s Staking Limit
### Description
Lido-DAO Node Operators are registered with a "Staking Limit", which restricts the number of validators that the Node Operator is allowed to run on behalf of the DAO. While set in `NodeOperatorRegistry.sol`, this limit 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 | medium | other | true | false | ## Medium: DumpFees Of OffchainBook Fails To Transfer Funds
### Description
## OffchainBook Contract Fee Transfer
In the `OffchainBook` contract, `dumpFees` transfers the fees collected from matching orders to the engine. Since every `OffchainBook` is linked to each engine, it applies the deltas onto that engine.
##... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inefficient ERC20 allowance handling
### Description
The below pattern is used in multiple instances to set an unlimited allowance in case the current value is lower than necessary:
Occurrences of this pattern can be found in:
[Dispatcher.sol#L272](https://github.com/perspectivefi/spectra-core/blob/fec59dc67... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Spread Calculation Is Biased Towards Market Price Being Bellow Oracle Price
### Description
**Update**
The Tribe3 team has acknowledged the finding, stating:
"The spread ratio is only based on the oracle price. So “m = 1, o = 1.1 implies r = 0.0909090909” should be correct."
**File(s) affected:**`Amm.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 | high | access-control | true | false | ## High: Loss of funds by griefing debt repayment
### Description
**Severity**: High
**Status**: Resolved
**Description**
When a deposit request is denied on the GMX side (privileged account triggers cancelDeposit from DepositHandler contract), the afterDepositCancellation callback from VodkaV2GMXHandler is invoke... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Initial configuration may allow an attacker to refund an unconfirmed deposit early on
### Description
Integer overflow allows users to refund deposits during the initial Staking configuration. To refund a deposit, the withdrawal period must be active:
```solidity
function refundPendingDeposit(uint256 depositNon... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Code Repetition
### Description
Throughout the codebase, there are instances of similar or identical code being used that could be consolidated. For example:
#### In the [`PSP22PalletMetadataImpl`](https://github.com/Brushfam/openbrush-contracts/blob/cd304109eab1c85a50d4cdccccb5f3b77905e700/contracts/src/tok... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Null check in pricePerShare
### Description
## Handle
hack3r-0m
## Vulnerability details
https://github.com/code-423n4/2021-10-badgerdao/blob/main/contracts/WrappedIbbtcEth.sol#L73
https://github.com/code-423n4/2021-10-badgerdao/blob/main/contracts/WrappedIbbtc.sol#L123
oracle can `0` as a price of th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | true | false | ## Medium: recover() using the standard transfer may not be able to retrieve some tokens
### Description
in `SecondaryRewarder.recover()`
Using the standard `IERC20.transfer()`
If `REWARD_TOKEN` is like `USDT`, it will not be able to transfer out, because this kind of `token` does not return `bool`
This will cause it ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Dangerous assumption on the peg of USDC can lead to manipulations
### Description
Dangerous assumption on the peg of USDC can lead to manipulations
### Impact
If the price of USDC falls below $1, collateral will be priced higher than expected. This will keep borrowers from being liquidated. And it will pro... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: EIP712 is not correctly implemented for the `Route` struct
### Description
As stated in the [EIP712](https://eips.ethereum.org/EIPS/eip-712#definition-of-encodedata) standard - "The array values are encoded as the keccak256 hash of the concatenated encodeData of their contents". This is not correctly followed ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: MosaicVault and MosaicHolding owner has excessive privileges
### Description
The owner of the MosaicVault and MosaicHolding contracts has too many privileges across the system. Compromise of the owner’s private key would put the integrity of the underlying system at risk.
The owner of the MosaicVault and Mos... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | oracle | true | false | ## Gas: [G‑17] require()/revert() strings longer than 32 bytes cost extra gas
### Description
https://github.com/code-423n4/2023-08-goodentry/blob/main/contracts/helper/FixedOracle.sol#L11
https://github.com/code-423n4/2023-08-goodentry/blob/main/contracts/PositionManager/OptionsPositionManager.sol#L495 | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary event emissions
### Description
`PriorityPool::setPoolStatusClosed` does not check if pool status is already `CLOSED` and emits `SetPoolStatus` event. Avoid event emission if the pool status is already closed. Avoid this. The same applies to the function `setPoolStatus` as well.
**Client:**
Fixed ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary Use of `SafeMath` in Solidity 0.8.x
### Description
**Update**
Fixed in commit [ec83a73](https://github.com/blex-dex/contracts/commit/ec83a73) by removing the import and use of the `SafeMath` library, as suggested.
**File(s) affected:**`./contracts/vault/VaultReward.sol`, `./contracts/market/Posit... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incomplete Validation of Calldata Length in `_targetContract`
### Description
The `_targetContract` function extracts the `address` of the vault contract from the calldata by assuming the last 20 bytes represent the address. While there's a check that `msg.data.length > 20`, this check allows possible manipula... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Multiple payments to same recipient can be combined
### Description
The function `executePayroll()` can send multiple transactions with the same `tokenAddress` to the same recipient. This results in unnecessary gas costs. Optimizing this could be relevant if recipients are performing multiple tasks within 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 | token | false | false | ## Medium: Insuffisient quality of the `_collateralERC20` check in BAMM
### Description
It is possible to provide the wrong address in the `_collateralERC20` parameter's value to the BAMM constructor:
- value that is different from StabilityPool,
- value that is not an ERC20 token,
- address of a token with the wrong ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Medium: DoS in Controller's depositWithPermit Function
### Description
The [`depositWithPermit` function](https://github.com/DigitalMOB2/refi-protocol/blob/dc842fd071f225c9d1ff9ad4677b986970125cf9/contracts/Controller.sol#L82l) in the Controller allows users to deposit a certain amount of underlying tokens without ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Numeric values having to do with time should use time units for readability
### Description
There are [units](https://docs.soliditylang.org/en/latest/units-and-global-variables.html#time-units) for seconds, minutes, hours, days, and weeks, and since they're defined, they should be used.
*There is 1 instance 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 | access-control | false | false | ## Low: Potential confusion between before- and after-hooks
### Description
Based on how `hasPreHooksBeenCalled()` is designed, there is an implicit assumption of hooks: The second call to it is assumed to be a post-op call. However, this is not necessarily true when taking callbacks into account. Consider a case wher... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | other | false | false | ## Low: Missing slippage protection in external collateral redemption call
### Description
In `CollateralLiquidityProvider::supplyTo()`, the function calls `externalCollateralRedemption.redeem(collateralAmount, 0)` with `0` as the `minOutputAmount` parameter, providing no slippage protection for the external redemptio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 balancedBooks modifier could result in failed system insolvency detection
### Description
## Handle
0xRajeev
## Vulnerability details
## Impact
The balancedBooks modifier is used to “check that funds haven't gone missing during this function call” and is applied to deposit, withdrawDeposit, pay... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong logic in `AUTO_COMPOUND` doesn't allow for swap to token1
### Description
Protocol functionality broken
### Proof of Concept
`AUTO_COMPOUND` action allows for compounding your gains into liquidity. It additionally allows for swaps in the middle. There is a faulty condition though, which is never eff... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Impact of different block time on maxMintPerBlock and maxRedeemPerBlock
### Description
Block time in Ethereum and other L2 chains is different. In Ethereum, the block time is 12 seconds, while other L2 chains have a different block time.
Assume the protocol intends to restrict minting to only 1 million toke... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Removal Of Redundant Code
### Description
## ExpressRelay::callWithBid Overview
The `ExpressRelay::callWithBid` function checks if the final balance is greater than the initial balance. While the check (`balanceFinalEth >= balanceInitEth`) may seem intuitive, it is redundant due to Solidity’s built-in overflo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Allowance Double-Spend Exploit
### Description
**File(s) affected:**`ShootERC20.sol`
**Description:** As it is currently constructed, the `ShootERC20` contract is vulnerable to the ERC-20 allowance double-spend exploit, as are most of the known ERC-20 tokens.
**Exploit Scenario:**
1. Alice allows Bob to tra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | false | false | ## Medium: Centralization risks
### Description
The issue has been identified within the [HanjiLOB](https://github.com/longgammalabs/hanji-contracts/blob/70b15ec4d9e7578248141604503843716a67d875/src/HanjiLOB.sol#L55) and [HanjiWatchDog](https://github.com/longgammalabs/hanji-contracts/blob/f699fdc9d9d74f699757cbdc8872... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Too generic calls in GenericBridgeFacet allow stealing of tokens
### Description
With the contract `GenericBridgeFacet`, the functions `swapAndStartBridgeTokensGeneric()` (via `LibSwap.swap()`) and `_startBridge()` allow arbitrary function calls, which enable anyone to call `transferFrom()` and steal tokens 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 | other | true | false | ## High: Miscalculation of distributed tokens at revenue handler
### 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
Revenue handler uses contract balance to calcul... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect circulating amount of tokens on the current chain
### Description
The circulating amount of tokens on the current chain includes the bridged tokens.
Consider tracking a separate variable for bridged tokens to subtract it from `innerToken.totalSupply()`. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Asymmetry in profit and loss (PnL) calculations
### Description
An asymmetry arises in profit and loss (PnL) calculations due to relative price changes. This discrepancy emerges when adjustments to a position lead to differing PnL outcomes despite equivalent absolute price shifts in rETH, leading to loss of 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 | liquidation | true | false | ## Medium: Not all pendingDecreaseCollateral is utilized due to the max limit
### Description
**Severity:** Medium
**Path:** src/strategy/BasisStrategy.sol#L601-L607, src/strategy/BasisStrategy.sol#L752-L758
**Description:** In scenarios where the strategy is partially deutilizing, the storage variable `pendingDecre... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | true | false | ## Low: Missing bounds check on weight values in `WeightedTokensVPCalc` and `WeightedVaultsVPCalc`
### Description
**Description:** The `WeightedTokensVPCalc` and `WeightedVaultsVPCalc` contracts lack proper bounds checking when setting weight values, which could lead to integer overflow during voting power calculatio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improper exception type and lack of input validation in OP bridge check
### Description
Vulnerable code: [router-api/src/app/transfer/external/op.service.ts]().
The `_isOpDenomValid` method performs a validation check to determine whether a provided l2Denom matches the expected hashed format derived from a br... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ESMS use of sanitized user_amount & user_id values ✓ Fixed
### Description
In the Signer service, values are properly checked, however the checked values are not preserved and the user input is passed down in the function.
The values are sanitized here:
**code/gtc-request-signer-main-5eb22e882e28e6f319... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Incorrect stake.for.allowed Value
### Description
Incorrect node address is recorded as allowed to be staked for, which may result in unexpected and unintended results. On line [305], the address to allow staking for is set as the caller of the function `msg.sender`, however, it should be a `_nodeAddress`, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use of non-compliant tokens with Balancer may cause integration failure
### Description
The Quads codebase integrates into Balancer proxies that contain assumptions about how tokens work. According to the following Balancer documentation, anyone can set up a proxy and choose to create a custom token. The Bala... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `StrategyPUSDConvex.harvest()`: L362 should be unchecked due to L359-L360 and how performanceFee is set L183
### Description
See `@audit` tags: | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Blacklisted shares Continue Earning Rewards
### Description
The `redistributeLockedAmount` function handles blacklisted users' shares by burning them and potentially initiating a new vesting period via `_updateVestingAmount`. However, because `_updateVestingAmount` can only be called once the most recent vesti... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | overflow | false | false | ## Gas: Increment in the for loop’s post condition can be made unchecked
### Description
The `newId`variable is calculated using addition, which means it cannot overflow. (In Solidity version 0.8.0 and higher)
`test_Buy() (gas: -78 (-0.026%))`
`test_Buy() (gas: -59 (-0.015%))` and `test_LPDA() (gas: -590 (-0.084%)... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Wrong Math | true | true | ## Lines of code
https://github.com/code-423n4/2022-11-stakehouse/blob/5f853d055d7aa1bebe9e24fd0e863ef58c004339/contracts/liquid-staking/StakingFundsVault.sol#L75
https://github.com/code-423n4/2022-11-stakehouse/blob/5f853d055d7aa1bebe9e24fd0e863ef58c004339/contracts/liquid-staking/StakingFundsVault.sol#L123
https://g... | Code4rena | 4 | Stakehouse 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 | medium | other | true | false | ## Medium: Lack of Validation When Parsing JSON
### Description
Parsing JSON without validation can lead to the processing of malicious or malformed data, which may result in injection attacks or unexpected behavior.
In `jsonParse.ts`, JSON data from responses were parsed without validation, making the application vu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [01] Missing validation for `holdingPeriodInSeconds` in `NudgePointsCampaigns`
### Description
The `holdingPeriodInSeconds` parameter lacks validation in both `createPointsCampaign` and `createPointsCampaigns` functions within the `NudgePointsCampaigns` contract, allowing privileged users to create campaigns w... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | false | false | ## Low: Missing error messages in require statements
### Description
There are several `require` statements without error messages. For examples, see [line 29](https://github.com/UMAprotocol/protocol/blob/9d403ddb5f2f07194daefe7da51e0e0a6306f2c4/core/contracts/common/implementation/Withdrawable.sol#L29) in `Withdrawab... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | true | false | ## Medium: vault.claimReward() If have a market without reward token, it may cause all markets to be unable to retrieve rewards.
### Description
In `vault.claimReward()`, it will loop through all `market` of `vault` to execute `claimReward()`, and transfer `rewards` to `factory().owner()`.
If one of the markets does ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Wrong Math | false | true |
Redemption weight is a concept used in Juicebox to determine investor's eligible percentage of the non-locked funds. In redeemParams, JB721Delegate calculates user's share using:
uint256 _redemptionWeight = _redemptionWeightOf(_decodedTokenIds);
uint256 _total = _totalRedemptionWeight();
uint256 _base = P... | Code4rena | 5 | Juicebox |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: The pool verification in `NapierRouter` is prone to collision attacks
### Description
Using computed pool addresses to verify the callback function callers is collision attack prone and can be abused in order to steal all token allowances of the `NapierRouter` contract
### Impact
All token allowances of 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: Outdated dependencies in candy machine UI
### Description
The versions of packages used in `candy-machine-ui` are outdated, which might lead to malicious exploits through known vulnerabilities in the outdated (and insecure) versions.
## npm outdated
| Package | Current | Wanted | Latest |
|-----------------... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: BORROWER CAN MINIMIZE DRAWN INTEREST ACCRUING
### Description
The borrower can postpone borrowing the deposit (`borrow()` function), which would start drawing interest accruing as far as the credit would be required. When the lender attempt to `withdraw()` the deposit, the borrower could front-run it with 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 | gas | other | false | false | ## Gas: Not defining lastUserLockIndex variable decreases contract size and gas cost
### Description
### Target codebase
[HolyPaladinToken.sol#L456-L457](https://github.com/code-423n4/2022-03-paladin/blob/9c26ec8556298fb1dc3cf71f471aadad3a5c74a0/contracts/HolyPaladinToken.sol#L456-L457)
[HolyPaladinToken.sol#L709-L71... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [03] Decimal handling in `GetTxInItem` function
### Description
The function `GetTxInItem` processes log entries to extract and convert amounts based on the token's decimal configuration. However, the code snippet provided does not show any evidence of handling decimal values when converting big integer amount... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | false | false | ## Low: Uncommented assembly block
### Description
The `OracleRelayer` contract includes an [assembly block](https://github.com/reflexer-labs/geb/blob/master/src/OracleRelayer.sol#L135-L157) in the `rpower()` function. The same assembly block is repeated in the [`TaxCollector`](https://github.com/reflexer-labs/geb/blo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | signature | false | false | ## High: A transaction doesn't have the sequence information
### Description
In case of multiple transactions are approved any owner is able to choose the sequense of transactions. In some cases this owner can extract additional benefits from choosing the ordering.
In addition, transactions allow only one target call... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The time constraint of selling fractions can be bypassed by directly transferring fraction tokens to the buyout contract
### Description
_Submitted by PwnedNoMore, also found by Treasure-Seeker_
The `end` function in the `Buyout` contract uses `IERC1155(token).balanceOf(address(this), id)` to determine the a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | token | true | false | ## High: Collateral NFT deposited to a wrong address, when transferred directly to `PaprController`
### Description
Users will lose collateral NFTs when they are transferred to `PaprController` by an approved address or an operator.
### Proof of Concept
The `PaprController` allows users to deposit NFTs as collateral... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The fees are incorrectly updated in the `_deposit` and `_withdraw` functions, which allows the attacker to break the protocol fees
### Description
In `_deposit` and `_withdraw` function of Multipool contract, `fee0` and `fee1` are calculated from the accrued fee amounts to update feeGrowth of contract and s... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.