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 | high | other | false | false | ## High: CDP.sol update overwrites user's credit on every positive increment
### Description
_Submitted by harleythedog_
#### Impact
Within `CDP.sol` () there is a function called update. This function slowly decreases the debt of a position as yield is earned, until the debt is fully paid off, and the idea is then ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `approveMax` variable causes problems
### Description
The `approveMax` variable controls whether the liquidity value is used, or the maximum is used. If the result of that check doesn't match what was provided during signature generation, the `permit()` call will fail, so in the best case the variable has no e... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | true | false | ## Medium: The sorting logic is not strict enough
### Description
When the seller finalizes his auction, all bids are sorted according to the `quotePerBase` and it's calculated using the `FixedPointMathLib.mulDivDown()`.
And the earliest bid will be used first for the same `quotePerBase` but this ratio is not strict ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Standardize `tierId` to either `uint8` or `uint256` avoiding constant conversions back and forth
### Description
**Description:** Standardize `tierId` to either `uint8` or `uint256` avoiding constant conversions back and forth.
**Impact:** Having different types for `tierId` means it has to be converted but 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... | solodit_api | medium | initialization | true | true |
<https://github.com/code-423n4/2022-12-tigris/blob/588c84b7bb354d20cbca6034544c4faa46e6a80e/contracts/Trading.sol#L178-L179>
<https://github.com/code-423n4/2022-12-tigris/blob/588c84b7bb354d20cbca6034544c4faa46e6a80e/contracts/Trading.sol#L734-L738>
When `initiateMarketOrder` is called, `_marginAfterFees` are calcu... | Code4rena | 4 | Tigris Trade |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Trapped Items when the Item Address Is Updated During Active Quests
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `eacc01d66462e85967df2acaef53161d2af0d532`. The client provided the following explanation: We make the Item and Avatar immutable. They should only be mutated in the case... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `checkpoint.timestamp` inside `VotingEscrow` never used
### Description
The design of `checkpoint` in `VotingEscrow` is to record the delegatee's information at the time of execution. This is necessary for optimization and for querying how much a `tokenId` was delegated to a specific address at a given time... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: BAMM.withdraw may burn shares but return nothing
### Description
The `withdraw()` function contains the following check:
```solidity
if(thusdAmount > 0) thusdToken.transfer(msg.sender, thusdAmount);
```
This check is to account for the case of a 0 value transfer. In that case, it may be best to just revert a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | flash-loan | false | false | ## High: LP pricing formula is vulnerable to flashloan manipulation
### Description
_Submitted by shw_
The LP pricing formula used in the `burnAsset` function of `LimboDAO` is vulnerable to flashloan manipulation. By swapping a large number of EYE into the underlying pool, an attacker can intentionally inflate the 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 | gas | other | true | false | ## Gas: Avoid contract existence checks by using low level calls
### Description
Prior to 0.8.10 the compiler inserted extra code, including `EXTCODESIZE` (**100 gas**), to check for contract existence for external function calls. In more recent solidity versions, the compiler will not insert these checks if the exter... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | storage | false | false | ## Gas: Reorder structure layout
### Description
The following structures could be optimized moving the position of certain values in order to save a lot slots:
**Reference:**
- https://ethdebug.github.io/solidity-data-representation
> Enums are represented by integers; the possibility listed first by 0, the next ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improper array initialization causes an index "out of bounds" error
### Description
In `createPools` of `UlyssesFactory.sol`, the return parameter `poolIds` is used to store new pool Ids after creation. However, it has not been initialized. This causes an index "out of bounds" error when `createPools` is 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 | medium | other | true | false | ## Medium: Delegate architecture forces users to set zero slippage
### Description
The design of the delegate forces users to set a zero value for the `_minReturnedTokens` parameter when calling `pay()` in the terminal.
#### Technical details
In order to implement the swap functionality, the JBXBuybackDelegate needs... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Dstswapper.processtx an attacker can use multiple destination swaps back and forth to inflate xchain deposit
### Description
A malicious user can use multiple back and forth swaps to inflate the amount of deposit. The operator calling `DstSwapper` can process swaps in batch for a given `payloadId`. If the pa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Malicious Actors Can Exploit Incorrect USDa-USDT Price in redeemUSDT Function to Drain Funds
### Description
In the `redeemUSDT` function of the CDS contract, the USDA and USDT prices are supplied by the user without any validation for accuracy. This lack of verification allows an attacker to input fraudulent... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The Protocol breaks the Allowance Mechanism of the NFTs
### Description
### Impact
The user loses their approved entities
### Proof of Concept
The protocol transfers the Position NFT from the position owner to the protocol and back to the position owner to execute the actions.
List of occurrences
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 | low | token | false | false | ## Low: Use SafeMint when minting new dNFTs
### Description
Both mint() functions to mint new dNFTs have a to field to input who will receive the NFT. This can be dangerous in the event that a user specifies a contract address that is not set up to handle NFTs, and the dNFT gets stuck.
This is harmful to the user, bu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unsafe use of transfer()/transferFrom() with IERC20
### Description
Some tokens do not implement the ERC20 standard properly but are still accepted by most code that accepts ERC20 tokens. For example, Tether (USDT)'s `transfer()` and `transferFrom()` functions on L1 do not return booleans as the specification ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: registerFunctionSelector Can Be Front-Run and DoS'ed
### Description
The [`registerFunctionSelector` function](https://github.com/latticexyz/mud/blob/12a9eb1afb18a7f7cb43d774cabb2d5af7c74e6b/packages/world/src/modules/core/implementations/WorldRegistrationSystem.sol#L171) is used to register system function... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | signature | false | false | ## Medium: Using the same signature multiple times
### Description
**Severity**
**Impact:** Medium, createSigner signs for the exact amount for a given sale, but in fact, it can be any amount in the end
**Likelihood:** Medium, easily available, requires receiving a signature only once for a private sale
**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 | medium | dos | false | false | ## Medium: DOS attack prevents refunding previous bid in Shortfall.sol and malicious bidder always wins the auction
### Description
The auction logic in `Shortfall.sol` refunds the previously accepted (highest) bid when a new acceptable bid is placed via the `placeBid` function.
It is important that this refund succe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Method could return 0 based on oracles returned decimals feeds
### Description
**Description**
In contract Boba Deposit Paymaster, function "getTokenValueOfEth" is translating a given value amount of ethereum into the underlying token amount, for that the business logic is using oracles to query for values 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 | medium | liquidation | true | false | ## Medium: The share conversion rate may be zero even if the Absorber is not empty
### Description
After a stability pool liquidation by the Absorber contract, the `update` function is used to update the shares of seized collateral that stakers are entitled to. In addition, if the amount of yin in the stability pool b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | true | false | ## Medium: `Claim/Redeem` Functionality Is Executed For The Token Owner Instead For the Current User
### Description
In the `TokTokNft` contract, the `claim()`, `claimAll()`, `redeem()`, `redeemAll()` and `claimToken()` functions can be executed by any user, not just the owner of a specific NFT. This is problematic be... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fees are overcharged because they are calculated before adjusting `net_sol`
### Description
_Resolved_
The protocol adjusts the `net_sol` value by subtracting excess amounts after initial computation. However, the **fees are calculated using the old (larger) `net_sol` value** before the adjustment takes place... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [N‑04] `public` functions not called by the contract should be declared `external` instead
### Description
Contracts [are allowed](https://docs.soliditylang.org/en/latest/contracts.html#function-overriding) to override their parents' functions and change the visibility from `external` to `public`.
*There are ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | access-control | false | false | ## Gas: Functions guaranteed to revert when called by normal users can be marked `payable`
### Description
If a function modifier such as `onlyOwner` is used, the function will revert if a normal user tries to pay the function. Marking the function as `payable` will lower the gas cost for legitimate callers because 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: Missing gaps in upgradeable contracts with inheritance hierarchy
### Description
The **SiloedPinto** contract and its parent contract **AbstractSiloedPinto** are upgradeable contracts. They store a significant amount of state, and the external protocol integrations are also upgradeable. However, there are gaps... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: It is possible to use an interface rather than a complete contract. This will save bytecode.
### Description
**Recommendation**:
Use call instead of a transfer for the Ether. Since the gasLimit for the transfer is limited to a
constant number, sometimes it happens that there is not enough gas for the transfer.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | integer-overflow | true | false | ## Low: Round up fee against users
### Description
Solidity by default rounds down, but generally fees should be rounded up against users. Using Solady's [library](https://github.com/Vectorized/solady/blob/main/src/utils/FixedPointMathLib.sol) is significantly more efficient than OpenZeppelin:
```solidity
import {Fixe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: | Mutability Modifiers
### Description
**Description**
The `_beetsAlloc`, `_dfyAlloc`, `_treasuryAlloc`, mintFees, and `_earnAmount` variables are never modified, and should therefore be declared `constant`.
**Recommendation**
Declare them as `constant`.
**Resolution**
Ultimate Fantoms: Resolved, applied ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong hunter address is used.
### Description
**Description**
Disqualifier.sol: processUserWithBounty().
Parameter_hunter' is never used. Based on the logic of the function and a similar function processUsersWithBounty(), where parameter '_hunter' is passed to the internal function, the same should happen in... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | token | true | false | ## High: Strategy migrations can be problematic and should be avoided
### Description
If they are not performed manually, strategy migrations can have serious effects on the security and correctness of the vaults. It is best to disallow them and to instead force strategies to be re-added.
Governance can trigger a str... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing docstrings
### Description
Throughout the [codebase](https://github.com/pods-finance/yield-contracts/tree/c4b401ce674c24798de5f9d02c82e466ee0a2600/contracts/), there are several parts that do not have docstrings. For instance:
* [Line 5](https://github.com/pods-finance/yield-contracts/tree/c4b401ce67... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: 12] Fee-on-transfer tokens are not supported by FuelERC20GatewayV4 and can be stolen from it
### Description
**Severity:** Medium
**Path:** fuel-bridge/packages/solidity-contracts/contracts/messaging/gateway/FuelERC20Gateway/FuelERC20GatewayV4.sol#L268-L269
**Description:**
`FuelERC20GatewayV4` does not ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Goldilend.liquidate()` might revert due to underflow
### Description
**Severity:** Medium
**Description:** In `repay()`, there would be a rounding during the `interest` calculation.
Here is a possible scenario.
- There are 2 borrowers of `borrowedAmount = 100, interest = 10`. And `outstandingDebt = 2 * ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: RocketDAOProposal - expired, and defeated proposals can be canceled ✓ Fixed
### Description
The `RocketDAOProposal.getState` function defaults a proposal’s state to `ProposalState.Defeated`. While this fallback can be considered secure, the remaining code does not perform checks that prevent defeated proposals... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Chainlink pricer is using a deprecated API
### Description
According to Chainlink's documentation, the latestAnswer function is deprecated. This function might suddenly stop working if Chainlink stop supporting deprecated APIs. And the old API can return stale data.
### Proof of Concept
[PriceOracleImplem... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: PubdataSource Does Not Account for Validium Mode
### Description
The `Executor` facet can handle two sources of public data inputs when committing batch information from L2: calldata and EIP-4844 blobs. This data is expected to be present when the chain operates in `Rollup` mode. However in `Validium` mode, no... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: UniswapV3’s path issue for swapExactOutput
### Description
## Handle
cmichel
## Vulnerability details
UniswapV3 expects a path object like `(tokenA, feeAB, tokenB, feeBC, tokenC)`.
The `UniV3Trader.swapExactOutput` code tries to reverse this path to get to `(tokenC, feeBC, tokenB, feeAB, tokenA)` but 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 | access-control | false | false | ## Low: Role granting logic in revoking functions.
### Description
**Description**
1. StWSX.revokeRole() In case the role passed as an argument is not the same as the oracle and admin role, the role will be used as a role grant for the user and not the other way around.
2. StWSX.renounceRole() In case the role passed... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential for atBTC to Have Different Decimals from BTC
### Description
The atlas protocol enables users to stake their native BTC within Bitcoin staking platforms and get a corresponding amount of atBTC tokens on their preferred wallet, whether it's EVM or NEAR, which can be used in DeFi protocols while the 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 | medium | access-control | false | false | ## Medium: [M-01] Allocation can start before registration ends. Which can break things in strategies.
### Description
Source: https://github.com/sherlock-audit/2023-09-Gitcoin-judging/issues/751
## Found by
0xkaden, Kral01, WATCHPUG, ace13567, honeymewn, lemonmon, tnquanghuy0512
Allocation can start before registr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Refunding is not trustless
### Description
The crowdsale has logic to return the funds to original investors if the minimum cap is not reached (see[L437](https://github.com/CoinFabrik/ico/blob/142f43f3bec4afd0ffff3fce06946cf67cb0272f/contracts/Crowdsale.sol#L437)). However, this depends on the team from manual... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Relayer Addresses May Be Removed Unexpectedly
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `d47e50644a4ed63177cf98bf692e22c54c6d3aac`, `17764fee9a09fa1269f6fdfabdbaf07727aaec96`. The client provided the following explanation:
> A relayer is removed correctly
**File(s) affected:**... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Prevent zero amount transfers/minting
### Description
Many of the functions in the system can be called with `amount = 0`. This is not a security issue, however a “defense in depth” approach in this and similar cases may prevent an undiscovered bug from being exploitable. Most of the functionalities that were ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | oracle | true | false | ## Gas: Use custom errors rather than `revert()`/`require()` strings to save gas
### Description
Custom errors are available from solidity version 0.8.4. Custom errors save [**~50 gas**](https://gist.github.com/IllIllI000/ad1bd0d29a0101b25e57c293b4b0c746) each time they're hit by [avoiding having to allocate and store... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Choosing FeeIn is always more beneficial than FeeOut
### Description
**Severity**
**Impact:** Low, the difference is very small for the majority of swaps
**Likelihood:** High, FeeIn can be chosen on every swap
**Description**
Users can choose between `FeeIn` (fee on tokenIn-amountIn), or choose `FeeOut`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Missing Input Validation
### Description
**Update**
Addressed in: `b166e5b`. All the recommended validation checks have been added, with the exception of ensuring that the `maxFeeBasisPoints` will be less than a reasonable value. The auditing team still recommends adding this check. The client provided the fol... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: Lack of access controls in the GTC’s method get_account
### Description
The GTC’s `get_account` method returns the `AccountState` of a given address. The account state contains information including the IDs of neurons created on the account’s behalf and the total value of the account. Since the GTC address is ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Improper Update Of MaxHealthGroup
### Description
The `registerProductForId` function of `clearingHouse` is currently accepting any new health group number without any restrictions. This behavior updates the `maxHealthGroup` if the new value is greater than the current one.
### Recommendation
To fix this 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 | low | initialization | true | false | ## Low: Incorrect State Modification Order in lpWithdraw Function
### Description
The `lpWithdraw` function in the Vault contract violates the Checks-Effects-Interactions (CEI) pattern. The `lpWithdrawn` state variable is set to true after external interactions are performed, allowing for potential reentrancy attacks.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | true | ## Low: Potential for blockchain explorer griefing due to successful zero value transfers from non-approved callers
### Description
When `ERC20Referrer::transferFrom` is invoked from an address that has no approval given by the `from` address, execution reverts:
```solidity
// Compute the allowance slot and load its ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `configureOraclePrice` can be exploited if price exceeds fee
### Description
The `configureOraclePrice` function is used to set a new base price and annualized interest rate for a trading pair:
This base price is then used by the `calculatePrice` function to determine the effective swap price of tokens over 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... | solodit_api | medium | Business Logic | true | true |
If `finalLongPayout` is changed twice by admin fault, the market would be insolvent as it should pay more collateral than it has.
### Proof of Concept
If `finalLongPayout` is less than `MAX_PAYOUT`, it means the market is ended and `longToken Price = finalLongPayout, shortToken Price = MAX_PAYOUT - finalLongPayout`.... | Code4rena | 5 | prePO |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | overflow | true | false | ## Gas: Use a more recent version of solidity
### Description
Use a solidity version of at least 0.8.0 to get overflow protection without `SafeMath`
Use a solidity version of at least 0.8.2 to get compiler automatic inlining
Use a solidity version of at least 0.8.3 to get better struct packing and cheaper multiple sto... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Missing input validation in `PolygonFundFlowController.setMinTimeBetweenUnbonding`
### Description
**Description:** The `setMinTimeBetweenUnbonding` function from `PolygonFundFlowController` lacks input validation for the `_minTimeBetweenUnbonding` parameter, allowing it to be set to any value including zero 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 | other | false | false | ## Low: Use ManagedPoolFactory instead of BaseManagedPoolFactory to deploy the Balancer pool
### Description
Currently, the Aera Vault is using `BaseManagedPoolFactory` as the factory to deploy the Balancer pool, while Balancer’s documentation recommends and encourages the usage of `ManagedPoolFactory`.
Quoting the 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 | high | dos | true | false | ## High: Many cases `stEth::transferFrom` will transfer 1-2 less way, which would result in revert in consequent functions, because of not enough balance
### Description
When user calls `depositStEth`, he passes `_amount` param, which is set to `IERC20(stETH).safeTransferFrom()` func and then the sam `_amount` is pass... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `executeLimitOrder()` modifies open-interest with a wrong position value
### Description
The `PairsContract` registers the total long/short position that's open for a pair of assets, whenever a new position is created, the total grows accordingly.
However at `executeLimitOrder()` the position size that's 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 | token | false | false | ## Low: Ownership can be transferred to a restricted address
### Description
`sUSBD` prevents restricting the current `owner()` and `treasury` in `sUSBD::setRestrictedStatus`, and it also prevents setting `treasury` to an address with a non-`NONE` restricted status in `sUSBD::setTreasury`.
However, there is no equiva... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: OrderNFT theft due to ambiguous tokenId encoding/decoding scheme
### Description
The `encodeId()` function uniquely encodes `OrderKey` to a `uint256` number. However, the `decodeId()` function ambiguously can decode many `tokenId`s to the exact same `OrderKey`. This can be problematic due to the fact that 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 | front-running | false | false | ## Low: Slashing Process Vulnerable to Front-Running
### Description
Front-running attacks [5, 6] involve users watching the blockchain for particular transactions and, upon observing such a transaction, submitting their own transactions with a greater gas price. This incentivizes miners to prioritize the later transa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect game over check in `_checkTimeVictory` function
### Description
The game is considered ended when `block.number` is greater than or equal to the `P_GameConfig.getGameOverBlock()` value. This check is performed correctly in the `_onlyNotGameOver` modifier of the `EmpiresSystem` contract.
However, 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: Unnecessary field in Transaction struct
### Description
The [`scriptHash`](https://github.com/OpenBazaar/smart-contracts/blob/c4f02cdd41cb85d28bba637a01f20a8ee8bb04bd/contracts/escrow/Escrow_v1_0.sol#L38) [field](https://github.com/OpenBazaar/smart-contracts/blob/c4f02cdd41cb85d28bba637a01f20a8ee8bb04bd/contra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | signature | false | false | ## Medium: Use ECDSA library.
### Description
**Description**
CommonV1.sol, function initNewRoundSigned().
Current verification of signature did not work as intended during testing with Hardhat, ethers
and web3. Function executing failed on decoding r, s, v parameters from signature.
**Recommendation**:
Use ECDSA ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Medium: Incorrect limit check in `setWeightBands` function
### Description
**Severity**
**Impact:** Medium
**Likelihood:** Medium
**Description**
The `setWeightBands` function is used to set the weight bands of tokens. It takes in a `tokens` array, which contains the list of indices of the tokens to operate on.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | reentrancy | false | false | ## Low: Possible Reentrancy by Permissioned owner Account
### Description
The token transfer on line [103] of `DIMOVesting.sol` is an external call. If the owner can regain execution control during that call, they could potentially call `revoke()` for the same vest and keep draining out tokens. The impact of this 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 | low | other | false | false | ## Low: Missing checks in OPCM
### Description
The `OPContractsManager` functions as a deployment script for various on-chain deploys and upgrades. To prevent potential mistakes that could occur during these operations, it should enforce comprehensive validation checks, which are currently incomplete. This issue 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 | dos | true | false | ## Low: Unrestricted Token Approval
### Description
**Severity**: Low
**Status**: Resolved
**Location**: StaderHavenStakingManager.sol
**Description**
The smart contract includes a function called `maxApproveETHx` which approves the maximum amount of tokens to be transferred to an external contract, `StaderUserWit... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: directdepositintovault of superforms should check max slippage provided by user
### Description
When users want to deposit to superforms directly in the same chain, they can call `singleDirectSingleVaultDeposit` or `singleDirectMultiVaultDeposit` (see `SuperformRouter.sol#L25-L34`).
```solidity
/// @inheri... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## High: Swap function returns incorrectly scaled output token amount
### Description
The swap function’s output value is given per unit of liquidity in the given pool, but it is not scaled by the pool’s total liquidity. As a result, users will not receive the number of tokens that they expect on swaps:
```solidity
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: LACK OF VALIDATION UPON BRIDGE REMOVAL
### Description
`AssetInfo` instances do not normalize capitalization, taking as different assets `ULUNA` and `uluna`. When using the `update_bridges` function to remove bridges, if a different capitalization was used on the elements of the `remove` parameter the operatio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | flash-loan | true | false | ## Low: Unsafe Use of transfer() and transferFrom()
### Description
## Code Review Summary
## Severity
**Low Risk**
## Context
`BaseAdapter.sol#L117-137`
## Situation
The function `flashLoan()` in `BaseAdapter.sol` uses the functions `transfer()` and `transferFrom()`. However, in the rest of the source code, `safeT... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The Drift protocol fee is prohibitively expensive
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `617b92257ede7a3c039bd76be7c7cd0ec1864798`.
**File(s) affected:**`src/replaceable/TransferPoolFeeCalculator.sol`
**Description:** The expected value of arbitraging a price drift betwee... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No need to limit `settlementNonce` input to uint32
### Description
*There are 2 instances of this issue:*
https://github.com/code-423n4/2023-09-maia/blob/f5ba4de628836b2a29f9b5fff59499690008c463/src/RootBridgeAgent.sol#L135C1-L137C6
Mapping `getSettlement` supports `type(uint256).max - 1` number of nonces; w... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Check for valid pool in `RewardsDistributor::depositLPSolidEmissions`, `depositLPTokenIncentive` and `_collectPoolFees`
### Description
**Description:** `RewardsDistributor::depositLPSolidEmissions` and `depositLPTokenIncentive` contain no validation that `pool` is a valid pool address, while `depositVoteIncen... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Rounding of the standard deviation value may deprive voters of rewards
### Description
The `ExchangeRateBallot.StandardDeviation` function calculates the standard deviation of the exchange rates submitted by voters. To do this, it converts the variance into a float, prints its square root to a string, and pars... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: owner cannot be updated
### Description
The owner cannot be updated after contract deployment. If the private key or access to the owner is at risk of being stolen, you will not be able to update the owner. The owner has the privilege of withdrawing all the rewards and configuring user and total limits for dep... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Cannot recover unclaimed airdrop tokens
### Description
The Airdrop contract includes a recoverWrongToken function that allows the owner to withdraw tokens mistakenly sent to the contract, except for the main airdrop token. However, there is no mechanism for the owner to recover unclaimed airdrop tokens. 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 | access-control | false | false | ## Low: `LogPrivilegeChanged` does not adequately describe the change
### Description
`LogPrivilegeChanged(addr, priv)` is emitted when the privilege of `addr` is changed to `priv` (`AmbireAccount.sol#L115`) (also in the constructor, but there it is first set, rather than changed). Since the previous value is not emit... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | flash-loan | true | false | ## High: Wrong implementation of function LBPair.setFeeParameter can break the funcionality of LBPair and make user’s tokens locked
### Description
## Lines of code
https://github.com/code-423n4/2022-10-traderjoe/blob/79f25d48b907f9d0379dd803fc2abc9c5f57db93/src/LBPair.sol#L905-L917
## Vulnerability details
## Vul... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Casting of `lastUpdateIndex` to uint240 despite being uint248
### Description
In `ERC20AaveLMUpgradeable._registerRewardToken()`, **lastUpdatedIndex** is cast to **uint240**.
https://github.com/aave-dao/aave-v3-origin/blob/f02fcb2d6ac2e08aa6bf6a8a0d38f6786cc1809a/src/contracts/extensions/static-a-token/ERC20A... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | true | Source: https://github.com/sherlock-audit/2023-02-union-judging/issues/39
## Found by
ast3ros
## Summary
When staker or borrower cancel the voucher, the `voucherIndexes` for the lastVoucher is not updated.
## Vulnerability Details
The voucherIndexes is not updated when a voucher is cancelled.
## Impact
It lead... | Sherlock | 5 | Union Finance Update |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redundant Checks
### Description
## Ride Cancellation Logic
In the context of `rider_cancel_ride`, `driver_cancel_ride`, and `admin_cancel_ride`, it's important to check the ride’s state before updating it.
## Redundant Check
The check:
is redundant. This is because the state is updated inside the conditi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use ```safeTransferOwnership``` instead of ```transferOwnership``` function
### Description
`Position.sol#L12`
`PositionMetadata.sol#L8`
function is used to change Ownership from .
Use a 2 structure transferOwnership which is safer.
, use it is more secure due to 2-stage ownership transfer.
### Recomme... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Use .call(...) for ETH withdraw rather than .transfer(...)
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
In commit e15dd1, method withdrawETH(...) has been added in Contract NarwhalPriceAggregator.sol which uses .transfer() to send all the contacts ETH to the recipient ad... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The pre-image of DIAMOND_STORAGE_POSITION 's storage slot is known
### Description
The preimage of the hashed storage slot `DIAMOND_STORAGE_POSITION` is known.
### Recommendation
It might be best to subtract 1 so that the preimage would not be easily attainable. As an example, this is the technique that OpenZ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: To prevent duplicate ids in `_batchBurn`, enforce ascending order instead of nested `for` loops
### Description
**Description:** In `_batchBurn` to prevent duplicate ids, instead of using nested `for` loops it is more efficient to [enforce ascending order of ids](https://x.com/DevDacian/status/1734885772829045... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The `pay()` function can still be DOSed
### Description
_Submitted by IllIllI_
From the prior contest:
> in the pay() function users repay their debt and in line 364:
>
> it decreases their debt.
>
> lets say a user wants to repay all his debt, he calls the pay() function with his full debt.
> an attacke... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Receiver doesn't always reset allowance
### Description
The function `_swapAndCompleteBridgeTokens()` of Receiver resets the approval to the executor at the end of an ERC20 transfer. However, if there is insufficient gas, the approval is not reset. This allows the executor to access any tokens (of the same ty... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Table Registration
### Description
*This issue was independently identified and fixed by the Lattice team during the audit.*
The Core module [registers the tables it uses](https://github.com/latticexyz/mud/blob/12a9eb1afb18a7f7cb43d774cabb2d5af7c74e6b/packages/world/src/modules/core/CoreModule.sol#L8... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unused Errors, Events and Variables
### Description
There were identified unused errors in the following lines:
https://github.com/MetaLex-Tech/MetaVesT/blob/b614405e60bce8b852e46d06c03fd47b04d86dde/src/MetaVesTController.sol#L107,
https://github.com/MetaLex-Tech/MetaVesT/blob/b614405e60bce8b852e46d06c03fd47b0... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | cross-chain | false | false | ## High: Slow relays on multiple chains
### Description
In each root bundle, the [slowRelayRoot](https://github.com/across-protocol/contracts-v2/blob/bf03255cbd1db3045cd2fbf1580f24081f46b43a/contracts/HubPool.sol#L63) represents all the slow relays in a batch, which could involve multiple tokens and spoke pools. A val... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Outdated Curve StableNG Factory Address
### Description
### Proof of Concept
Take a look at [LaunchPadUtils.sol# L18](https://github.com/code-423n4/2024-11-lambowin/blob/main/src/Utils/LaunchPadUtils.sol# L18):
The protocol is using an outdated Curve StableNG Factory address. According to the [Curve documen... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No restrictions on minting to invalid recipients
### Description
Certain transfer restrictions imposed in the LUSD ERC20 token are not properly handled during the minting. The Liquity ERC20 contracts forbids any transfer to a special set of addresses specified in the `_requireValidRecipient` function:
```soli... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Not calling approve(0) before setting a new approval causes the call to revert when used with Tether (USDT)
### Description
## Lines of code
https://github.com/code-423n4/2022-04-dualityfocus/blob/f21ef7708c9335ee1996142e2581cb8714a525c9/contracts/vault_and_oracles/FlashLoan.sol#L48
https://github.com/code... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Any liquidators can pretend to be a loan contract to validate offers, due to insufficient validation
### Description
Accepted callers in a loan manager (e.g. `Pool.sol`) can be [either liquidators or loan contracts](https://github.com/code-423n4/2024-04-gondi/blob/b9863d73c08fcdd2337dc80a8b5e0917e18b036c/sr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Overpayment for NFTs
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `6865fb18def69825a2b5b2754acab8ce3e9c8907`. The client provided the following explanation:
> As recommended, we have added a check to require the exact amount to be sent for the token.
**File(s) affected:**`NFT721`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inaccessible code when retrieving Merkle roots
### Description
There is an inaccessible [`if` block](https://github.com/ethereum-optimism/contracts/blob/18e128343731b9bde23812ce932e24d81440b6b7/contracts/optimistic-ethereum/libraries/utils/Lib_MerkleTree.sol#L36-L38) in the `getMerkleRoot` function of the `Lib... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.