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 | medium | initialization | true | false | ## Medium: Insufficient funds collected during transaction creation
### Description
The `createTransaction()` function in the `Escrow` contract collects the base `amount` from users, but fails to account for additional required fees in the initial transfer. While the contract calculates `calculatedFeeForSidekick` (fee... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: 'Dead' Code
### Description
**Update**
Recommendations were addressed in: `e8ffcfa8df0b28f6a8fcf08769e3922a8da6160b`.
**File(s) affected:**`LendingMarketController.sol`, `OrderBookLib.sol`, `FundManagementLogic.sol`, `OrderActionLogic.sol`, `OrderReaderLogic.sol`
**Description:** "Dead" code refers to code t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: Inconsistent Config Parameter Checking
### Description
## Issue in LayerZero Executor Config Function
The `layerzero::executor::config` function is checking `airdrop_amt_cap` twice, but not checking `price_ratio`.
## Affected File
`sources/executor.move`
## Function Definition
## Remediation
- Add a check... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Attacker can prevent rewards from being issued to gauges for a given epoch in TapiocaOptionBroker
### Description
An attacker can prevent rewards from being issued to gauges for a given epoch
### Proof of Concept
`TapOFT.emitForWeek()` is callable by anyone. The function will only return a value > 0 the fir... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: L02] Missing comments on the code and comments not following NatSpec
### Description
###### Low
Components: all
In the [`beam-bootstrap-chain`](https://github.com/BeamNetwork/beam-bootstrap-chain/tree/96beab1c5cfd41310bfba733ab7216426caf4a38) and [`policed-contracts`](https://github.com/BeamNetwork/police... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A variable was assigned a value but only used once
### Description
**Severity**: Informational
**Status**: Unresolved
**Description**
**Recommendations**:
To save memory and gas, the expression signature_signer == expected_signer can be moved into the require statement directly. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | signature | false | false | ## Medium: In `IdRegistry`, a recovery address might be updated unexpectedly.
### Description
There are 2 functions to update a recovery address, `changeRecoveryAddress()` and `changeRecoveryAddressFor()`.
As `changeRecoveryAddress()` doesn't reset a pending signature that would be used in `changeRecoveryAddressFor()`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Ownership Verification In Token Withdrawal
### Description
## validate_outflow_to_ata_of_position_owner
The function `validate_outflow_to_ata_of_position_owner` fails to check whether the owner of the associated token accounts (`self.user_token_x` and `self.user_token_y`) matches the expected owner of... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Insufficient Validation
### Description
The [`spend_allowance` helper function](https://github.com/OpenZeppelin/stellar-contracts/blob/01dbcb53d3992570dba5faf517a3d0502ebf1254/contracts/token/fungible/src/storage.rs#L227) implemented in the `openzeppelin_fungible_token` crate deducts the given amount of tokens... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Outdated HyVM used by nested-core-tetris
### Description
The `nested-core-tetris` folder uses an outdated version of HyVM. This version is error-prone and increases the likelihood that changes in HyVM will not be properly handled in the core contracts.
As of this writing, the latest commit for HyVM, used duri... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 `seekMezzSpill()` Function May Return Incorrect Values for `MIN`/`MAX` Ticks
### Description
**Update**
Fixed in commit `df724a5`.
**File(s) affected:**`mixins/TickCensus.sol`
**Description:** The `seekMezzSpill()` method is used to determine the next tick bump boundary. Unfortunately, the method does 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... | cyfrin_structured | low | token | true | false | ## Low: Consider burning `ERC-6909` claim tokens within `AngstromL2::withdrawProtocolRevenue` and transferring the underlying asset instead
### Description
`AngstromL2::withdrawProtocolRevenue` currently transfers `ERC-6909` balance to the recipient; however, this address may lack the capability to easily burn the cla... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Underlying assets stealing in `AutoPxGmx` and `AutoPxGlp` via share price manipulation
### Description
### Impact
pxGMX and pxGLP tokens can be stolen from depositors in `AutoPxGmx` and `AutoPxGlp` vaults by manipulating the price of a share.
### Proof of Concept
ERC4626 vaults are subject to a share price... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | true | false | ## Low: Restrictive TimeLockAccount PDA
### Description
## TimeLockAccount Implementation
The current implementation calculates the address of a `TimeLockAccount` as follows:
## RUST Implementation
This design decision restricts a `vault_owner` to creating only one timelock with a particular `time_authority`.
##... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insufficient Documentation
### Description
The [`_transferUsdc` function](https://github.com/across-protocol/contracts/blob/0720878762ebf99034aa62893c091237ef44fdf7/contracts/libraries/CircleCCTPAdapter.sol#L113) of the `CircleCCTPAdapter` contract is responsible for bridging USDC between different blockchains... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect invariant used for Balancer's composable pools
### Description
Only two balances instead of all balances were used when computing the invariant for Balancer's composable pools, which is incorrect. As a result, pool manipulation might not be detected. This could lead to the transaction being executed... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | token | true | false | ## Gas: `creatorsAddress != address(0)` check not required in buyToken()
### Description
The check below is from the buyToken() function (see [here](https://github.com/code-423n4/2023-12-revolutionprotocol/blob/d42cc62b873a1b2b44f57310f9d4bbfdd875e8d6/packages/revolution/src/ERC20TokenEmitter.sol#L201)). The second co... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | cross-chain | false | false | ## Medium: Potential of Locked Funds in XVS Bridges
### Description
**Update**
**1st Fix Review**: Both `XVSProxyOFTSrc` and `XVSProxyOFTDest` contracts include a `dropFailedMessage()` function to drop any failed cross-chain messages. A `fallbackWithdraw()` function is added to `XVSProxyOFTSrc` to release the locked 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 | rounding | true | false | ## Low: Function `_getAmountIn()` should round up when calculating the input token amount
### Description
Code use function `_getAmountIn()` to calculate swap results during the buy transactions:
The issue is that `_getAmountIn()` rounds down in favor of user when calculating the input tokens amounts and as result u... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | false | false | ## Medium: Possible centralization issue around RandProvider
### Description
[ArtGobblers.sol#L560-L567](https://github.com/code-423n4/2022-09-artgobblers/blob/d2087c5a8a6a4f1b9784520e7fe75afa3a9cbdbe/src/ArtGobblers.sol#L560-L567)
While it is very common for web3 projects to have privileged functions that can only b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | access-control | false | false | ## High: Rewards can be drained because of lack of access control
### Description
The protocol implements a Liquidation Pool to collect the results of Vault Liquidations. The collected assets are shared between the stakers who invested in the pool. However, the function performing the reward distribution can be called... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `++i`/`i++` should be `unchecked{++i}`/`unchecked{++i}` when it is not possible for them to overflow, as is the case when used in `for`- and `while`-loops
### Description
1. File: contracts/PooledCreditLine/LenderPool.sol (line [670](https://github.com/sublime-finance/sublime-v1/blob/46536a6d25df4264c1b217bd3... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Losses in extreme scenarios due to missing collateral check
### Description
The `_liquidate()` function calculates `collatValue` using oracle price and requires liquidators to burn `USGToRepay + fee`, but it doesn't verify that the collateral value is sufficient to cover the debt repayment.
While `minUSGO... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [17] WORD TYPING TYPOS
### Description
( Please note that the following instances are not found in https://gist.github.com/Picodes/16984274f6ad7b83b7a59f8b33cee6a6#nc-5-typos. )
`recieves` can be changed to `receives` in the following comments.
`implecitly` can be changed to `implicitly` in the following co... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | reentrancy | true | true | ## High: User May Pay Smaller Fees, Get No Refund, Or Force Treasury and Stakers to Not Receive Fees at All
### Description
While an issue with fee structure is mentioned in `Current fee structure may harm the users, and allows for fee exploitation`, there is a way more severe issue concerning fees, which involves ove... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | other | true | false | Source: https://github.com/sherlock-audit/2023-02-olympus-judging/issues/43
## Found by
CRYP70, ABA, ast3ros, nobody2018, minhtrng, saian, jonatascm, KingNFT, cducrest-brainbot, Ruhum, rvierdiiev
## Summary
cachedUserRewards variable is never reset, so user can steal all rewards
## Vulnerability Detail
When user wa... | Sherlock | 5 | Olympusdao |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [27] `@openzeppelin/contracts` should be upgraded to a newer version
### Description
These contracts import contracts from `@openzeppelin/contracts`, but they are not using [the latest version](https://github.com/OpenZeppelin/openzeppelin-contracts/releases). Using the latest version ensures contract security ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Incorrect Index Copy
### Description
## Potential Memory Access Issue in `HashSet::from_bytes_copy`
There is a potential memory access issue in `HashSet::from_bytes_copy`. The `next_value_index` allocates memory for a single `usize` value. It is utilized to store the index of the next element to be inserted 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 | high | front-running | true | false | ## High: LamboFactory can be permanently DoS-ed due to `createPair` call reversal
### Description
`LamboFactory.createLaunchPad` deploys new token contract and immediately sets up a new Uniswap V2 pool by calling `createPair`. This can be frontrun by the attacker by setting up a pool for the next token to be deployed.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: CF minimum can be bypassed when minting nuAssets
### Description
CF is checked before minting nuAssets (instead of after), allowing CF to be massively decreased past the warning. This allows assets to be minted even past the critical CF of 110%, breaking the invariant stated in the README.
[`NumaPrinter.m... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | false | ## High: Bypass Id Leak Verifier
### Description
## Sui Verifier: UID Non-Reusability
The `id_leak_verifier` in Sui Verifier ensures the non-reusability of a UID for the Sui Object. This step of the verifier guarantees that the `id` field of Sui objects never becomes leaked. However, a bypass of these checks may occu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Code Maturity
### Description
## Code Review Remediation
## Suggestions
1. Whitelist the `sy_program` in the `initialize_vault` instruction with the public keys of `marginfi-standard` and `kamino-lend-standard` as a security enhancement to restrict the programs that may interact with the vault.
2. To ensure... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | false | false | ## Medium: Missing mint method
### Description
**Description**
Line 95, _mint() function overloading
Token’s initializer already provides mint for the full maximum supply (line 48, mint for
getMaxTotalSupply()). Though the token can enable burn functionality, so more place for
minting appears. Though, overloaded _min... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Imprecise unlock date documentation
### Description
The definition of [`unlockDate`](https://github.com/OpenSTFoundation/SimpleTokenSale/blob/master/contracts/ERC20Interface.sol) from [`FutureTokenSaleLockBox`](https://github.com/OpenSTFoundation/SimpleTokenSale/blob/66025fede245a382ef6ed9f32dd0ecd1da34301f/co... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: It is sometimes cheaper to cache calldata
### Description
**Issue Description** - While the `calldataload` opcode is relatively cheap, directly using it in a loop or multiple times can still result in unnecessary
bytecode. Caching the loaded calldata first may allow for optimization opportunities.
**Proposed ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Mismatch Between Code and Documentation for Handling Failure of Evm Calls
### Description
**Update**
The client fixed the issue in: `8339633f227928f0c7815373865f03eb3ad9631e` with the following explanation:
> Corrected mismatched code documentation.
**File(s) affected:**`FlowEVMBridgeUtils.cdc`
**Descriptio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Reduce the size of error messages (Long revert Strings)
### Description
Shortening revert strings to fit in 32 bytes will decrease deployment time gas and will decrease runtime gas when the revert condition is met.
Revert strings that are longer than 32 bytes require at least one additional mstore, along with... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Anyone can call `closeLoan()` to close the loan
### Description
_Submitted by WatchPug_
[`MapleLoan.sol` L56-L63](https://github.com/maple-labs/loan/blob/9684bcef06481e493d060974b1777a4517c4e792/contracts/MapleLoan.sol#L56-L63)
Based on the context, we believe that the `closeLoan()` should only be called... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong liquidity units calculation
### Description
The spec defines the number of LP units to be minted as `units = (P (a B + A b))/(2 A B) * slipAdjustment = P * (part1 + part2) / part3 * slipAdjustments` but the `Utils.calcLiquidityUnits` function computes `((P * part1) + part2) / part3 * slipAdjustments`.
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Roles and Ownership Can Be Renounced
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `6704de9f726d22100eadfaa85f75011318cd5e44`. The client provided the following explanation:
> MultiLot and PriceFeed have been modified as recommended to disallow renouncing ownership and access contr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Eth rewards might be stuck in contract
### Description
**Severity**: Medium
**Status**: Acknowledged
**Description**
In EsEMBR.sol - Contract can receive ETH in a scenario in which no token is minted (i.e. totalSupply = 0) . ETH sent as a msg.value contributes to the state of totalEthPerEsembr which ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Reduce number of additions and readings of `s.totalDepositedAmountPerUser[_depositor]` in `_verifyDepositLimit()` in `Mailbox.sol`
### Description
[File: ethereum/contracts/zksync/facets/Mailbox.sol](https://github.com/code-423n4/2023-10-zksync/blob/1fb4649b612fac7b4ee613df6f6b7d921ddd6b0d/code/contracts/ether... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | access-control | true | false | ## High: Incorrect Priviliges setOperatorAddresses Acknowledged
### Description
The function `setOperatorAddresses` instead of allowing the **Operator** to update its own, as well as the **Fee Recipient** address, incorrectly provides the privileges to the Fee Recipient. As a result, the Fee Recipient can modify the ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | overflow | true | false | ## Medium: Transfer of Vault tokens can cause accounting errors in other contracts
### Description
### Lines of code
### Vulnerability details
`Vault::_transfer` overrides the `ERC20::_transfer` function so the transfer is performed using the `TwabController` contract. In the implementation, `_shares` is downcasted... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User Could Change The State Of The System While In Pause Mode
### Description
## Lines of code
https://github.com/code-423n4/2022-06-nibbl/blob/8c3dbd6adf350f35c58b31723d42117765644110/contracts/NibblVault.sol#L443
## Vulnerability details
## Proof-of-Concept
Calling `NibblVault.updateTWAP` function wi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | false | false | Source: https://github.com/sherlock-audit/2023-02-olympus-judging/issues/128
## Found by
tives, Bahurum, 0xlmanini, minhtrng, 0x52
## Summary
Internal reward tokens accrue indefinitely with no way to change the amount that they accrue each block (besides removing them which has other issues) or input a timestamp t... | Sherlock | 5 | Olympusdao |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent handling of point at infinity between `isOnCurve` and `isInSubgroup`
### Description
**Description:** The `BLS12381::isOnCurve` function returns `false` for the point at infinity `(0, 0, 0, 0)`, while `isInSubgroup` returns `true` for the same point. This creates an inconsistency in how the identi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [04] New ILO Pools can be created and initialized after a previous launch with the same Uniswap Pool
### Description
[`ILOManager::initILOPool()`](https://github.com/code-423n4/2024-06-vultisig/blob/main/src/ILOManager.sol#L72) lets project owners create and initiate new ILO Pools after a successful previous 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... | skyward_49k | low | other | false | false | ## Low: Users might not be interested to buy a minimal remaining to complete the launch
### Description
The users can buy almost all ETH in `targetETH` leaving only 1 wei to complete the launch. This will create a state where the launch is not interesting to the users to finish because the user would spend more in gas... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: getNftById is querying against the index not id
### Description
## Handle
paulius.eth
## Vulnerability details
## Impact
getNftById is actually 'get NFT by index' as it queries the element from the array by index, not by tokenId. The index may not always equal id as _addNft does not automatically assign 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 | gas | initialization | false | false | ## Gas: Explicit initialization with zero not required for `numTokens`
### Description
Explicit initialization with zero is not required for variable declaration of `numTokens` because uints are 0 by default. Removing this will reduce contract size and save a bit of gas.
Recommend removing explicit initialization wit... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [01] Approving the interchain service for some supported tokens would never work
### Description
https://github.com/code-423n4/2024-08-axelar-network/blob/69c4f2c3fcefb1b8eb2129af9c3685a44ae5b6fe/interchain-token-service/contracts/token-manager/TokenManager.sol#L172-L183
This function is used to renew approv... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ERC721Pool's take will proceed with truncated collateral amount and full debt when borrower's collateral is fractional
### Description
Caller of take() can end up paying the debt corresponding to the fractional ERC721 collateral of a borrower, but receiving only truncated part of the this collateral in return... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Extraordinary proposals can receive more tokens than eligible
### Description
Two extraordinary proposals proposed at similar times (while no other extraordinary proposals are executed) can request the same amount of tokens (`proposal.tokensRequested`). But if the second proposal is proposed **after** the f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: cache::Get() unsafely returns a reference to c.network without a lock
### Description
## Cache Vulnerability Report
**Severity:** Medium Risk
**Context:** `cache.go#L34`
**Description:**
(c *cache) `Get()` returns a pointer to `c.network` and releases its lock upon the function return. This 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 | front-running | true | false | ## Medium: Destination Slippage Protections Broken by Amount Drift
### Description
The `DexReceiverUniswap._recalculateAmountIn()` tries to reconcile the user-provided swap parameters with the actual token amount delivered by the bridge. When `actualAmount > totalAmountIn`, it **only** mutates the last hop by adding t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: [03] Swap fee bypass via small trade amounts
### Description
### Finding description
The `swap()` function in the `UpsideProtocol` smart contract is vulnerable to fee circumvention when users initiate swaps with extremely small input amounts. The issue stems from the use of integer division in Solidity, which... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [01] Unvalidated genesis epoch update in Epoch Manager allows manipulation of farm rewards
### Description
The `update_config` function in the epoch manager contract allows updating the entire epoch configuration without proper validation of the genesis epoch:
[/contracts/epoch-manager/src/commands.rs# L19-L2... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `<x> += <y>` costs more gas than `<x> = <x> + <y>` for state variables (`-=` too)
### Description
Using the addition operator instead of plus-equals saves **[113 gas](https://gist.github.com/IllIllI000/cbbfb267425b898e5be734d4008d4fe8)**. Subtructions act the same way.
*There are 12 instances of this issue.* | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Lack of input validation
### Description
There are several instances of `external` functions failing to validate the input parameters they are provided. For example:
* In the `setParameters` function on [line 94 of `CashMarket.sol`](https://github.com/notional-finance/contracts/blob/b6fc6be4622422d0e34c90e77... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The wrong amplification value is used to calculate the new supply
### Description
**Severity**
**Impact:** High
**Likelihood:** Medium
**Description**
When `addToken` is called to add a new token to the pool, one of the parameters that are provided are the new pool amplification factor for calculating sup... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Ine�cient lookup table account verification during transaction execution
### Description
The program does not strictly verify that lookup table accounts given at the time of execution exactly match with the accounts given at the time of transaction initialization. The current implementation performs unnecessary... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | oracle-manipulation | true | false | ## Low: Inconsistent APR boundary validation between `AprPairFeed` and `Accounting`
### Description
There is a mismatch between APR boundary validation constants in `AprPairFeed` and `Accounting` contracts. The `AprPairFeed` accepts negative APRs down to -50%, but the `Accounting` contract rejects any negative APR 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 | overflow | false | false | ## Low: calculations of upgradedAmount is not overflow protected
### Description
## Handle
paulius.eth
## Vulnerability details
## Impact
As contract Vether4 is using pragma solidity 0.6.4; SafeMath is not enabled by default, thus making this check inside function distribute avoidable (overflow):
upgradedAmount +... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of Expiration for Retrying Transactions
### Description
The `L1ScrollMessenger` contract provides a [mechanism to retry failed transactions](https://github.com/scroll-tech/scroll/blob/2eb458cf4224d82fc56254e91e297a9ed261cefb/contracts/src/L1/L1ScrollMessenger.sol#L175) from L1 to L2 at any time. Theref... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: MEV Extractable From `distribute()` Function
### Description
**Update**
The team has partially fixed the issue by only allowing admins to call the `distribute()` and `harvest()` functions. We further recommend that the distribution and harvesting functions only be called through private mempools.
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 | rounding | true | false | ## Low: Assumptive Decimal Precision
### Description
## SwapAmountsOracle Overview
`SwapAmountsOracle` assumes all price sources have the same decimal precision, specifically 18 decimals. This assumption simplifies the calculation process by avoiding handling varying decimal precisions across different price sources.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | true | true | ## Low: Offchain orders are not cancelled after the account has been liquidated
### Description
In the previous version of Zaros, users were only allowed to create on-chain orders using the [`OrderBranch::createMarketOrder()`](https://github.com/Cyfrin/2024-07-zaros/blob/main/src/perpetuals/branches/OrderBranch.sol#L2... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: UNCLEAR ERROR HANDLING
### Description
Within the `addSession` function of the `LighthouseStake` contract, one `require` statement does not produce the appropriate error message. Three different conditions are checked in this statement, and the error message only effectively describes two of them.
Code Locati... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Cross-chain incompatibility with `block.number` based timeout mechanism
### Description
**Description:** `GlobalRegistryService::addGlobalInvestorWallet` function uses `block.number` to validate transaction freshness through a `blockLimit parameter`:
According to the hardhat configuration, this contract is d... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | true | false | ## Medium: Fraxlend pair deployment can be front-run by a custom pair deployment
### Description
_Submitted by berndartmueller, also found by IllIllI_
### Impact
The `FraxlendPairDeployer` contract used to deploy Fraxlend pairs prevents deploying pairs with the same `salt` and `_configData`. This makes it vulnerabl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | access-control | false | false | ## High: Security Level Constraint Can Be Circumvented
### Description
**Update**
Fixed by the client as per recommendation. Addressed in: `49f5916fb915743b929b5c5d28d2647a0e24d14e`.
**File(s) affected:**`bucket_cdp/sources/vault.move`
**Description:** The `update_position()` function throws an error depending on 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 | logic | true | false | ## High: Incorrect accounting of `totalVoting` leads to permanent freeze of funds in Bribe contract and incorrect bribe distribution.
### Description
Report type: Smart Contract
Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/Bribe.sol
Impacts:
- Permanent freezing of funds
## Description... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Swapping Of Incorrect Pools
### Description
## Vulnerability Summary
The vulnerability arises from the assumption in `core::MultiHopSwapCore` that all routes start with the same initial token. If the initial tokens differ across routes, it may result in incorrect swaps, leading to a loss of funds. `MultiHopS... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Upper Bound Validation for `defaultCap` During `CLGaugeFactory` Deployment
### Description
During the deployment of the `CLGaugeFactory` contract, there is no upper bound validation for `defaultCap` in the constructor. This validation is, however, enforced in the `CLGaugeFactory.setDefaultCap` 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 | high | other | true | false | ## High: Improper Calculation Of Fees
### Description
## Issue with calculate_pre_fee_amount Function
The function `calculate_pre_fee_amount` invokes `get_pre_fee_amount_ld`. However, there is an issue within `calculate_pre_fee_amount` when `transfer_fee_basis_points` is equal to `MAX_FEE_BASIS_POINTS`, which represe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Signatures May Be Replayed Across Different Wallets
### Description
Users can change the key pair that their wallet uses if they call `setBLSKeyForWallet()`. If a user swaps to a new wallet and then updates this new wallet to use their public key from the old wallet, then all operations signed by the old wa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: REGISTRY CANNOT BE CHANGED
### Description
The `ContractRegistry` contract is responsible for storing the addresses of the contracts that are `Saferoot` verified. Users may wish to use a different implementation, but once the `Saferoot` contract is initialized, it is no longer possible to update the registry 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 | other | true | false | ## High: Missing owner check on from when transferring tokens
### Description
The `OrderNFT.transferFrom`/`safeTransferFrom` methods use the internal `_transfer` function. While they check approvals on `msg.sender` through `_isApprovedOrOwner(msg.sender, tokenId)`, it is never checked that the specified `from` paramet... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Allowing users to set the gas limit may cause failed messages, accidentally or intentionally
### Description
Allowing users to define the gas limit for messages sent via the L1 deposit processors for Arbitrum, Optimism and Wormhole may lead to undelivered messages on the other end that must be retried with a h... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: Functions Need To Be Called Only Once
### Description
There is a set of functions that need to be called only once due to the nature of the contracts the Pear is serving.
Accordingly, the protocol could proceed to an irreversible state if called more than once.
Below are the functions that require to be locke... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Treasury rake might not be taken due to rounding direction
### Description
In the `LevelBaseReserveManager` contract, the treasury rake will not be taken when minting small amounts of `lvlUSD`, specifically when the condition `amount * rakeBasisPoints < MAX_BASIS_POINTS` is met.
```solidity
uint256 rake = am... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Cross-chain signature replay attack due to user-supplied `domainSeparator` and missing deadline check
### Description
### Finding description
The `_verifySig` function in `Forwarder.sol` accepts the `domainSeparator` as a user-provided input instead of computing it internally. This introduces a vulnerability... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insufficient validation on the pool key in liquidity-modifying functions
### Description
**Description:** `FullRangeHook::addLiquidity` and `FullRangeHook::removeLiquidity` should only be callable with pools created via the hook itself; however there is a lack of validation on the pool key that means this is n... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | initialization | true | false | ## Gas: Code related to local testing should be removed
### Description
**Files:** `StateTransitionManager.sol`, `DiamondInit.sol`
[File: code/contracts/ethereum/contracts/state-transition/chain-deps/DiamondInit.sol](https://github.com/code-423n4/2024-03-zksync/blob/main/code/contracts/ethereum/contracts/state-transi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 BOUNDS ON CONFIGURATION VARIABLES
### Description
The **staking** contract has missing bounds on the `emission_rate` and `unbonding_period` variables. This can lead to unexpected contract behavior.
The bounds of these parameters should be enforced to avoid potential errors in the current or future use... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Gas: Multiple `address`/ID mappings can be combined into a single `mapping` of an `address`/ID to a `struct`
### Description
Combining multiple address/ID mappings into a single mapping to a struct can lead to gas savings. By refactoring multiple mappings into a singular mapping with a struct, you can save on stora... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | false | false | ## Medium: If auction price goes to 0, NFT might become unclaimable/ stuck forever
### Description
There are certain ERC20 tokens which revert on zero value transfers (e.g. LEND). If an NFT's price drops down to 0, nobody will be able to claim it as the transaction will always revert.
### Impact
NFT might be lost for... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The `isMulticall` flag is not correctly reset to `false` in the `multicall` function.
### Description
In the `multicall` function, we set `isMulticall` to true at the beginning and reset it to false at the end.
https://github.com/code-423n4/2024-06-size/blob/8850e25fb088898e9cf86f9be1c401ad155bea86/src/libra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Off-by-one error in max number of iterations of `getDx()`
### Description
In the `getDx()` function of the `CurvePoolUtil` library, there is a potential off-by-one error due to how the loop termination condition is checked. The loop is intended to run a maximum number of iterations defined by `MAX_ITERATIONS_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 | initialization | true | false | ## Medium: The `pre/postCheck()` Is Not Checking the Hook Initialization of the Sender
### Description
In order for the Smart Wallets to use `CredibleAccountModule` as a Hook, they call `onInstall()` and install it as a Hook.
```solidity
function onInstall(bytes calldata data) external override {
// code
if (modu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Insufficient validation in global parameter updates
### Description
The `set_params` function allows updating protocol parameters without proper validation:
Looking at the `GlobalSettingsInput` struct:
Consider adding comprehensive parameter validation. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## Medium: Front-Running Vulnerability in `createUserLoan` Method
### Description
Report type: Smart Contract
Target: https://testnet.snowtrace.io/address/0x2cAa1315bd676FbecABFC3195000c642f503f1C9
Impacts:
- Griefing (e.g. no profit motive for an attacker, but damage to the users or the protocol)
## Description
#... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | initialization | true | false | ## Low: Cache memory array length if expected size of array is >= 3
### Description
Cache memory array length if [expected size of array is >= 3](https://x.com/DevDacian/status/1791490921881903468):
```solidity
File: src/tree-proxy/leaves/RootUpgrade.sol
97: for (uint256 i = 0; i < branchUpgrades.length; i++) ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | overflow | false | false | ## Medium: Grieving attack by failing user's transactions
### Description
An attacker can apply grieving attack by preventing users from interacting with some of the protocol functions. In other words whenever a user is going to reduce his debt, or buy and reduce his debt in one tx, it can be failed by the attacker.
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Typos
### Description
1. File: external/StakedCitadelLocker.sol (line [300](https://github.com/Citadel-DAO/staked-citadel-locker/blob/980088335adf7fdc62aa9a0c2556b37c01605dd4/src/StakedCitadelLocker.sol#L300))
futher
2. File: src/CitadelMinter.sol (line [102](https://github.com/code-423n4/2022-04-badger-c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Missing Visibility Attribute
### Description
It is best practice to set the visibility of state variables and constants explicitly.
```
bool hasEarlyWithdrawn = false;
bool lpWithdrawn = false;
```
### Recommendation
Consider explicitly setting the visibility of all state variables and constants. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Solvency is not checked during the excess idle distribution when the netCurveTrade is 0
### Description
Solvency is not checked during the excess idle distribution when the `netCurveTrade` is 0. In `calculateDistributeExcessIdle` if `netCurveTrade` is 0 we would have:
- \( z_{\text{max}} = I(\text{or} z_{\tex... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary onlyOwner restriction
### Description
The `depositERC20` function in the Gateway contract is restricted to `onlyOwner`, allowing only the contract owner to deposit tokens into the contract. However, this restriction is largely ineffective as anyone can directly transfer tokens to the contract 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... | solodit_api | high | Validation | true | false | ## Severity: High Risk
## Context
AstariaRouter.sol#L680-L683
## Description
From when `commitToLiens` is called till when we end up calling `IVaultImplementation(c.lienRequest.strategy.vault).commitToLien( ... )` and after the value of `c.lienRequest.strategy.vault` is not checked whether it is a registered vault wi... | Spearbit | 5 | Astaria |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.