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: Fees are not sent to their respective recipients when dealing with low decimals tokens
### Description
In order to handle low decimals tokens everywhere in the protocol, Zaros starts by scaling such token amount to 18 decimals so rounding errors are avoided.
When users adjust their positions, a part of their ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | reentrancy | false | false | ## Medium: Reentrancy During Sending Rewards
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `7cc81d7d4a68fcc8478fe7c40fad27ec319e35df`.
Recommendation implemented.
**File(s) affected:**`MerkleDistributor.sol`
**Description:** The `claim()`&`claimMulti()` functions accept a `_claim` object... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | access-control | true | false | Source: https://github.com/sherlock-audit/2023-02-hats-judging/issues/42
## Found by
obront, roguereddwarf, minhtrng
## Summary
If a module is added by another module, it will bypass the `enableNewModule()` function that increments `enabledModuleCount`. This will throw off the module validation in `checkTransactio... | Sherlock | 5 | Hats |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | front-running | true | false | ## Low: BackstopPool is vulnerable to inflation attack
### Description
- The BackstopPool, which operates similarly to an ERC4626 vault, is susceptible to an inflation attack.
- An attacker can exploit this vulnerability by making a minimal initial deposit (e.g., 1 wei), and then artificially inflating the totalPoolWo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Storage: Help the optimizer by declaring a storage variable instead of repeatedly fetching a value in storage (for reading and writing)
### Description
To help the optimizer, declare a `storage` type variable and use it instead of repeatedly fetching the value in a map or an array.
The effect can be quite sig... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 argument order for shr operation will likely cause benchmarking to revert
### Description
The argument order for the `theshr` function is incorrect; causing the `number96` to be shifted by the hash value, rather than shifting the hash value by 96 bits. As such, it is likely for the calculated targ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 `srcEid` check in `borrowWithInterest()`
### Description
NOTE: This is a different issue from the one in the same function involving the line `if (collaterals[i].destEid == currentEid && collaterals[i].srcEid == currentEid)`. That issue concerns chain B, where repayments happen. The issue described ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: BlueBerryBank#withdrawLend will cause underlying token accounting error if soft/hard vault has withdraw fee
### Description
Soft/hard vaults can have a withdraw fee. This takes a certain percentage from the user when they withdraw. The way that the token accounting works in BlueBerryBank#withdrawLend, it will... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Transaction exposure
### Description
In the current implementation, even when `_cooldownTime` is set to 0, users are unable to collect all required approvals and submit a transaction to the private mempool at once. As a result, large trading transactions are visible in the contract state in advance, since 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 | true | false | ## Gas: Prefer named return parameters, especially for `memory` returns
### Description
**Description:** Prefer named return parameters, especially for memory returns. For example `tokenURIs` can be refactored to remove local variables and explicit return:
**CryptoArt:**
Fixed in commit [bdd28fa](https://github.com/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Setter functions not checking if value changed
### Description
Setter functions can reset value to same value
### Impact
Gas: By doing so there is gas waste of SSTORE 5000 gas for no impact on state of contracts. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users can bypass the `maxWinPercent` limit using a partially closing
### Description
Users can bypass the `maxWinPercent` limit using a partial closing.
As a result, users can receive more funds than their upper limit from the protocol.
### Proof of Concept
As we can see from the [documentation](https://do... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Challenges for Admin Functionality and Logic Initialization in FirewallProxyIntercept
### Description
The on\-chain firewall contracts provide a set of proxy contracts designed to integrate firewall capabilities into the proxy layer. The `FirewallTransparentUpgradeableProxy` contract inherits from OpenZeppe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `CoreRouter` Implementation Storage Can Be Modified
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `b33bd2ecbed7f477b882ecc477932abc9ff41bdb`.
The `onlyDelegateCall` modifier has been included to the `fallback` function.
**File(s) affected:**`CoreRouter.sol`
**Description:** The `... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | true | false | ## Low: `WETH` address definition can be use _directly_
### Description
**Context:**
**Description:**
WETH is a wrap Ether contract with a specific address in the Ethereum network, giving the option to define it may cause false recognition, it is healthier to define it directly.
Advantages of defining a specific 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 | medium | overflow | true | false | ## Medium: Multiplication overflow leading to memory corruption and incorrect register write-back
### Description
### Impact
The unchecked multiplication of int32 values (rs and rt) and type conversion within the execute function in MIPS contract can result in an overflow, leading to the assignment of an incorrect va... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | true | false | ## Low: Minor code improvements
### Description
## Context
(No context files were provided by the reviewer)
## Description/Recommendation
1. **SpendPermissionManager.sol#L81-L90** - `PERMISSION_TYPEHASH`, `PERMISSION_BATCH_TYPEHASH`, and `PERMISSION_DETAILS_TYPEHASH` are missing their visibility specifiers:
-
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect max precompile address
### Description
Two new precompiles have been introduced (`ECADD` and `ECMUL`) without updating the pointer that indicates the current maximum precompile address (`CURRENT_MAX_PRECOMPILE_ADDRESS`), causing these new precompiles to not be considered as precompiles in the syst... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [WP-M2] `DEFAULT_ADMIN_ROLE` can approve arbitrary address to spend any amount from the `L1Escrow` contract
### Description
_Submitted by WatchPug_.
`L1Escrow.sol#approve()` allows an address with `DEFAULT_ADMIN_ROLE` can approve an arbitrary amount of tokens to any address.
We believe this is unnecessar... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Static analyzer warnings
### Description
**Description**
At:
$ cargo clippy
Checking solana-escrow v0.1.0 (/home/v/PycharmProjects/suvorov/escrow-contract-main-2)
warning: this expression borrows a reference (`&solana_program::pubkey::Pubkey`) that is
immediately dereferenced by the compiler
--> src/processor... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: coolDown & warmUp period do not work when a low _firstEpochEndTime is passed to initialize
### Description
_Submitted by Lambda_
In the constructor of `Staking.sol`, it is not enforced that the `_firstEpochEndTime` is larger than the current `block.timestamp`. If a low value is accidentally passed (or even... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Use of Assembly for Retrieving chainid
### Description
In the `SynthFactory` contract, there's a specific implementation for retrieving the current chain ID using inline assembly. The function `__chainId()` directly accesses the `chainid` opcode to obtain the chain ID. While this approach is valid ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [07] `evm_signer::SignCancelTx` is unused code
### Description
`evm_signer::SignCancelTx` is unused code, would suggest to remove the function.
https://github.com/code-423n4/2023-11-zetachain/blob/main/repos/node/zetaclient/evm_signer.go#L209-L228 | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [03] Rinkeby is not supported for Chainlink's VRF
### Description
Rinkeby is deprecated and not listed as supported for [Chainlink](https://docs.chain.link/docs/vrf/v1/supported-networks/). The documentation states `Once the Ethereum mainnet transitions to proof-of-stake, Rinkeby will no longer be an accurate... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Length Validation
### Description
## Request Ride Function Issues
The `request_ride` function currently lacks a check on the length of the stops vector. This means that the function creates a ride and performs subsequent operations without ensuring that the length of the stops vector is within acceptable boun... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `_lastUpdateTime` can be equal to zero
### Description
`_lastUpdateTime` can be equal to zero if user deposits NFT before the first call of `notify`:
https://github.com/keep3r-network/StakingRewardsV3/tree/13ecc6966ae1a413f62224382bfd4d64b1a22351/contracts/StakingRewardsV3-1.sol#L337
### Recommendation
We ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Risk of Using Incorrect `OperatorsCount` Value
### Description
**Update**
The team renamed the variable from `OperatorsCount` to `TotalOperatorsCount` to avoid confusion with the active set of operators. Although there is still a risk that `TotalOperatorsCount` can change during the daemon's processing, the ne... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: NATSPEC DONT COMPLY WITH SOLDITY STYLE GUIDE
### Description
While auditing, it was noticed that the recommended Solidity standards for Natspec were not being followed correctly.
### PROOF OF CONCEPT
### MITIGATION
Implement the [NatSpec Format](https://docs.soliditylang.org/en/v0.8.19/natspec-format.html) 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 | high | other | false | false | ## High: Chip ordering is used to fetch all chips instead of preprocessed ones
### Description
The prover provided `chip_ordering` allows for a prover to only provide chips that they would like opened rather than the opening values for every chip.
### Impact
Invalid proofs of execution are accepted by the verifier
#... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `call()` Should Be Used Instead Of `transfer()`
### Description
**Severity** - Medium
**Status** - Resolved
**Description**
VaultkaV2GMXHandler makes use of the transfer function at L520 to transfer ETH back to the user.
The use of the deprecated transfer() function for an address will inevitably make th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Large amount of points can STILL be minted without any cost
### Description
An issue was raised in the last FlatMoney audit ([here](https://github.com/sherlock-audit/2023-12-flatmoney-judging/issues/187)) where the watsons pointed out that the points could be minted without any cost, this issue still remain... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Avoid contract existence checks by using low level calls
### Description
**Issue Description** - Prior to Solidity `0.8.10`, the compiler would insert extra code to check for contract existence before external function calls,
even if the call had a return value. This wasted gas by performing a check that wasn'... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fillers Might Lose Their Collateral
### Description
The `Permit2Depositor` contract is meant to be used by third-party fillers and [requires collateral from their side](https://github.com/UMAprotocol/across-contracts-v2-private/blob/8595081d0edf6aa265fc5e0d04437e9aa07efbcd/contracts/permit2-order/Permit2OrderL... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Middleware::slash` can revert due to `VetoSlasher` near epoch end
### Description
If `Middleware::slash` is called near the end of a vault epoch, it may revert when forwarding the slashing request to a `VetoSlasher`. This happens because `VetoSlasher.requestSlash` includes a strict check that the `captureTime... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | other | true | false | ## Low: Delete fulfilled vrf request from `vrfRequestIdToRequester` in `VRFHandler::fulfillRandomWords`
### Description
Delete fulfilled vrf request from `vrfRequestIdToRequester` in `VRFHandler::fulfillRandomWords`:
```diff
function fulfillRandomWords(uint256 _requestId, uint256[] calldata _randomWords) internal ov... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inadequate Validation in `clearTokenConfig`
### Description
**Severity** : Medium
**Status** : Resolved
**Description** :
This function allows the removal of a token's configuration without ensuring there are no active or pending operations involving the token. If the token is in use (e.g., in open posi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Token Order | true | false | _Submitted by cmichel_
The `TWAPOracle.registerPair` function takes in a `factory` and (`token0, token1)`.
The function accepts a `_factory` argument which means any Uniswap-like factory can be used.
When using the actual Uniswap factory's `IUniswapV2Factory(factory).getPair(token0, token1)` call, it could be that th... | Code4rena | 3 | Vader 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... | solodit_api | medium | other | false | false | ## Description
It is possible to register payloads that send native tokens, such as ETH, when executed. However, there is no practical way of sending native tokens to the `PayloadsController` contract.
Payload transactions are ultimately executed by the `Executor` contract, which cannot directly receive ETH transfer... | SigmaPrime | 4 | Aave |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | true | false | ## Low: Possible Denial of Service due to `lastWithdrawTimestamp != block.timestamp` when calling Bladeswap__execute()
### Description
**Severity**: Low
**Status**: Acknowledged
**Description**
When a call to the `Bladeswap__execute()` function in the `StableSwapPool.sol` and `XYKPool.sol` contracts is executed t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Missing Initializer Disabling in Constructor
### Description
The `OrderBook` contract does not include a call to `_disableInitializers` in its constructor. This omission allows the implementation contract to potentially be initialized, which can lead to unexpected behavior or security vulnerabilities if the im... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | dos | true | false | ## High: Denial-of-Service Attack on Leveraged Pool via Multiple Commits
### Description
Due to the iterative nature of how commits are executed, a malicious user is able to dilute the queue of pending commits and effectively prevent a pool keeper from performing its duties. This is made possible by the lack of a mini... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: _getNextFriday() returns wrong value when timestamp is between Monday 12am and 8am.
### Description
`_getNextFriday(Monday)` should return next Friday 8am timestamp. But if timestamp is on a Monday 12am - 8am, it will wrongly return the same week Friday.
### Impact
`_setOptionParameters()` relies on `_getN... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wormhole bridge chain IDs are different than EVM chain IDs
### Description
According to documentation, Wormhole uses different chain IDs than EVM based chain IDs. However, the code is implemented with a `block.chainid` check. LiFi is integrated with third party platforms through API. The API/UI side can imp... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Implementation contract can be initialized
### Description
The `GNSStakingV6_4_1` is an implementation contract that is expected to be used through a proxy. Since implementation contracts shouldn't be used, it is a convention to disallow their initialization. Consider adding an empty constructor that calls `_d... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | false | false | ## Medium: Block gas utilization is slightly lower than the actual gas utilization due to the gas snapshot being taken too early, resulting in an inaccurate base fee calculation
### Description
### Finding description and impact
`xfeemarket` implements a custom `PostHandler()` for skip-mev’s feemarket. At almost the ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | true | false | ## Low: The Upgradeability of MinerRegistry, AgentPolice, and Agent Is Overcomplicated and Has a Hight Chance of Errors. Acknowledged
### Description
During the engagement, we have identified a few places that signify that the `Agent`, `MinerRegistry` and `AgentPolice` can be upgraded, for example:
* Ability to mig... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | input-validation | true | false | ## Low: The vault limit condition should not be checked for `address(0)`
### Description
The virtual function `ERC721Upgradeable::_update` has been overridden within `SmartVaultManagerV6` as follows:
```solidity
function _update(address _to, uint256 _tokenID, address _auth) internal virtual override returns (address)... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Rate check can be subverted in VaultOrderbook.allocateOrder() due to unbounded cam- paign id list length
### Description
The `VaultOrderbook.allocateOrder()` function contains the following logic meant to tally the total reward rate for all tokens in the passed-in campaigns:
```solidity
for (uint256 i = 0;... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | logic | false | false | ## Low: Cancel on behalf.
### Description
**Description**
v2/FiatTokenV2.sol, cancelAuthorization()
v2/EIP3009.sol, _cancelAuthorization()
Function allows cancel on behalf of the authorizer in case if the user has access to the signature of the authorizer. Thus, in case of the "man in the middle" attack, when the u... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `ValidatorRegistry::validatorScore/getPastValidatorScore` allows validator to earn full rewards without actually engaging with the protocol
### Description
The `ValidatorRegistry::_initValidatorScore` function initializes new validators with a base score equal to the total number of proposals that have ever 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 | other | false | false | ## Medium: | Price Inconsistency
### Description
**Description**
In the `getPrice` function the stepwise price jumps do not account for the following `tokenIds`: 101,
301, 601, 1001, 1501, and 2301.
This is because each if statement utilizes > instead of >= when referring to these tokenIds.Therefore
a mint for one 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 | medium | liquidation | false | false | ## Medium: Possible spamming attack in opening or closing Long or Short Positions in `Exchange.openTrade`
### Description
One user that wants to open a short position shall not have a long position already opened and viceversa.
This is the check for opening a long position:
if (params.isLong) {
uint256 shortPosi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | false | false | ## Medium: Changing the `slashingHandler` for `NativeVaults` will DoS slashing
### Description
`Core`'s state contains a mapping between assets and slashingHandlers - `assetSlashingHandlers`. Assets that are assigned a slashing handler are considered whitelisted and vaults containing this asset can be deployed.
When ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Validate Remote Procedure Call Parameters
### Description
## Handling Invalid Parameters in onRpcRequest
The `onRpcRequest` handler receives parameters without validating them against the expected format of each one nor against the expected type.
## Remediation
Add a validation against each parameter in 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 | high | other | true | false | ## High: Processing of voting results is not implemented in the next epoch.
### Description
Report type: Smart Contract
Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/Voter.sol
Impacts:
- Contract fails to deliver promised returns, but doesn't lose value
- Manipulation of governance votin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: safeApproveAllTokens Implementation Differs From Documentation
### Description
The `safeApproveAllTokens` function [comments](https://github.com/OriginProtocol/origin-dollar/blob/eb11498c376b65696c90981757221b076d6226aa/contracts/contracts/strategies/balancer/BalancerMetaPoolStrategy.sol#L421) specify that 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: Methode does not have an implementation in the body
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
PositionMath.sol -
**Recommendation**
Remove if unneeded. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | reentrancy | false | false | ## Medium: Raw calls on ETH transfers allow reentrancy
### Description
If WETH is used as collateral, users can choose to receive native ETH when it is sent to users. It happens in function `_withdraw_collateral()`.
- https://github.com/curvefi/curve-stablecoin/blob/0d9265cc2dbd221b0f27f880fac1c590e1f12d28/contracts/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Draining SponsorPaymaster.balances with spam operations
### Description
Currently, users are not charged for their operations.
Gas compensations are taken from `SponsorPaymaster.balances[account]`, where `account` is the destination address in `KintoWallet.execute()` or `KintoWallet.executeBatch()`.
These acc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistency in Specification and Implementation
### Description
## Specification Documentation Inconsistencies
There are multiple inconsistencies in the specification documentation. Below is the list of the inconsistencies:
1. **The `receiveMessage` event does not include the emission of the `minFinalityTh... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Dangerous use of the
### Description
[L-01] Dangerous use of the burn function
The function burn is used by users to burn an option position by minting the required liquidity and unlocking the collateral.:br
As how the function is designed right now in order to do that, the user needs to send his shares to the... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: Insufficient Input Validation
### Description
## MerkleTree Implementation Issue in InitializePool
The current implementation of `MerkleTree` in `InitializePool` does not handle levels equaling zero. Initializing a `MerkleTree` with levels set to zero results in a crash since `MerkleTree::calc_zeros` returns ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: Missing Validation Logic
### Description
## MintSy Insights and Remediation
## MintSy::invariant
MintSy::invariant is intended to ensure that the state of the program remains consistent after certain operations. However, it does not ensure that the current supply of SY tokens (`mint_sy.supply`) is below or 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 | other | false | false | ## Medium: Sale can end while being paused
### Description
The [`hasSaleEnded`](https://github.com/OpenSTFoundation/SimpleTokenSale/blob/1a1e863441ba0149d7585203f5dbc6e800af00cf/contracts/TokenSale.sol#L215) function can change its return value from false to true during the pause period while there should be an extens... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | storage | false | false | ## High: The`ControllerV2` implementation can be destroyed by an attacker
### Description
The `ControllerV2` implementation code is vulnerable to a direct call of `initialize`. Since `initialize` executes `delegatecall` to an arbitrary address, an attacker can destroy the Controller's implementation contract, thus fre... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `EnsureClosure` would not add a vertex's closure if added in future
### Description
Assume there is a closureId which is supposed to include 3 vertexId , but for now only 2 of those are registered in the Token.sol . This is fine since when liquidity is added with `addLiq()` this is how it is done to ensure ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Ether can be deposited into CurveAMO_V3 but not retrieved from it
### Description
The `CurveAMO_V3` contract has a payable `initialize()` function but lacks a function for withdrawing the funds. This issue is somewhat mitigated, however, by the fact that the Curve AMO contract operates by delegating withdrawal... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing recursive calls handling in `OffchainDNSResolver` CCIP-aware contract
### Description
The `resolveCallback` function from `OffchainDNSResolver` is used as part of the EIP-3668 standard to properly resolve DNS names using an off-chain gateway and validating RRsets against the DNSSEC oracle.
The issu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | true | false | ## Medium: Vesting Validation Bypass
### Description
## IDO Initialization and Vesting Parameters
During the initialization of an IDO, `set_vesting` performs several checks to ensure that the vesting parameters are valid given the initial end date of the IDO. It verifies that `tge_time`, `vesting_start`, and `vesting... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | access-control | false | false | ## Low: Residual permissions after benefactor removal
### Description
When a benefactor is removed via `removeBenefactor`, previously configured beneficiaries and delegated signers for that benefactor are not cleared. If the same address is later re-added as a benefactor, all previously approved beneficiaries and dele... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Operator::setReserveFactor` doesn't check if bond market should be changed
### Description
_Submitted by rvierdiiev_
`Operator::setReserveFactor` sets new `reserveFactor` value. This parameter is used in `fullCapacity` function to calculate how much capacity is available by high/low side. Then calculated ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: riskPoolBalance is overwritten
### Description
The `riskPoolBalance` is reassigned instead of being added to the new amount:
```
pot.riskPoolBalance = riskPoolBalance;
```
Currently, `riskPoolBalance` is locked, but the intention is to reuse it in later rounds if a player doesn't join. In that case, the aggre... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Risks around claim payments after a policy matures
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation: This is a business requirement and we accept the risks that go along with this decision.
**File(s) affected:**`contracts-v3/LibSimplePolicy.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 | initialization | true | false | ## High: Unclaimed tokens locked in `stats_token` causing permanent fund loss
### Description
In the `claim_token` function, tokens are distributed to users based on the proportion of tokens they purchased relative to the total `claimed_supply`. If the `claimed_supply` is less than the `sale_supply`, users receive a p... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | true | false | ## Low: Loss of precision due to rounding
### Description
Although the loss of precision is minimal, this information can be specified in the Natspec comments and documentation. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | false | false | ## Low: Unhandled errors
### Description
The Prysm tests contain multiple ineffectual assignments to `err` error variables. These errors are never checked, which may lead to undefined test behavior given a sufficiently large change set. Ineffectual assignments to `err` can be viewed in figures 1.1-1.5.
```go
wsb, err := b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | true | false | ## High: buyoutLien() will cause the vault to fail to processEpoch()
### Description
LienToken#buyoutLien() did not reduce vault#liensOpenForEpoch
when vault#processEpoch()will check vault#liensOpenForEpoch[currentEpoch] == uint256(0)
so processEpoch() will fail
### Impact
processEpoch() maybe fail
### Recommendatio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | storage | false | false | ## High: Incorrect Remainder Allocation in Market-Only Orders
### Description
This issue has been identified within the `_placeOrder` function of the `ProxyLOB` contract.
When `marketOnly` is set to `true` the order is not included into `IOnchainTrie` within the `IOnchainLOB.placeOrder`, but the code still calculate... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent PRECISION between loan managers
### Description
The PRECISION constant variable is declared with different values in the `fixed-term-loan-manager/LoanManager` and `open-term-loan-manager/LoanManager` contracts, which could lead to issues in integrating contracts.
### Recommendation
We recommend u... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Chainlink Keeper Cannot Process All Swap Logs in a Block
### Description
`UsdTokenSwapKeeper::checkLog` relies on Chainlink Keepers, which only handle 1 logs every 2 block on Arbitrum. `StabilityBranch::initiateSwap` emits an event (`LogInitiateSwap`) for each swap request. If multiple users request multiple s... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: User funds lost because they can't `withdraw()` their funds before epoch startTime and they are stuck in positions that become unprofitable even when epoch is not started
### Description
Users deposit their funds in `Vault` when epoch is not started but as other users deposit funds too or price of pegged 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 | high | other | true | true | ## High: Improper Updation of totalLockedPerEpoch in NftEth . . . . .
### Description
## NftEth Contract Vulnerability Analysis
In the NftEth contract, `totalLockedPerEpoch[currentEpoch]` is used in `stakeN` to store the total NftEth staked in an Epoch. Instead of adding the staked amount to the `totalLockedPerEpoch`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Deprecated pool BEAN:WETH on LibBarnRaise used as fallback
### Description
The protocol will migrate the Bean:WETH Well LP to Bean:wsETH Well LP after initializing the bip migration:
InitMigrateUnripeBeanEthToBeanSteth -> LibFertilizer -> beginBarnRaiseMigration -> switchUnderlyingToken
```solidity
LibUnripe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | ## Medium: Lack of slippage control in llido.sol::swapexactinputsinglehop
### Description
When swapping the tokens with function `LLido.sol::swapExactInputSingleHop`, the slippage control is disabled by configuring the `amountOutMin` to zero. This can potentially expose the swap/trade to sandwich attacks and MEV (Mine... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing events/timelocks for owner/admin only functions that change critical parameters
### Description
_Submitted by 0xRajeev, also found by tensors_
Owner/admin only functions that change critical parameters should emit events and have timelocks. Events allow capturing the changed parameters so that off-... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: FOR LOOPS CAN BE OPTIMIZED
### Description
It has been observed all `for` loops in the protocol were not optimized properly. Having not optimized for loops can cost too much gas usage.
These for loops can be optimized with suggestions above:
1. In Solidity (pragma 0.8.0 and later), adding `unchecked` keyword... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | true | false | ## Medium: Denial of service when `baseAmount` is equal to zero
### Description
There is a `finalize` function in the `SizeSealed` smart contract. The function traverses the array of the bids sorted by price descending. On each iteration, it [calculates the `quotePerBase`](https://github.com/code-423n4/2022-11-size/bl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: [06] Missing check `isBorrowingEnabled`
### Description
The `ValidateLogic.sol#validateYieldBorrowERC20()` doesn't check if borrowing is enabled `isBorrowingEnabled`. Fix it with is check: `require(assetData.isBorrowingEnabled, Errors.ASSET_IS_BORROW_DISABLED);`. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Malicious user can pay less to pool
### Description
Malicious user can add poisoned pool to `paths[i]` to minimize profits and pay less to pool:
https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/credit/CreditManager.sol#L260
### Recommendation
We ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of user-defined slippage and deadline parameters in `StakingContract::swapForQI` may result in unfavorable `QI` token swaps
### Description
**Description:** When a user interacts with `StakingContract` to provision a hosted node, they can choose between two methods:[`StakingContract::stakeWithAVAX`](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 | access-control | false | false | ## Low: Ownership Mechanism Lacks Additional Safeguards
### Description
The BaseOwnable and LendingPool contracts implement a basic ownership mechanism. While functional, it lacks safeguards against accidental transfers to invalid addresses. The current transfer of ownership pattern calls the function `transferOwnersh... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Authentication tokens could be reused from another chain or project
### Description
Authentication tokens are not unique per chain and could be reused on another chain. Each transaction in Term Finance requires a special authentication token created by the address which is being affected. This does not have t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: initialize() function can be called by anybody
### Description
`initialize()` function can be called anybody when the contract is not initialized.
More importantly, if someone else runs this function, they will have full authority because of the `__Ownable_init()` function.
Also, there is no 0 address check 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 | other | true | false | ## Medium: Race condition if bounty is extended in final period
### Description
When a manager calls `increaseBountyDuration()` to queue up a change in their bounty's parameters, there is a check that the bounty is still active:
This check reverts if the bounty is past the `endTimestamp`, but succeeds otherwise, bec... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ERC20 return values not checked
### Description
_Submitted by cmichel, also found by defsec and jonah1005_
The `ERC20.transfer()` and `ERC20.transferFrom()` functions return a boolean value indicating success. This parameter needs to be checked for success.
Some tokens do **not** revert if the transfer fai... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> Deployment of the contract should be performed diligently and deployer must ensure both the deposit token and yield token are not the 0 address. Input validation on sett... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## High: Users can gain tokens during round-trip swaps
### Description
The swap functionality of the BunniSwapMath library is not accurately implemented, allowing users to gain tokens during round-trip swaps (i.e., swapping token0 for token1 and then swapping the same amount of token1 for token0).
The `computeSwap` f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: FullFill Swap will Fail due to minAmountOut wrong calculation
### Description
while swapping the usdToken of vault with assets the user will calls `getAmountOfAssetOut` to find the minAmount user will receive after swap it does not deduct Fee from amountOut but in case of actual swap we first deduct swapFee 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 | dos | false | false | ## Low: Changing the random generator contract might cause dos over honest commits
### Description
The `SofamonGachaMachine` contract includes a two-step process for minting wearable NFTs, involving a commit phase and a subsequent reveal phase. During the commit phase, a randomness request is made using an rng (random... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | true | false | ## Low: [17] Consider making the bridge 'pausable'
### Description
Having this ability would help to mitigate attacks and would ameleorate the need for this `withdrawERC20()` to be all-or-nothing
**[V-Staykov (Cudos) commented](https://github.com/code-423n4/2022-05-cudos-findings/issues/145#issuecomment-1122538703):... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.