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 | gas | other | false | false | ## Gas: Bytes constant are cheaper than string constants
### Description
If the string can fit into 32 bytes, then `bytes32` is cheaper than `string`. `string` is a dynamically sized-type, which has current limitations in Solidity compared to a statically sized variable.
This means extra gas spent upon deployment and ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: `getTVLLimits` will return the wrong value due to variable shadowing.
### Description
The `getTVLLimits` function's local state variables (`maxPerDeposit` and `maxTotalDeposits`) are using the same names as the global state variables. This variable shadowing will cause the returned value to be 0, instead 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 | high | other | true | true | ## High: xPYT auto-compound does not take pounder reward into account
### Description
Conceptually, the `xPYT.pound` function performs the following steps:
1. Claims `yieldAmount` yield for itself, deposits the yield back to receive more PYT/NYT (Gate.claimYieldEnter).
2. Buys `xPYT` with the NYT.
3. Performs a `ERC4... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong logic inside LendingPool::disableAsset
### Description
When disabling a collateral from the `LendingPool`, it is removed from both the mapping `enabledCollateral` and the associated array `userCollateral` for a given user. However, it fails to remove the entry for `userCollateral`, as it does not remove ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Declaration of gap variable
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
In PendleVoteManagerBaseUpg, the gap variable is declared before the state variables which is contrary to the Openzeppelin convention of declaring gap variables after the state variables.
**Recommen... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | logic | false | false | ## High: Incomplete Implementation of ERC-4626 Base Contract Leading to Asset Management and Usability Issues
### Description
The vault contract's adaptation from the ERC-4626 standard demonstrates critical flaws in asset management and functionality due to incomplete overrides of essential functions. Initially, the 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 | overflow | false | false | ## Low: Unchecked Math Operations
### Description
In computer programming, an overflow occurs when an arithmetic operation attempts to create a numeric value that is outside the range that can be represented with a given number of bits – either larger than the maximum or lower than the minimum representable value. Thi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Optimize names to save gas
### Description
`public`/`external` function names and `public` member variable names can be optimized to save gas. See [this](https://gist.github.com/IllIllI000/a5d8b486a8259f9f77891a919febd1a9) link for an example of how it works. Below are the interfaces/abstract contracts that ca... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Insufficient address validation in convertToAddress
### Description
The `convertToAddress` has the following issues:
- Missing validation for "0x" prefix
- No check for standard Ethereum address length (40 hex characters + "0x")
- Could accept shorter inputs and pad with zeros due to assembly operation
It's... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | reentrancy | true | false | ## Low: REENTRANCY IN MINERGAME.EXPORTNFT FUNCTION
### Description
In the `MinerGame` contract the `exportNft()` function is used to "unstake" the Mine NFT: | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [08] Avoid duplicated computation in `Comptroller.addRewardsDistributor()`
### Description
`uint256 rewardsDistributorsLen = rewardsDistributors.length;` can be removed and the `rewardsDistributorsLength` from L930 can be reused.
https://github.com/code-423n4/2023-05-venus/blob/main/contracts/Comptroller.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 | oracle | false | false | ## High: Utilization of Incorrect Pyth Price Structure
### Description
## Issues with Current Pyth Oracle Implementation
The current implementation utilizes an incorrect method to retrieve prices from the Pyth oracle. The `PythPriceFeedId` and `PythPrice` in the current implementation are incorrect representations 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 | other | true | false | ## Medium: Users can bypass the borrow expiry restriction by calling leverage() instead
### Description
The `leverage()` function acts as a function that combines both `buy()` and `borrow()`. The `borrow()` function restricts the user from taking loans for a period of more than a year:
```solidity
require(
numberOf... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [03] Technically the maximum amount at risk is `amountToDrip * 2 - 1`
### Description
While the code is meant to limit the total asset at risk, it's important to notice that because of the following check:
[MerkleRedeemerDripper.sol#L23-L24](https://github.com/code-423n4/2022-09-tribe/blob/769b0586b497527... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Duplicate receivers allowed by addReceiver()
### Description
The NFTXSimpleFeeDistributor contract is in charge of protocol fee distribution. To facilitate the fee distribution process, it allows the contract owner (the NFTX DAO) to manage a list of fee receivers.
To add a new fee receiver to the contract,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | signature | true | false | ## Medium: Incorrect interface for `ExchangeRouter::updateOrder` prevents order updates in GMX V2
### Description
**Description:** There is an issue in the integration with the GMX V2 trading platform, specifically in the [`GMX_Module::gmxv2_update`](https://github.com/d2sd2s/d2-contracts/blob/c2fc257605ebc725525028a5... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bancor formula should not be updated during the batch ✓ Fixed
### Description
Shareholders can vote to change the bancor formula contract. That can make a price in the current batch unpredictable.
**code/apps/batched-bancor-market-maker/contracts/BatchedBancorMarketMaker.sol:L212-L216**
```
function updat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Asynchronicity Might Lead to an Undefined Ethereum Provider
### Description
The current logic to get the Ethereum provider implemented in `getMetaMaskProvider` does not have any timeout to wait for provider initialization. If this logic is used in the Snap initialization code, because of the asynchronous natur... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary typecast of `msg.sender` to `address`
### Description
**Description:** There is an [instance](https://github.com/the-standard/smart-vault/blob/c6837d4a296fe8a6e4bb5e0280a66d6eb8a40361/contracts/SmartVaultYieldManager.sol#L169) of the `msg.sender` context variable that is unnecessarily cast to `addr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Event is missing `indexed` fields
### Description
Each `event` should use three `indexed` fields if there are three or more fields
1. File: contracts/interfaces/INFTLoanFacilitator.sol (lines [68-77](https://github.com/code-423n4/2022-04-backed/blob/e8015d7c4b295af131f017e646ba1b99c8f608f0/contracts/interfac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Duplicated zero address check
### Description
**Severity** - Informational
**Status** - Resolved
**Description**
The constructor() has a zero address check for the _delegate variable passed.
However, _delegate value is already checked in the both Ownable and OAppCore contracts which the GalaxyGames contract... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | overflow | false | false | ## Medium: Users cannot receive rewards from `ConcentratedLiquidityPoolManager` if their liquidity is too large
### Description
_Submitted by broccoli_
#### Impact
There could be an integer underflow error when the reward of an incentive is claimed, forcing users to wait for a sufficient period or reduce their liquid... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: OPTIMIZE UNSIGNED INTEGER COMPARISON
### Description
The check != 0 costs less gas compared to > 0 for unsigned integers in require statements with the optimizer enabled. While it may seem that > 0 is cheaper than !=0, this is only true without the optimizer enabled and outside a require statement. If the opti... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: 3S-LENFT-N11 protocol/Trading/LiquidityPairMetadata.sol: internal function "trait" should start with underscore
### Description
According to the standard solidity convention, internal function names should start with an underscore. This convention is used throughout the repo, except for function [trait()](http... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Suggestions to improve Readability
### Description
## Code Review Summary
## Context
- **GasZipFacet.sol**: Line 133
- **GasZipPeriphery.sol**: Line 113
- **Permit2Proxy.sol**: Line 204
## Description
### Use Named Constants
In `GasZipFacet.getDestinationChainsValue`, if `chainIds.length` exceeds 32, the 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 | access-control | false | false | ## Low: EmergencyBrake.sol: Permissions cannot be re-planned after termination
### Description
## Handle
hickuphh3
## Vulnerability details
### Impact
Given a configuration of target, contacts and permissions, calling `terminate()` will permanently prevent this configuration from being used again because the stat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of Logical Enforcement in Unlock Parameter Settings
### Description
The `setUnlockParams` function permits non-zero `lockingPeriodBlocks` even when `permittedStaker == address(0)`.
This behavior could unintentionally impose a vesting period in open deployments where unrestricted staking and unstaking... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `requestConfirmations` number prone to frequent chain reorgs
### Description
_Resolved_
In both `CardAllocationPool` and `SpinLottery`, the initial `requestConfirmations` value is set to 3, which is insufficient for the selected chains (Base and Polygon). Miners or validators on these chains could potentially... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unsafe Casting in getAnswer Function
### Description
The [`getAnswer`](https://github.com/LaChain/capyfi-sc/blob/cf47234ecffe0747f894dc73c4df15b78469b0bf/src/contracts/PriceOracle/CapyfiAggregatorV3.sol#L148) function of the [`CapyFiAggreatorV3`](https://github.com/LaChain/capyfi-sc/blob/cf47234ecffe0747f894dc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: USER FUNDS MAY GET LOCKED IN JOIN CONTRACTS
### Description
The `RewardJoin` and `StakeJoin` contracts have possibility to be stopped/disabled by the administrator using `cage` function.
When the administrator calls the `cage` function, user funds will get locked as the users will not be able to call the `ex... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | false | ## High: GovernanceMothership - notifyFor allows to arbitrarily create new or override other users stake in governance modules ✓ Fix Unverified
### Description
The `notify*` methods are called to update linked governance modules when an accounts stake changes in the Mothership. The linked modules then update their own... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Repetitive condition check
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
In Contract VaultETH_V2, the method Redeem_BuyETH(...) first asserts the following:
Later on, check the same in an `if` condition which is not needed as it is already asserted to be true and no ETH t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | token | true | false | ## High: Creating a token with a poisoned router
### Description
**Severity**
**Impact:** High
**Likelihood:** High
**Description**
The `BondingERC20TokenFactory.deployBondingERC20Token` function does not validate the user's input. So it is possible to create a bonding token with a fake router to steal all ETH fro... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `MuteAmplifier.sol`: multiplier calculation is incorrect which leads to loss of rewards for almost all stakers
### Description
This report deals with how the calculation of the `multiplier` in the `MuteAmplifier` contract is not only different from how it is displayed in the [documentation on the website](h... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | true | false | ## Medium: CurveSwapper Withdraws Full Balance Instead of Requested Amount
### Description
In the `CurveSwapper` contract, the `withdraw()` function sends the contract's entire token balance to the caller (`SwapManager`), ignoring the `lpAmount` argument that specifies how much should be withdrawn:
```
function withd... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `RToken::calculateDustAmount` are incorrectly calculated, leading to not be able to transfer the accrued dust amount
### Description
dust amount accrued inside `RToken`is supposed to be transferred out by calling `transferAccruedDust`. but there are flaw when calculating dust amount inside `calculateDustAmo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `minDepositValue` uses inadequate bit size for large deposits
### Description
The `minDepositValue` field in the `V1Storage` struct is defined as `uint64`, which has a maximum value of approximately `18.44e18`. This may be insufficient for routers that need to handle large deposit amounts at a minimum, meaning... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | true | false | ## Medium: Attacker can extract value by buying and selling the seat
### Description
**Description:** Whenever a user buys a seat, they must pay `seat_price` in the currency token. The `seat_price` depends on the `perp_clients_count` at the time of purchase. If the `perp_clients_count` is higher, the user will pay mor... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of timeout to claim listing fees allows price manipulation
### Description
After a delivery completes, there is no timeout to claim the listing fees. Claiming fees will mint new tokens, affecting the price. As a result, a successful listing owner can wait an arbitrary amount of time to claim its tokens a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | false | false | ## Low: Oversized packet in ORDERED IBC channel can cause channel closure
### Description
In both the [ICS-20](https://github.com/cosmos/ibc/blob/main/spec/app/ics-020-fungible-token-transfer/README.md) and [ICS-721](https://github.com/cosmos/ibc/blob/main/spec/app/ics-721-nft-transfer/README.md) specifications, the 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 | cross-chain | false | false | ## Low: Missing validation for fee.bps in getFeeBps
### Description
The `getFeeBps` function in `math.ts` of Ellisiland assumes that the `bps` (basis points) field in the `FeeConfig` object is always set when a fee is provided. However, if `fee.floor` is set but `fee.bps` is undefined, the code on line 7 attempts to 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 | high | overflow | false | false | ## High: 3. INCORRECT CTX ASSIGNATION LEADING TO ADDITION OF RANDOM AMOUNT OF ETHER TO THE SEQUENCER BALANCE
### Description
**Severity:** Critical
**Path:** process-tx.zkasm, precompiled/identity.zkasm
**Description:**
The zkEVM ROM architecture uses Contexts (CTX) to divide and emulate virtual address to physica... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | oracle-manipulation | true | false | ## Low: Cache storage variables in memory when read multiple times without being changed
### Description
As reading from storage is considerably more expensive than reading from memory, cache storage variables in memory when read multiple times without being changed:
File: `StrategyPassiveManagerUniswap.sol`
```solid... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Admin Privilege in minting to arbitrary address allows operator to dilute tokens
### Description
_Submitted by Alex the Entreprenerd, also found by IllIllI_
`veTokenMinter` allows any operator to mint new tokens, that's fine in the context of it being used for:
* having `VeAssetDepositor` deposit for 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 | dos | true | false | ## Low: Transactions may be stuck for certain recipients
### Description
The `Gateway` contract can swap tokens for ETH when relaying a transaction. It uses a try/catch mechanism to prevent the transaction from being stuck if the swapper fails.
The problem is that the relayed transaction can still fail on the `.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 | medium | cross-chain | false | false | ## Medium: Potential Arbitrage Due to Rate Discrepancies in Cross-Chain Transfers
### Description
The issue was identified within the [`outboundTransferShares`](https://github.com/dforce-network/OFT/blob/2ff5d7a8f9a509006557bf5de72fabf40d1138a5/src/sUSX.sol#L276) and [`finalizeInboundTransferShares`](https://github.co... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | rounding | true | false | ## Medium: Borrowers can be left with debt shares after full repayment
### Description
**Severity**
**Impact:** Low
**Likelihood:** High
**Description**
Borrowers can be left with debt shares after full repayment of their debt. This is due to the calculation of the `shareChange` value rounding down.
**Proof of 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 | token | false | false | ## Medium: Untested, undocumented, support for tokens with different decimals
### Description
The underlying and strike assets used to create options in the Primitive protocol are essentially the addresses of two different ERC20 tokens. While some popular ERC20 tokens such as DAI have 18 decimals, others such as USDC ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Using ```memory``` instead of ```calldata```
### Description
Using ```memory``` instead of ```calldata``` for input arrays in external functions:
https://github.com/EnsoFinance/shortcuts-contracts/blob/4902e55608f975f73772310955444110b1cfc4fc/contracts/wallet/MinimalWallet.sol#L45
https://github.com/EnsoFinanc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 fee calculation in _handleStrategistInterestReward resulting in undercharged fees in PublicVault
### Description
In the `PublicVault` contract, the function `_handleStrategistInterestReward` is being called during the `makePayment` process. However, it has been observed that the `TotalAssets` of t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: We should set a limit for the length of the tokens when batching to avoid consuming too much gas
### Description
https://github.com/code-423n4/2024-01-curves/blob/516aedb7b9a8d341d0d2666c23780d2bd8a9a600/contracts/FeeSplitter.sol#L103-L117
As noted by the comment on the code, the batching will fail if the li... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unoptimized loops
### Description
If a loop is iterated many times, the amount of gas required to execute the function increases significantly. In Solidity, excessive looping can cause a function to use more than the maximum allowed gas, which causes the function to fail.
### Recommendation
To reduce gas cons... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The Proposer and Reviewer Can Mint an Arbitrary Number of Tokens
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> The product design is like this. Proposers and Reviewers are decentralized.
**File(s) affected:**`Layer2Bridge.sol`
**Descripti... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Havven price update is vulnerable to front-running
### Description
Front-running [4] is an attack vector whereby users watch the blockchain for transactions, then submit transactions with higher gas prices to give their transactions a greater order preference.
Havven uses an oracle to set the price of Havven’... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | true | false | ## Low: Use a more recent version of solidity
### Description
- Use a solidity version of at least 0.8.4 to get `bytes.concat()` instead of `abi.encodePacked(,)`.
- Use a solidity version of at least 0.8.12 to get `string.concat()` instead of `abi.encodePacked(,)`.
*There is 1 instance of this issue:*
https://githu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Mismatched Variable Names
### Description
**Description:**
if users want to add except() arguments on function decrease\_1in examples/pausable-examples/pausable\_base/src/lib.rs line 49-52. However, the rust compiler cannot compile it due to the error:
**Recommendations:**
In the function get\_bypass\_con... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | token | false | false | ## High: `TokenHandler.safeTransferOut` does not work on non-standard compliant tokens like USDT
### Description
_Submitted by cmichel_
The `TokenHandler.safeTransferOut` function uses the standard `IERC20` function for the transfer call and proceeds with a `checkReturnCode` function to handle non-standard compliant ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: CM can `delegatecall` to any address and bypass all restrictions
### Description
The [`GuardCM`](https://github.com/code-423n4/2023-12-autonolas/blob/main/governance/contracts/multisigs/GuardCM.sol) contract is designed to restrict the Community Multisig (CM) actions within the protocol to only specific contr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong referrer reward calculation for `address(0)` can cause fund loss
### Description
When users transfer their Bunni token, code calls `_beforeTokenTransfer(from, to, amount)` to update `from` and `to` referrers claim states. Code doesn't update the claim state for `to` address if `to` is zero to avoid up... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Control Character and Markdown Injection in snap_dialog
### Description
On certain occasions, the snap may need to present a dialog to the user to request confirmation for an action or data verification. This step is crucial as dapps are not always trusted, and it’s essential to prevent scenarios where they c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: [06] Decimal conversion issue in amount conversion logic
### Description
The `GetTxInItem` function uses the `amtConverter` to convert token amounts using Big Integers but does not correctly apply the token's decimal configuration during the conversion. This omission can result in financial inaccuracies when t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Increase voting power by tokenizing the address that locks the token
### Description
_Submitted by Kumpa_
[AuraLocker.sol#L258-L295](https://github.com/code-423n4/2022-05-aura/blob/4989a2077546a5394e3650bf3c224669a0f7e690/contracts/AuraLocker.sol#L258-L295)
Without restriction on the type of address that ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: updateCommitmentBorrowers does not delete all existing users
### Description
`delete` a complex structure that includes mapping will cause problem. See [[ethereum/solidity#11843](https://github.com/ethereum/solidity/pull/11843)](https://github.com/ethereum/solidity/pull/11843) for more info.
### Impact
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 | false | false | ## Low: No event emission when initializing parameters
### Description
**Description:** On the constructors of the [`L1LineaTokenBurner`](https://github.com/Consensys/linea-monorepo/blob/8285efababe0689aec5f0a21a28212d9d22df22e/contracts/src/operational/L1LineaTokenBurner.sol#L21-L27) and [`V3DexSwap` ](https://github... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Init function can be called by everyone
### Description
Most of the solidity contracts have an init function that everyone can call.
This could lead to a race condition when the contract is deployed. At that moment a hacker could call the `init` function and make the deployed contracts useless. Then it woul... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Upgradeable contracts which are inherited from should use ERC7201 namespaced storage layouts or storage gaps to prevent storage collision
### Description
**Description:** The protocol has upgradeable contracts which other contracts inherit from. These contracts should either use:
* [ERC7201](https://eips.ether... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Owner ability to withdraw any ERC20 tokens in MyStaking.
### Description
**Description**
MyStaking.sol: function emergency Withdraw(). The owner can withdraw any tokens from the contract, including the stake token. Even though it is declared in the comment section that this function will be removed after 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 | dos | false | false | ## Low: Gas Costs for Large Arrays
### Description
**Severity**: Low
**Status**: Resolved
**Description**:
In the `AirdropFactory` If the `erc20Rewards` array contains a large number of entries, the gas costs for this function can be prohibitively high, potentially causing the transaction to fail.
**Scenario**: 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... | cyfrin_structured | low | access-control | true | false | ## Low: Cache storage to prevent identical storage reads
### Description
Reading from storage is expensive; cache storage to prevent identical storage reads:
* `contracts/registry/RegistryService.sol`:
```solidity
// cache `getInvestor(_address)` in `getInvestorDetails`
206: return (getInvestor(_address), getC... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | reentrancy | false | false | ## Gas: Use safe mint rather than mint
### Description
SafeMint is more secure than mint.
### Impact
Unlike the basic mint function, SafeMint provide safeguards against potential smart contract vulnerabilities, such as reentrancy attacks and unexpected token loss. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## Low: Missing event emit for solverWhitelist initialization
### Description
## Context
**File:** Inbox.sol#L54
**Description:** When emitting events, state updates need to be tracked from the first initialization. The goal is to reach the initial state if you would look back at all the logs from a specific event.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Custom Ownership Transfer Logic
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
The contract includes custom functions for 2 step ownership transfer, which adds unnecessary complexity. Instead, the contract should inherit from `Ownable2StepUpgradeable` to leverage well-audit... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | true | ## Medium: ChainlinkAtlasWrapper may break protocol integrations
### Description
The ChainlinkAtlasWrapper is intended to be used by integrating protocols as a replacement for the original BASE_FEED Chainlink contract. There are currently two things that would make this integration difficult:
1. The `latestRoundData(... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Mnemonic and local password disclosed in console
### Description
The Uniswap wallet browser extension logs the mnemonic and the extension’s password in the console when the `importAccount` action is triggered—both during the wallet initialization by the QR code and while importing a recovery phrase (figure 23.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: Inconsistent use of day parameter in event emission
### Description
The parameters for events that are emitted when floating income values are updated are used inconsistently, which could cause confusion.
When updating previous floating income values via `updatePreviousFloatingIncome`, the event emission refl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Loan with id = 0 can be taken without creation
### Description
**Description:**
In the takeLoan() function, \_loan.id == \_id is checked to confirm the existence of the loan. However, when \_id = 0, this check is passed even if no loan has been created on the protocol yet. Additionally, since LoanState.OPEN =... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [03] DISCREPANCY BETWEEN NATSPEC COMMENT AND LOGIC IMPLEMENTATION OF THE `withdrawGivenInputAmount` FUNCTION
### Description
The `natspec` comments of the `EvolvingProteus.withdrawGivenInputAmount` function states that the `feeDirection` of the function to be used is `FEE_UP`. The reason for using `FEE_UP` 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 | gas | other | false | false | ## Gas: Cache array length in for loops can save gas
### Description
_Note: suggested optimation, save a decent amount of gas without compromising readability._
Reading array length at each iteration of the loop takes 6 gas (3 for mload and 3 to place memory_offset) in the stack.
Caching the array length in the stac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insufficient Gas Limit Specification for Cross-Chain Transfers in _buildCCIPMessage() method. WrappedTokenBridge.sol #210
### Description
The _buildCCIPMessage() function in the WrappedTokenBridge contract does not specify a gasLimit for the execution of the ccipReceive() function on the destination blockchain... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Positive PnL is lost for all parties when liquidating an account, potentially causing that the MarginCollateralRecipient ends up receiving way less USD value than what it could have received.
### Description
When liquidating an account, if the account has positive PnL, that amount of PnL is not minted 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 | medium | oracle | false | false | ## Medium: Misleading Validity Checks in `read` Function of `ChainlinkRelayer`
### Description
**Severity**
**Impact:** Medium
**Likelihood:** Medium
**Description**
The `read` function of the `ChainlinkRelayer` contract is intended to fetch and return the latest price from a Chainlink feed, reverting if the price... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Element Dequeuing
### Description
## Dequeue at With Low Element Index
The `dequeue_at_with_low_element_index` in the IndexedArray module is designed to remove an element from the array at a given index and update references accordingly. However, the function is missing a check to ensure that `el... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Invalid `maxWithdraw()` check in `withdraw()`
### Description
**Description:** Vault incorrectly checks `maxWithdraw(receiver)` instead of `maxWithdraw(controller/owner)`.
**Impact:**
- Allows unauthorized withdrawals by exploiting the receiver's limits instead of the owner's.
- DDoS in `withdraw()`
**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 | access-control | true | false | ## Low: Delegate cannot remove delegation issued by a benefactor
### Description
**Description:** A delegate cannot remove delegation issued by a benefactor. Once delegation has been accepted by calling the `acceptDelegatedSigner` function, it can only be revoked by the benefactor by calling the `removeDelegatedSigner... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Permanent loss of `BabelToken` if a disabled emissions receiver doesn't call `Vault::allocateNewEmissions`
### Description
**Description:** `BabelToken` is permanently lost if a disabled emissions receiver doesn't call `Vault::allocateNewEmissions` as:
* `Vault::_allocateTotalWeekly` allocates `BabelToken` ac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: 2-step ownership transfer
### Description
**Severity**: Low
**Status**: Resolved
**Description**
In Contract VaultETH_V2, method `transferOwnership()` allows the current DEFAULT_ADMIN_ROLE to set a new DEFAULT_ADMIN_ROLE. If the wrong address is set for the `newOwner`, it will be irreversible.
Instead, opt ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 parameters in SalesBegin event of critical startSale() function
### Description
## Handle
0xRajeev
## Vulnerability details
## Impact
Consider including salesStartTime and salesDuration as parameters in the SaleBegins event to allow off-chain tools to track sale launch time and duration, especiall... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `OmoVault.borrow()` : missing limits and tracking mechanism
### Description
The `OmoVault.borrow()` function is intended to allow whitelisted agents to borrow the vault's underlying asset, however, the current implementation has several issues:
1. The function allows whitelisted agents to withdraw any 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 | high | oracle | true | false | ## High: Cancelled `MARKET_CLOSE` order will affect TP/SL trigger
### Description
When the TP / SL are set in a trade, `tpLastUpdatedBlock` / `slLastUpdatedBlock` will be set to the current block number. This is to ensure that triggering of the TP and SL will be guaranteed as the callback handling will process the TP_... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The current value of a Pair is not always returning a 30-minute TWAP and can be manipulated.
### Description
## Low Risk Vulnerability Report
**Severity:** Low Risk
**Context:** Pair.sol#L276-L288
**Description:**
The `current` function returns a current TWAP. It fetches the last observation and calcula... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Call `msg.sender` directly instead of caching it
### Description
In the instance below, instead of caching `msg.sender` and incurring unnecessary stack manipulation, we can call `msg.sender` directly.
1 issue instance in 1 file:
[553](https://github.com/code-423n4/2024-03-pooltogether/blob/main/pt-v5-vault... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 depositable shortToken amount calculation in Delta neutral vaults
### Description
### Relevant GitHub Links
https://github.com/Cyfrin/2023-10-SteadeFi/blob/0f909e2f0917cb9ad02986f631d622376510abec/contracts/strategy/gmx/GMXReader.sol#L264-L270
## Vulnerability Details
When calculating the maximu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | other | false | false | ## Medium: Chainlink Functions HTTP request is missing authentication
### Description
The `source` constant defined within `AutoRedemption` is used to execute the corresponding JavaScript code within the Chainlink Functions DON; however, the target API endpoint is exposed without any form of authentication which allow... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User might have access to tokens, stored on contract's balance. LockZap.sol: zapWETH().
### Description
**Description**
In case the user passes a parameter _from' equal to the address of LockZap.sol, WETH won't be transferred from msg.sender to address(this), and the contract will use WETH stored on LockZap's... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | false | false | ## Low: Some conditions will only work with 18 decimals tokens
### Description
**Severity**: Low
**Status**: Acknowledged
**Description**
The `upgradeStakeTokens()` function in `staking.sol` implements a require statement that checks the maximum number of staked tokens. This require statement assumes that the token... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: | Two Names For One Token
### Description
**Description**
Names could be transferred to an NFT with an existing name but the `tokenByName` mapping still contains the overwritten name pointing to the NFT. As a result, two different names may point to the same NFT.
Consider the following scenario:
1. Alice 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 | flash-loan | false | false | ## Low: CC `Re: WP-C2` from the WatchPug third report
### Description
Neither of the suggested fixes have been applied, since the `msg.sender` can still be a different account rather than the receiver in [`Flashlender#flashloan()`](https://github.com/code-423n4/2024-07-loopfi/blob/57871f64bdea450c1f04c9a53dc1a78223719... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use a two-step ownership transfer approach
### Description
There are 4 method with the `onlyOwner` modifier which shows that the `owner` role is an important one. Make sure to use a two-step ownership transfer approach by using `Ownable2Step` from OpenZeppelin as opposed to `Ownable` as it gives you the securi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Owner's password stored in the `s_password` state variable is not a secret and can be seen by everyone
### Description
The protocol is using a `private` state variable to store the owner's password under the assumption that being a "private" variable its value is a secret from everyone else except the owner; ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | rounding | false | false | ## Gas: Reward threshold can be denominated in WAD instead of basis points
### Description
The reward threshold is denominated in basis points but is scaled to WAD for reward calculations. This scaling becomes redundant if the reward threshold is denominated in WAD instead.
### Recommendation
There is sufficient spac... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.