prompt listlengths 2 2 | source stringclasses 3
values | severity stringclasses 5
values | category stringclasses 186
values | has_code bool 2
classes | has_poc bool 2
classes | reference_response stringlengths 23 5k | firm stringclasses 26
values | quality_score float64 0 5 | protocol stringclasses 398
values |
|---|---|---|---|---|---|---|---|---|---|
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Missing Input Validation
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `eacc01d66462e85967df2acaef53161d2af0d532` and `a9a75efe6a657cb36c96d614287073b5dc83db34`.
**File(s) affected:**`RenovaCommandDeckBase.sol`, `RenovaAvatarBase.sol`
**Description:** It is important to validate i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Misleading or incomplete inline documentation
### Description
Throughout the codebase, a few instances of misleading and/or incomplete inline documentation were identified and should be fixed.
The following are instances of incomplete inline documentation:
* All [constants](https://github.com/1inch/fixed-r... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | false | false | ## Medium: liquidateFrom does not use tradingLotSize
### Description
In the `Perpetual` contract, within the function `liquidateFrom` there is a check that the [`maxAmount` to be liquidated is a multiple of `lotSize`](https://github.com/mcdexio/mai-protocol-v2/blob/4b198083ec4ae2d6851e101fc44ea333eaa3cd92/contracts/pe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TRST-H-3 disordered fee calculated causes collateral changes to be inaccurate
### Description
**Description:**
`_increasePosition()` changes the Hedger’s GMX position by **sizeDelta** amount and
**collateralDelta** collateral. There are two **collateralDelta** corrections - one for swap fees and
one for pos... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Centralization Risk
### Description
In the current implementation setup, the owner is meant to be a single Externally Owned Account (EOA) which could potentially introduce security risks regarding single points of failure or mismanagement.
Specifically, the `withdrawLRT()` function is decorated with the `notP... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 admin access control
### Description
The `register_contracts`function does not have an access control associated with an admin/owner address, instead it relies on the situation where the contracts are not yet configured.
Although the probability of accessing the market contract right after instantiati... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: CoreCollection: Starting index is pseudo-randomly generated, allowing for gameable NFT launches
### Description
_Submitted by hickuphh3_
In Paradigm’s article *[“A Guide to Designing Effective NFT Launches”](https://www.paradigm.xyz/2021/10/a-guide-to-designing-effective-nft-launches),* one of the desirabl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Initialization and Non-Zero Address Checks
### Description
Several critical parameters and addresses are not validated upon initialization. Specifically, there are no validations in the `LOB` [constructor](https://github.com/longgammalabs/hanji-contracts/blob/09b6188e028650b9c1758010846080c5f8c80f8e/src/Onchai... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | storage | false | false | ## Medium: Block depth used does not offer guarantees against reorgs under edge cases
### Description
## Severity: Medium Risk
**Context:** cdk-dinero-keeper/src/functions/update-validator-stats/index.ts#L226
**Description:**
The Ethereum chain finalizes roughly every 2 epochs (64 slots); at this point, the network... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use assembly to emit an `event`
### Description
To efficiently emit events, it's possible to utilize assembly by making use of scratch space and the free memory pointer. This approach has the advantage of potentially avoiding the costs associated with memory expansion.
However, it's important to note that in ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | true | false | ## Low: [04] Using `delegatecall` inside a loop may cause issues with `payable` functions
### Description
If one of the `delegatecall` consumes part of the `msg.value`, other calls might fail, if they expect the full `msg.value`. Consider using a different design, or fully document this decision to avoid potential iss... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: FLOATING PRAGMA
### Description
`AllocationVester.sol` contract uses the floating pragma `^0.8.0`. The contract should be deployed with the same compiler version and flags that they have been tested with thoroughly. Locking the pragma helps to ensure that contracts do not accidentally get deployed using, for 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 | high | liquidation | false | false | ## High: Loans can be liquidated without checking loan duration
### Description
**Description**:
In the provided forceLiquidateExpiredLoan function, it appears that loans are automatically liquidated if the current timestamp is beyond the loan's expiration buffer. However, the function does not account for the loan'... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing cap on `LicenseFee`
### Description
_Submitted by gzeon, also found by 0x0x0x and TomFrenchBlockchain_
There is no cap on `LicenseFee`. While change of `LicenseFee` is under 1 day timelock, introducing a\
`maxLicenseFee` can improve credibility by removing the "rug" vector. There is a `minLicenseFe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Dust losses in notifyRewardAmount
### Description
This should cause dust losses which are marginal but are never queued back. See private link to [code-423n4/2022-10-3xcalibur-findings#410](https://code-423n4/2022-10-3xcalibur-findings#410).
Vs SNX implementation which does queue the dust back.
Users may 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 | high | initialization | true | false | ## High: InvestmentManager::_deleteOffer should subtract escrowAmount instead of $.offers[id].amount
### Description
When an investor submits an offer to DealManager, the payment is initially escrowed, waiting for the offer to be reviewed by an Originator. If, after a delay of `offerEscrowPeriod` (initially 5 days), t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | true | false | ## Low: Unused and unset timeouts in Arbitrator's JIT code
### Description
There are potential issues with timeouts in the Arbitrator’s JIT code:
1. Read and write operations for sockets created in the `ready_hostio` function (Figure 30.1) have no timeouts. If the server the Arbitrator connects to does not send any 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 | low | other | false | false | ## Low: Some Functions Are Not ERC-4626 Compliant
### Description
Since the `TruStakeMATICv2` contract is an [ERC-4626](https://eips.ethereum.org/EIPS/eip-4626) vault, it is important that it complies with all the specifications of the standard. Some functionality of the vault diverges from the standard:
* The `maxD... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: Lack of Event Emission in Privileged Functions
### Description
**Severity**: Informational
**Status**: Resolved
**Location**: Vesting.sol, VestingFactory.sol, TokenSale.sol, Admin.sol
**Description**
During the security audit of the smart contract, an issue has been identified in the implementation of priv... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Stuck Rebase Rewards Due to Internal Balance Tracking
### Description
The issue is identified within the function `_deposit` of contract `EnjoyoorsVaultDeposits`.
The contract implements internal balance tracking through `userSupply[token][msg.sender] += amount` which does not account for rebasing tokens. Re... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | overflow | true | false | ## High: in `farmPlots()` an underflow in edge case leading to freeze of funds (NFT)
### Description
### Impact
The user won't be able to farm their plots or `unstake` due to the txn always panic reverting. Leading to loss of funds and DOS.
### Proof of Concept
The problem arises whenever `PRICE_PER_PLOT` gets incr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Blacklisted Addresses Can Still Send USDz and sUSDz
### Description
Upon inspection, it was noted that blacklisted accounts retain the ability to send both USDz and sUSDz tokens without restriction. The issue stems from the `_update()` function, present in both USDz and sUSDz contracts, responsible for updati... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `calcPoolValue` and `calcPoolValueSome` are exactly the same
### Description
**Severity**: Low
**Status**: Resolved
**Description**
In Contract AFiStorage, methods calcPoolValue(...) and calPoolValueSome(...) are implemented the same way with the same logic.
One method should be enough to execute the logic... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | reentrancy | true | false | ## High: RocketMinipoolDelegateOld - Node operator may reenter finalise() to manipulate accounting ✓ Fixed
### Description
In the old Minipool delegate contract, a node operator may call the `finalise()` function to finalize a Minipool. As part of this process, a call to `_refund()` may be performed if there is a node... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [4] Using `calldata` instead of `memory` for read-only arguments in `external` functions saves gas
### Description
When a function with a `memory` array is called externally, the `abi.decode()` step has to use a for-loop to copy each index of the `calldata` to the `memory` index. Each iteration of this for-loo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Useless Token Execution Functions Present in AxelarExecutable Contract
### Description
The `AxelarExecutable.sol` contract contains two token execution functions that are never used throughout the codebase:
```
function executeWithToken(
bytes32 commandId,
string calldata sourceChain,
string calldata so... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | front-running | true | false | ## High: Pool value does not consider the open funding fees
### Description
The pool's value is not considering a vital component: the open funding fees. The pool value is used when calculating staking token mint/redeem shares, and since the funding fees are not accounted for, minting/redeeming of shares will not be a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | overflow | false | false | ## Medium: Missing Zero Value Validation in MIMC Library Leading to Out-of-Gas Error ✓ Fixed
### Description
In the `hash` function of the `Mimc` library, there is no validation of the length of the `_msg` variable. The `_msg` is divided into `chunks` in the `assembly` block, and after that, there is an iteration over... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | other | true | true | ## Low: Forwarder can be frozen and still receive and claim payouts while frozen
### Description
If the forwarder is frozen before the first payout then they don't receive and can't claim any payouts while frozen.
But if the forwarder is frozen after the first payout, then they do receive and can claim payouts while ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | dos | true | false | ## Gas: Function might consume too much which might cause a DOS
### Description
https://github.com/code-423n4/2024-01-curves/blob/516aedb7b9a8d341d0d2666c23780d2bd8a9a600/contracts/FeeSplitter.sol#L52-L61
Calling `getUserTokens(user)` basically tries to retrieve all `userTokens` which are tracked by the mapping `us... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Owner should be multisig and should use a timelock
### Description
**Description:**
In the current implementation owner is not a multisig and timelock is not being used.
**Recommendations:**
Owner should be multisig and timelock should be implemented for better transparency. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: _harvestCore() roi calculation error
### Description
## Lines of code
https://github.com/code-423n4/2023-02-ethos/blob/73687f32b934c9d697b97745356cdf8a1f264955/Ethos-Vault/contracts/ReaperStrategyGranarySupplyOnly.sol#L141
## Vulnerability details
## Impact
_harvestCore() roi calculation error,may doubl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 error messages
### Description
**Update:** *Fixed in [pull request #53](https://github.com/endaoment/endaoment-contracts/pull/53).*
There are several require statements in the `Fund` and `EndaomentAdmin` contracts without error messages. In particular:
* In [line 188](https://github.com/endaoment/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 | high | signature | true | false | ## High: Replay Attack via Balance-Based Nonce
### Description
The protocol uses only the user's token balance as a nonce to prevent replay attacks:
```solidity
uint256 currentMakerBalance = order.makerToken.balanceOf(order.maker);
if (currentMakerBalance < order.nonceBalance) {
revert ReplayAttackDetected(currentM... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 check allows tokens to get stuck in EXRouter
### Description
The withdraw functions in `EXManager` perform a check to prevent tokens from accidentally getting stuck in the contract:
```solidity
if (recipient == address(this)) revert Errors.InvalidRecipient();
```
However, `EXRouter`, which implements... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The AgentPolice.distributeLiquidatedFunds() function can have undistributed residual funds ✓ Fixed
### Description
When an Agent is liquidated, the liquidator (owner of the protocol) is supposed to try to redeem as many funds as possible and re-distribute them to the pools:
**code/src/Agent/AgentPolice.so... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Prices can be proposed for inactive tokens
### Description
[Link to instance](https://github.com/code-423n4/2024-05-munchables/blob/57dff486c3cd905f21b330c2157fe23da2a4807d/src/managers/LockManager.sol#L142)
The function proposeUSDPrice() does not check if a token contract is inactive. This allows the price f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Checks-Effects-Interactions Violations
### Description
**Update**
Addressed in: `f4d94629df0eeb3fe5e27e94b989dc5289a5429a`. The client refactored swap as per the suggestion.
**File(s) affected:**`Marketplace.sol`
**Description:** The [Checks-Effects-Interactions](https://solidity.readthedocs.io/en/latest/sec... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of Use of `SafeERC20` Library
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `3db6fee052c2f59296dbdc69572f9e59b973df9d`. The client provided the following explanation:
> Added SafeERC20 use when performing transfer or transferFrom
**File(s) affected:**`wstTAO.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 | high | initialization | false | false | ## High: Routers are exposed to extreme slippage if they attempt to repay debt before being reconciled
### Description
When routers are reconciled, the local asset may need to be exchanged for the adopted asset in order to repay the unbacked Aave loan. `AssetLogic.swapFromLocalAssetIfNeededForExactOut()` takes two key... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | true | false | ## Medium: Anyone can pause AuctionHouse in `_createAuction`
### Description
Any user can call `AuctionHouse::settleCurrentAndCreateNewAuction` in order to settle the old auction and create a new one. `settleCurrentAndCreateNewAuction` will call `_createAuction`, which code is shown below:
As we can see, it will try... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: An integer overflow in the cube stable market invariant calculation can make the AMM unusable for swaps
### Description
The cube stable market AMM’s invariant calculation can overflow when performing cube operations on large token supplies, exceeding TON's integer limits. The overflow will result in users losing ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | false | false | ## Gas: Use `!= 0` instead of `> 0` in HolyPaladinToken.sol
### Description
### Target codebase
[HolyPaladinToken.sol#L229](https://github.com/code-423n4/2022-03-paladin/blob/9c26ec8556298fb1dc3cf71f471aadad3a5c74a0/contracts/HolyPaladinToken.sol#L229)
[HolyPaladinToken.sol#L385](https://github.com/code-423n4/2022-03... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [FIXED] Elevated price in USD in the `getLiquidityTokenPrice` function leads to money theft from the pool in `ZunamiStratBase`
### Description
In the `deposit` function of the `ZunamiStratBase` contract, the cost of Curve pool LP tokens in USD is determined based on the current price received from the oracle.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: lack of `_refBps` value validation.
### Description
When users mint via `mintWithReferral` or `mintWhitelist` and provide valid referral data, it will transfer native ETH to `_refRecipient` with an amount calculated as `(_price * _refBps) / 10000`. However, there is no proper validation of `_refBps` that can 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 | oracle | false | false | ## Medium: Oracle data feed is insufficiently validated
### Description
_Submitted by throttle, also found by 0x1f8b, cccz, defsec, hack3r-0m, hyh, kenzo, leastwood, sirhashalot, TomFrenchBlockchain, WatchPug, and ye0lde_
Price can be stale and can lead to wrong `quoteAmount` return value
#### Proof of Concept
Orac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Cache array length outside of loops and consider unchecked loop incrementing.
### Description
\clearpage | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Move code to bring cohesion up
### Description
The event `FeePaid` and the `calculateFee` method should both be in `ArbitrumSwaps` instead of in `StargateArbitrum` since they have nothing to do with the Stargate logic, but are used in some swap/transfer scenarios. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | true | false | ## High: The operator can create a `NativeVault` that can be silently unslashable
### Description
An operator can create a `NativeVault` which always reverts when `slashAssets()` is called and make the vault unslashable.
### Proof of Concept
When an operator want to create a `NativeVault`, he call the `deployVaults(... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Tokens with more than `18` decimals will not be supported
### Description
**Description:** Currently, tokens with more than `18` decimals are not supported due to the decimals handling logic in [`StakingContract::_getPriceInUSD`](https://code.zeeve.net/zeeve-endeavors/benqi_smartcontract/-/blob/b63336201f50f9a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Attacker can claim more IL by manipulating pool price then `removeLiquidity`
### Description
_Submitted by gzeon_
#### Impact
Vader reimburse user IL immediately when user withdraw from the pool (VaderRouterV2.sol:L227), an attacker can therefore manipulate the pool balance causing a high IL, remove liquidi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | reentrancy | true | false | ## Medium: An attacker can wipe the orderbook in buyOrderFactory.sol
### Description
A malicious actor can wipe the complete buy order orderbook in `buyOrderFactory.sol`. The attack - excluding gas costs - does not bear any financial burden on the attacker. As a result of the exploit, the orderbook will be temporarily... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Precision Loss in `DenominatedOracle` Due to Order of Operations
### Description
The `getResultWithValidity` and `read` functions in the `DenominatedOracle`, when handling inverted price sources, perform a division before a multiplication. This leads to a loss of precision in the resulting value. Specifically,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | high | token | true | false | ## High: `USDs` self-backing breaks assumptions around economic peg-maintenance incentives
### Description
When `SmartVaultYieldManager::deposit` is called via `SmartVaultV4::depositYield`, [at least 10%](https://github.com/the-standard/smart-vault/blob/c6837d4a296fe8a6e4bb5e0280a66d6eb8a40361/contracts/SmartVaultYiel... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | reentrancy | false | false | ## Severity: Medium Risk
## Context
**File:** Periphery.sol
## Situation
The following functions allow for interaction with any adapter. These adapters could be malicious. No additional checks are made on the validity of the adapter. Through the adapter, a re-entrant call could be made, and no `nonReentrant` modifier... | Spearbit | 5 | Sense |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | rounding | true | true | ## Medium: Voting to change `RewardsInfo::voteRewardsCoefficient` has an unintended side-effect of retrospectively changing voting rewards for active proposals
### Description
`GovSettings::editSettings` is one of the functions that can be executed via an internal proposal. When this function is called, setting are 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 | high | dos | true | false | ## High: Denial of Service Risk Due to Frozen `token_escrow` in `ONFT::Adapter`
### Description
In the `init_ONft` instruction, the `token_mint` is set without validation, allowing the initialization of a `token_mint` with a `freeze_authority`. SPL tokens with a freeze authority can have their accounts frozen by the t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | true | false | ## Low: Risk of Division by Zero in Price Calculation
### Description
The `proposeSetPrice` function within the contract calculates a price based on the `lpTokenFarmBalance` and `synthTotalSupplyAllChains`. However, the division operation `(lpTokenFarmBalance * 10 ** 18) / synthTotalSupplyAllChains` is performed witho... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users can purchase vaults by paying less amount of funds than expected, even by the least
### Description
**Severity**: Critical
**Status**: Acknowledged
**Description**
Users call to `purchaseFirstVaults()` or `purchaseMoreVaults()` in `NodeSale.sol` in order to buy vaults. These functions receive `numb... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Protocol does not fully support ERC20 tokens with fees
### Description
[`WERC20`](https://github.com/AlphaFinanceLab/homora-v2/blob/5efa332f2ecf8e9705c326cffda5305bc6f752f7/contracts/wrapper/WERC20.sol) is a wrapper for `ERC20` tokens. The [`mint` function](https://github.com/AlphaFinanceLab/homora-v2/blob/5ef... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 integer under�low in CanisterState::available_memory
### Description
The `CanisterState::available_memory` function is used to determine how much memory a canister can use before exceeding the amount of memory allocated to it.
```rust
pub fn available_memory(&self) -> NumBytes {
self.memory_alloca... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Zeta token supply checker incorrectly classifies in-transit cctxs as settled resulting in misleading checks
### Description
The Zeta token supply checker delivers false positives, suggesting that there is a Zeta token supply mismatch.
### Proof of Concept
The `GetPendingCCTXInTransit` function in the `Zet... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Using address rather than bytes32 for destinationAddress in wstUsdcBridge#bridgeWstUsdc causes incompatibility with chains that utilize 32 byte addresses
### Description
**Details**
[WstUsdcBridge.sol#L44-L49](https://github.com/stakeup-protocol/stakeup-contracts/blob/b4d8a83e9455efb8c7543a0fc62b5aea598c7f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: NatSpec comments should be increased in contracts
### Description
It is recommended that all Solidity contracts are fully annotated using NatSpec for all public interfaces (everything in the ABI). It is clearly stated in the Solidity official documentation.
In complex projects such as DeFi, the interpretation... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: The Game should not be started with an empty gameId
### Description
`startGame` function has `gameId` param. This game id is set for each user that participates in the game: `playerGameId[player] = gameId;`
The function doesn't have a check that provided `gameId` is not empty. In case it is, then `isPlayerInG... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | reentrancy | true | false | ## High: BathToken.sol#_deposit() attacker can mint more shares with re-entrancy from hookable tokens
### Description
## Lines of code
https://github.com/code-423n4/2022-05-rubicon/blob/8c312a63a91193c6a192a9aab44ff980fbfd7741/contracts/rubiconPools/BathToken.sol#L557-L568
## Vulnerability details
`BathToken.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 | low | other | false | false | ## Low: Increase test coverage
### Description
There is less than complete test coverage of key contracts under review including `InvestmentManager.sol`, `LiquidityPool.sol`, and `PoolManager.sol`. Adequate test coverage (both line and branches) is an essential process in ensuring the codebase works as expected. Insuf... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Function Signature
### Description
## Deposit Issue in depositETHFor Function
The `depositETHFor` function fails unconditionally due to an incorrect utilization of `IWETH.deposit`. The signature of `IWETH.deposit` should be `deposit() external payable`. However, the signature `deposit(uint256) 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 | false | false | ## High: Processing Non-Existent Withdrawal Requests
### Description
Anyone can call `processWithdrawalRequests()` and process non-existent withdrawal requests, blocking future legitimate withdrawal requests.
The function `processWithdrawalRequests()` doesn’t check if `$.queuedWithdrawalHead` value is less than the l... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | Validation | true | false | ## Vulnerability Report
## Severity
**Medium Risk**
## Context
- `RootManager.sol#L102-106`
- `SpokeConnector.sol#L218-L221`
## Description
The owner can accidentally set `delayBlocks` to `0` (or a very small delay block), which will collapse the whole fraud protection mechanism. Since there is no check for a minimu... | Spearbit | 5 | Connext |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent Handling of Creation Fee when Burning Fees
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> Expect this to be fixed by the a CIP that reduces the create fee to zero.
**File(s) affected:**`daml/splice-amulet/daml/Splice/AmuletRule... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Functions with whenInitialized modifier can be called before initialization
### Description
The `InfraredUpgradeable` contract defines a modifier `whenInitialized` which is meant to be callable only when the contract has already been initialized (i.e., when `initialize` has been called). This modifier reverts i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | true | false | ## Low: Maximum number of Aragon DAO actions is not checked within the `DistributorManager`
### Description
**Description:** The `DistributionManager` generates actions for reward distribution but does not currently validate against the DAO's `MAX_ACTIONS` limit before calling `dao.execute()`. The Aragon DAO has a har... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 totalCoverTokens is not decreased after the claim happened
### Description
When the claim happens and the policy is removed, the `totalCoverTokens` should be decreased instantly, that’s why the scheduled reduction value is removed:
**code\_new/contracts/PolicyBook.sol:L228-L236**
```
PolicyHolder stor... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | rounding | true | false | ## High: Division before multiplication could lead to users losing 50% in `WithdrawalQueue`
### Description
In the `_getAvailable()` function, the calculation performs division before multiplication, which could result in precision loss. The consequence is that users may not be able to withdraw the amount they should ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `TribeRedeemer` will start redeeming incorrectly if someone transfer redeem tokens directly to it
### Description
_Submitted by rvierdiiev_
`TribeRedeemer` contract has one goal. It should take `_redeemedToken`(token that contract will accept from users), `_tokensReceived` - list of exchange tokens(this ar... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Parameter Setter | true | false | Source: https://github.com/sherlock-audit/2022-11-bond-judging/issues/16
## Found by
xiaoming90, 8olidity
## Summary
The create fee discount feature is found to be broken within the protocol.
## Vulnerability Detail
The create fee discount feature relies on the `createFeeDiscount` state variable to determine t... | Sherlock | 3 | Bond Protocol |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | true | false | ## Medium: `RiskFund.swapPoolsAsset` does not allow the user to supply deadline, which may cause swap revert
### Description
Not allowing users to supply their own deadline could potentially expose them to sandwich attacks.
### Proof of Concept
[RiskFund.sol#L174](https://github.com/code-423n4/2023-05-venus/blob/mai... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Liquidations are vulnerable to sandwich attacks
### Description
Token swaps that are performed to liquidate a position use a hard-coded zero as the “minimum-amount-out” value, making them vulnerable to sandwich attacks. The minimum-amount-out value indicates the minimum amount of tokens that a user will rec... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: `_swapUsdxToTitanX()` Is Incapable of Swapping USDx to TitanX Due to Incorrect Path
### Description
When `distributeUsdx()` is called to send the USDx in the contract to the `Stax Vault` contract address, it uses `_swapUsdxToTitanX()` to multihop swap from USDx to TitanX using USDC and WETH. The problem is tha... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 may silently overflow
### Description
Given `restakedValidatorsETH` and `nonRestakedValidatorsETH` may be set to arbitrary values by the vault owner, an erroneously set value for these variables will result in a silent overflow.
### Recommendation
Include a separate overflow / bounds check or r... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | flash-loan | true | false | ## High: Lack of slippage protection in deposit function
### Description
**Severity:** Medium
**Path:** src/leverage/LeverageStrategy.sol::deposit()#L125-L182
**Description:** The `deposit()` function in the `LeverageStrategy.sol` contract executes several key operations involving token transfers, asset borrowing, a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | overflow | false | false | ## Medium: Untested custom SafeMath library in use
### Description
Several contracts implement arithmetical operation functions based on [OpenZeppelin’s SafeMath](https://github.com/OpenZeppelin/openzeppelin-solidity/blob/v2.3.0/contracts/math/SafeMath.sol) library, customized to support safe mathematical operations 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 | medium | rounding | false | false | ## Medium: Oracle tick rounding the wrong direction can lead to Swapper overpaying for swap
### Description
The UniV3Oracle is intended to be used in situations where asset values can be understated, but must not be overstated. As a result, all results are rounded down to the nearest tick.
However, in the case of the... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | oracle-manipulation | false | false | ## Low: `BasisTradeVault::totalAssets` may undercount pocket-held funds
### Description
[`BasisTradeVault::totalAssets`](https://github.com/buttonxyz/button-protocol/blob/9002f2b0d05ba80039bd942c809dbe5bc1a252c9/src/BasisTradeVault.sol#L252-L283) currently depends on the (not-yet-finalized) oracle to report the Pocket... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Batch processing in the `collect`
### Description
The smart contract likely owns multiple `tokenIds` which should be `collect`-ed. We can batch that job to save transaction number and gas:
https://github.com/keep3r-network/StakingRewardsV3/blob/13ecc6966ae1a413f62224382bfd4d64b1a22351/contracts/StakingRewardsV... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | Check Return Value | false | false | Source: https://github.com/sherlock-audit/2023-05-blueberry-judging/issues/29
## Found by
0x52, nobody2018
## Summary
When a user adds to an existing position on AuraSpell, the contract burns their current position and remints them a new one. The issues is that WAuraPool will send all reward tokens to the contract ... | Sherlock | 3 | Blueberry Update #2 |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Transactions’ outputs are not being returned
### Description
The [`MetaTransactionWallet` contract](https://github.com/celo-org/celo-monorepo/blob/b2f0a58fcc7667d41585123aae5b24c47aa894f6/packages/protocol/contracts/common/MetaTransactionWallet.sol#L12) allows the [`signer` address](https://github.com/celo-org... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Minimum Pool Liquidity
### Description
## EmptyBank Assertion in `bank_math::compute_utilisation_bps`
The `EmptyBank` assertion in `bank_math::compute_utilisation_bps` ensures that the sum of `funds_available` and `funds_deployed` is always greater than zero. Without this check, the division in the calculatio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Transfers To The Risk Managers Might Revert
### Description
**Severity** - Low
**Status** - Resolved
**Description**
A user can sell his ETH for stable tokens using the SellETH function in VaultETH_V2 , it is possible that no ETH is left in the call/contract to compensate for the risk managers at L318 , 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 | medium | rounding | true | false | ## Medium: minVeFXSForMaxBoost can be manipulated to increase rewards
### Description
`minVeFXSForMaxBoost` is calculated based on the current spot price when a user stakes Uniswap V2 LP tokens. If an attacker manipulates the spot price of the pool prior to staking LP tokens, the reward boost will be skewed upward, 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 | false | ## High: Alchemix : ALCX rewards are currently subject to a 2-week delay before reaching to the gauges.
### Description
Report type: Smart Contract
Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/Voter.sol
Impacts:
- Temporary freezing of funds for 12 hours
## Description
## Brief/Intro
-... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users can avoid paying fees while trading trustlessly & using Golom's network effects
### Description
* If a maker makes below mentioned `AvoidsFeesContract` a [reservedAddress](https://github.com/code-423n4/2022-07-golom/blob/main/contracts/core/GolomTrader.sol#L220) and hides the info about how much they 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 | high | other | false | false | ## High: Keys for _balances mapping are inverted in _settleOrderIn() and _settleOrderOut()
### Description
Severity: High Risk
Context: Settlement.sol#L25, Settlement.sol#L124, Settlement.sol#L136
Description: In the Settlement contract, _balances is declared as a mapping of asset => owner => bal-
ance :
mapping(addre... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Using basis points for percentage is not precise enough for realistic use-cases
### Description
Using `10000` for `BASIS_POINTS` is not precise enough for the protocol use case.
### Impact
It may not be possible to distribute rewards with high enough precision, blocking many realistic use cases. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Usage rate is increased even when no debt is present in `LendingPool`
### Description
Lending and borrowing protocols offer interest rates for depositors so that they provide liquidity. RAAC does the same, where the deposit interest rates are coming from the extra funds borrowers need to repay. The protocol... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A linear increase in the withdrawal wait time for Lido for requests exceeding 500 ETH
### Description
The current implementation of Lido withdrawals in the `StEtherAdapter` contract exhibits a scalability issue. Withdrawal requests exceeding 500 ETH through the `StEtherAdapter` contract are forcibly trimmed... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: All administrative keys are identical
### Description
The constants `DEV_PUBKEY`, `ADMIN_PUBKEY`, and `MINT_AUTHORITY_PUBKEY` are all set to the same value:
This design poses a risk because it centralizes all administrative privileges into a single key. If this key is compromised, an attacker could gain cont... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | false | false | ## High: Incorrect price calculation on more than two phases
### Description
In the `_getPrice` function, probably due to a mistype, the cycle is not exited after the determination of the final price. This may lead to several executions of the `price *= decimalDiff` code wich renders the price significantly higher tha... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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/INCOMPLETE NATSPEC COMMENTS
### Description
The functions are missing `@param` for some of their parameters. Given that **NatSpec** is an important part of code documentation, this affects code comprehension, auditability, and usability.
Code Location
-------------
[Contracts](https://github.com/core... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.