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 | other | true | false | ## Low: Inconsistent address separator in storage names
### Description
Most addresses in storage names don't separate the prefix from the address with a period, but this one has one.
*There is 1 instance of this issue:*
https://github.com/code-423n4/2022-12-gogopool/blob/aec9928d8bdce8a5a4efe45f54c39d4fc7313731/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... | solodit_api | medium | Fee On Transfer | true | false | Source: https://github.com/sherlock-audit/2023-02-blueberry-judging/issues/153
## Found by
tsvetanovv, rvierdiiev, Avci, obront, chaduke, berndartmueller, Breeje
## Summary
The protocol seems to be intentionally catering to fee on transfer tokens by measuring token balances before and after transfers to determine ... | Sherlock | 5 | Blueberry |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: griefing vulnerability in native token transfer
### Description
The `RefuelAction` and `TransferAction` contracts are vulnerable to gas griefing attacks due to the way they handle native token transfers to the target address, which could lead to financial losses for Otim executors.
When native tokens are 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 | cross-chain | false | false | ## Low: `msg.value` must match the quoted cost exactly in `WormholeTargetDispenser.L2_sendMessage()`
### Description
In the `_sendMessage()` function of the `WormholeTargetDispenserL2` contract, the `msg.value` provided must match the quoted cost exactly. If the `msg.value` is not equal to the cost returned by `quoteE... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Return Statement in `_getReserves` Function in `MagicLpAggregator` Contract
### Description
The `MagicLpAggregator` contract contains a flaw within the `_getReserves` function where it fails to return the reserve values fetched from the `pair` contract. This oversight results in the `latestAnswer` f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Insu�ficient validation of responder IDs
### Description
The `ResponderId::from_str` function validates the input string by checking whether it contains a colon character; the responder ID should consist of a host and a port delimited by a colon (Figure 3.1). This check is insufficient and makes it possible to ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: ## Duplicate Entries in plotIndexes via `FieldFacet.sow`
### Description
The `plotIndexes` array is designed to contain unique plot indexes, ensuring that no index appears more than once. However, due to an oversight in the `sow` function in the `FieldFacet`, it is possible for multiple entries to have the sam... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unsafe Truncation of ASN.1 DERLength Value to uint80 Without Bounds Validation
### Description
The `readNodeLength` function incorrectly handles ASN.1 DER length fields by truncating large length values to `uint80` without validation. According to ASN.1 specification, the long-form length encoding can include ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Mutable Submission Record
### Description
In the `submitDataAsCalldata` function, [duplicate submissions are prevented](https://github.com/Consensys/zkevm-monorepo/blob/7f3614e59901402c804e72396afedb15263dcbe4/contracts/contracts/LineaRollup.sol#L311-L313). However, a caller can reuse previous data correspondi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 ZERO ADDRESS CHECKS
### Description
`Biconomy Smart Wallet` contracts have address fields in multiple functions. These functions are missing address validations. Each address should be validated and checked to be non-zero. This is also considered a best practice.
During testing, it has been found that... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | true | false | ## Low: Underflow issue in `swap()` method
### Description
**Severity**: Low
**Status**: Resolved
**Description**
In Contract Core.sol, the `swap()` method has the following logic:
Here if `chainLiquidity[srcChainId][id] = tokenAmountInSrc` before the operation. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of input validation
### Description
While several of the functions in the codebase that take external input do verify those inputs, there are also several instances of constructors and functions that lack sufficient input validation. This is especially true of functions that take input from “trusted” part... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: MarketUtils.getPoolValueInfo() does not use !maximize when evaluating impactPoolUsd, leading to wrong logic of maximizing or minimizing the pool value.
### Description
``MarketUtils.getPoolValueInfo()`` does not use ``!maximize`` when evaluating ``impactPoolUsd``, leading to wrong logic of maximizing or minim... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Results On Unmatched Decimals
### Description
## SwitchboardDecimal Overview
SwitchboardDecimal can store a decimal value along with its decimals and sign. When a new decimal is initialized, it will be scaled to 9 decimals by default (MAX_DECIMALS), which is the maximum limit. All of the operatio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | false | false | ## Low: Wrong implementation
### Description
The implementation of the `remove_validator`function is almost the same as the `redelegations`function, but with some incorrectness such as not making the call to `UpdateGlobalIndex`.
Since the `redelegations`function is complete and correct, the code of the `remove_valida... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary stack variable can be removed
### Description
**Description:** When returning whether am-AMM is enabled, `BunniHook::_amAmmEnabled` uses a stack variable when it is not necessary and the boolean can instead be returned directly. If better readability is required, the assignment could be made to a 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 | low | oracle | true | false | ## Low: Excessively Long Price Feed Expiry Period
### Description
## Price Feed Validity and Protocol Settings
In the protocol, the current setting of one hour for `MAX_AGE_OF_PRICE_FEED` implies that price data up to one hour old is still considered valid and usable. A longer maximum age allows for more time to pass... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | overflow | false | false | ## High: timestampcan overflow
### Description
The VM's timestamp can overflow BabyBear's modulus, leading to invalid program paths being successfully executed, proved, and verified.
### Recommendation
The timestamp could be range-constrained to 30 bits. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 setters do not emit an event
### Description
The `updateWithdrawalPeriod` and `updateSparksTopUpPrice` setters are only callable by the owner.
These two functions do not emit events. This leads to the incapacity of monitoring the update of the withdrawal period and sparks top-up prices. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Using `> 0` costs more gas than `!= 0` when used on a `uint` in a `require()` statement
### Description
This change saves **[6 gas](https://aws1.discourse-cdn.com/business6/uploads/zeppelin/original/2X/3/363a367d6d68851f27d2679d10706cd16d788b96.png)** per instance. The optimization works until solidity version... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `endMultipleRounds()` lacks round end timestamp check
### Description
_Acknowledged_
`endMultipleRounds()` is used to end multiple rounds across different markets in a single transaction.
As you can see, it does not verify whether the end timestamp has been reached before ending the round, allowing it to 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... | solodit_api | medium | Business Logic | false | true | Source: https://github.com/sherlock-audit/2022-11-buffer-judging/issues/84
## Found by
0x52
## Summary
BufferRouter#resolveQueuedTrades and unlockOptions attempt to be non atomic (i.e. doesn't revert the transaction if one fails) but an invalid signature can still cause the entire transaction to revert, because th... | Sherlock | 4 | Buffer Finance |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `VaultHelper` deposits don't work with fee-on transfer tokens
### Description
_Submitted by cmichel, also found by 0xsanson_
There are ERC20 tokens that may make certain customizations to their ERC20 contracts.
One type of these tokens is deflationary tokens that charge a certain fee for every `transfer()`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | false | ## High: Certain small amount of tokens are not accounted for when deposited
### Description
Report type: Smart Contract
Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/VotingEscrow.sol
Impacts:
- Contract fails to deliver promised returns, but doesn't lose value
- Temporary freezing of fu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of input sanitization in LockstakeClipper.file()
### Description
The `file()` functions of LockstakeClipper do not sanitize input values and accept invalid inputs.
The below snippet shows that `chip` and `tip` values can truncate, and `stopped` can be set beyond the accepted range.
```solidity
else if ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TRST-M-9 Users have to lock Satin/$CASH LP in Ve.sol to vote, but they lose on fees while doing so
### Description
**Description:**
To get veSatin tokens and be able to vote users are expected to lock Satin/$CASH LP in
Ve.sol. When this happens, Ve.sol will start accumulating the fees deriving from the
Sa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: If MAX_FEE is set too high, user may be able to underflow deposit value to steal all funds
### Description
This vulnerability has some narrow constraints that make it unlikely to occur at the moment but would result in theft of all user funds, so are important to address. There are three constraints required 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 | high | other | true | false | ## High: Changelog Path Update Error
### Description
## Vulnerability Report
## Original Implementation
In the original implementation of `append_batch`, the `fillup_index` is calculated to determine the upper limit for computing the Merkle path. It includes the condition `self.next_index.trailing_ones() as usize + ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | logic-error | true | false | ## Low: Missing `_disableInitializers()` in constructor
### Description
The `SpinGame` contract is upgradeable but does **not** call `_disableInitializers()` in its constructor. In upgradeable contract patterns, this call is a best practice to prevent the implementation (logic) contract from being initialized 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... | skyward_49k | low | other | true | false | ## Low: Inconsistency in function declarations
### Description
**Severity**: Low
**Status**: Acknowledged
**Description**
Right now there are 4 functions that accept both arguments user address and the id of position: `getUpdatedDebtAndValue`, `getCurrentPosition`, `closePosition`, and `liquidatePosition`. all of t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | other | false | false | ## Low: Unused error `IBet::InvalidAmount`
### Description
The custom error `InvalidAmount` is declared in `IBet` but never used anywhere in the implementation. Consider removing it or using it in the amount check it's intended to validate. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Removing markets from `WildcatArchController` gives lenders immunity from sanctions
### Description
In `WildcatSanctionsSentinel.sol`, the `createEscrow()` function checks that `msg.sender` is a registered market in the `WildcatArchController` contract:
[WildcatSanctionsSentinel.sol#L95-L102](https://githu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | false | false | ## Medium: Pools can be deployed with malicious or incorrect quote tokens and oracles
### Description
The deployment of a pool via `deployPool()` is permissionless. The deployer provides several parameters that have to be trusted by the users of a specific pool. These parameters include:
- `oracleWrapper`
- `settleme... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `PowerloomDataMarket.maxSnapshotsCid()` Function Returns Unfinalized CID Despite Implying Consensus
### Description
**File(s) affected:**`PowerloomDataMarket.sol`
**Description:** The `PowerloomDataMarket.maxSnapshotsCid()` function's name and documentation suggest returns are consensus-backed, but this isn't... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | true | false | ## Medium: Time calculation issues with exponential decay
### Description
[OCE_ZVE](https://github.com/sherlock-audit/2024-03-zivoe/blob/main/zivoe-core-foundry/src/lockers/OCE/OCE_ZVE.sol) is a locker that distributes rewards based on a exponential decay model. When a distribution starts, the whole balance of the con... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: Staked tokens can be destroyed through a challenge re-creation
### Description
**Difficulty:** Medium
Users stake tokens to vote or create a challenge. Tokens that are not unstaked can be destroyed if the tokens’ owner challenges a listing multiple times.
To challenge a listing, a stake must be sent:
```p... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | access-control | true | false | ## Low: Incorrect revert strings in `StakingContract::revokeAdminRole`
### Description
There are two revert strings [[1](https://code.zeeve.net/zeeve-endeavors/benqi_smartcontract/-/blob/b63336201f50f9a67451bf5c7b32ddcc4a847ce2/contracts/staking.sol#L1021), [2](https://code.zeeve.net/zeeve-endeavors/benqi_smartcontrac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Revoked StableMaster May be Deployed A Second Time
### Description
The Core smart contract is able to deploy StableMaster contracts which represent a new stable coin. The Core also has the ability to `revokeStableMaster()`, which essentially disowns a stablecoin.
When a StableMaster contract is revoked it is ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | true | false | ## Medium: NodeOp can get rewards even if there was an error in registering the node as a validator
### Description
The [documentation](https://multisiglabs.notion.site/Architecture-Protocol-Overview-4b79e351133f4d959a65a15478ec0121) says that the NodeOps could be elegible for GGP rewards if they have a valid minipool... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Cross-Chain Owner Cannot Call Privileged Functions - Phase 2
### Description
The [`CrossChainOwned`](https://github.com/taikoxyz/taiko-mono/blob/b47fc34cb0e7fe9b7ebd9416b3051a067483b860/packages/protocol/contracts/L2/CrossChainOwned.sol#L14) abstract contract can be inherited to allow an owner on a differen... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 zero address check on BondVault constructor
### Description
## Handle
maplesyrup
## Vulnerability details
## Impact
This is a low risk vulnerability due to the fact that it is possible to lose funds if the Base address is set to a zero address and someone sends funds to this address. As a rule, 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 | gas | overflow | true | false | ## Gas: `abi.encode()` is less efficient than `abi.encodePacked()`
### Description
Changing `abi.encode` function to `abi.encodePacked` can save gas since the `abi.encode` function pads extra null bytes at the end of the call data, which is unnecessary. Also, in general, `abi.encodePacked` is more gas-efficient (see [... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: `NodeOperatorRegistry::updateOperatorControllingAddress` allows to override `_newOperatorAddress` if its address is already assigned to an operator ID
### Description
Current implementation does not check if the new assigned address has already been assigned to an operator ID. As a consequence, its current val... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Unused constant variable in L1OpUSDCFactory
### Description
The contract defines an unused public constant variable `L2_MESSENGER`.
### Recommendation
Remove the unused `L2_MESSENGER` constant to improve clarity and reduce deployment gas costs. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: DoS of pool if uniswapV3MintCallback's tokenAmountOwed is 0 for a `Revert on Zero Value Transfers` token.
### Description
The Readme states that `Revert on Zero Value Transfers` are expected to work with the protocol, however as there is no amount > 0 check when transferring tokens in PoolFacet.sol#uniswapV... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | true | false | ## Low: Small discrepancy between spec and behaviour of calculateLiquidity
### Description
The invariant specification asserts that "Liquidations can be performed only when the account is unhealthy." However, in reality, the liquidation will be a no-op when the account is healthy. Here is an example of a reproduction ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `SAFEHandler` Cannot Call `ODSafeManager.allowHandler()`
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `2a1fd3c` and `6cdc848`. The client provided the following explanation:
> The recommendation was followed; the handlerCan mapping, handlerAllowed modifier, and allowHandler functi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Sanity Checks
### Description
## Code Review
## Issues Identified
1. **Counter Quote Index Validation**
- The `counter_quote_index` provided as an argument to `choose_ride` should be valid and correspond to an existing counterquote in the `ride.counter_quotes` vector. If this index is out of bounds, it wil... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Static allocation vs dynamic strategy causes DoS in loss reporting
### Description
_Resolved_
The `reportStrategyLoss()` function validates slashing amounts against statically tracked allocations (`assetStrategyAllocations`) rather than real-time strategy balances, causing complete denial of service when stra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: isValidRefinance will approve invalid refinances and reject valid refinances due to buggy math
### Description
The math in `isValidRefinance()` checks whether the rate increased rather than decreased, resulting in invalid refinances being approved and valid refinances being rejected.
### Impact
- Users can p... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: NFT bridging from smart contract wallets will result in permanent loss
### Description
By default, the `sendERC721UsingNative` function uses `msg.sender` as the final recipient of the bridged NFTs. This approach works well for Externally Owned Accounts (EOAs). However, for some account abstraction wallets and ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | true | false | ## Low: Code Refactoring
### Description
## Verification Steps
1. Verify the length of `payload_bytes` within `claim_rewards` to ensure that the length of serialized data is in accordance with expectations, thereby improving data consistency.
2. If the ownership of `AdminCap` and the administrator of `BluefinVaultSt... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Low: Too strict condition when rebalancing positions
### Description
The `rebalancePosition` function in the **LiquidationLogic** library reverts if the position's delta proportion is **less or equal than** the threshold defined in the market's unwind configuration. However, in order to maintain the consistency alo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Unused Custom Errors ✓ Fixed
### Description
In the `LineaProofHelper` contract and in the `ETHRegistrarController` contract, the `AccountNotFound` and `Unauthorised` custom errors are not used.
### Recommendation
The problem has been fixed in [PR\#171](https://github.com/Consensys/linea-resolver/pull/171). | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: State variables can be cached instead of re-reading them from storage
### Description
Caching of a state variable replaces each `Gwarmaccess (100 gas)` with a much cheaper stack read.
*Note: These are instances missed by the Bot Race.*
Total Instances: `22`
Estimated Gas Saved: `22 * 100 = 2200`
https://g... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Boolean NOT operator can be used
### Description
You can refactor the following to check if the boolean is false in a more canonical way by using the NOT (`!`) operator.
### Recommendation
Consider the following:
```solidity
!pot.hasWon[msg.sender]
``` | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Attacker can DOS OptimisticListing with very low cost
### Description
The only check on a new proposal is that it is priced lower than the existing proposal. It does not constrain on the `_collateral` supplied (except it will revert in `\_verifyBalance` if set to 0). Anyone can block normal proposal creation ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Specific Direction Of Rounding For Swap Calculations
### Description
## Security Considerations for Swap Pools
The math calculations for swap pools are crucial from a security standpoint, as rounding issues are vulnerable to exploitation, resulting in a loss of funds from the protocol. Functions with a specif... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | false | false | ## Medium: Anyone can set the `marketmaker` address
### Description
This issue has been identified within the [changeMarketMakerAddress](https://github.com/longgammalabs/hanji-contracts/blob/70b15ec4d9e7578248141604503843716a67d875/src/HanjiLOB.sol#L313) function of the `HanjiLOB` contract.
The function allows the ad... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: The result of function calls should be cached rather than re-calling the function
### Description
The instances below point to the second+ call of the function within a single function.
*There is 1 instance of this issue:*
https://github.com/rabbitholegg/quest-protocol/blob/8c4c1f71221570b14a0479c216583342b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: NatSpec is missing
### Description
NatSpec is missing for the following functions, constructor and modifier: | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Vault Deployment Failure For Void Return Tokens
### Description
Using `ERC20` or `IERC20` to mediate transactions with underlying tokens will implicitly enforce strict interface conventions about those tokens - not just for input parameter definitions, but also the return types. `Factory4626` relies upon 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 | storage | true | false | ## Low: Use block.chainId to set NETWORK\_ID in the Gateway constructor
### Description
In the `GatewayEIP712` contract, the `networkId` is passed as a parameter to the contract constructor:
```
constructor(uint16 networkId, address gateway) {
NETWORK_ID = networkId;
PROXY_ADDRESS = gateway;
DOMAIN_SEPARATOR = ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Due to loss of precision, targetVotes may not reach
### Description
In the `\_pledge` function, require delegationBoost.adjusted_balance_of(pledgeParams.receiver) + amount
### Recommended Mitigation Steps
Use bias instead of amount in the check below:
uint256 slope = amount / boostDuration;
uint256... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inappropriate Condition Check for OpenZeppelin's ERC20 Implementation
### Description
Methods `_transfer` *and* `_transferFrom` are using a condition to check the outcome of OpenZeppelin's ERC20 functions, which revert on failure instead of returning a boolean. This can lead to incorrect error handling and une... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary call to reset_recovery() in constructor
### Description
Whether or not the recommendations from the issue **“Unnecessary setting of the active\_recovery\_end\_time variable”** are taken into consideration, the call to `reset_recovery` on [line 80](https://github.com/Zoltu/recoverable-wallet/blob/22... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: LP Earnings Addition Can Cause LP Pool to Exceed Maximum Capacity
### Description
`lpPoolCap` can be broken by LP earnings. If LP deposits is at its max, and no winners were found in the current draw, the `lpPoolCap` will be broken when the Lp earnings from ticket sales are [added to `postDrawLpValue`](https:/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Urn operators can create and remove urn operators
### Description
The `LockstakeEngine.hope` function allows assigning new operators for the urn. The function is itself authorized by the `urnAuth` modifier, allowing operators to create new operators or remove other operators. If a single urn operator is compro... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Tokens with very large decimals will not work as expected
### Description
Although not common, it is possible that ERC-20 tokens have `decimals() > 36`. The current system acknowledges it, but does not prevent anyone from creating a position with them. This will result in the token not working as expected.
[... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: LACK OF VERIFICATION FOR MULTIPLE MARKETING INFOS
### Description
The multiple functionality of the **contracts/cw20-base/src/contract.rs** does not validate data entered in marketing variables (`Logo::Url(_)`, `project` and `description`).
Code Location
-------------
When the `instantiate` function receives... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Multiple `getPayment` calls within the `buyMultipleNFT` function of `NFTMintSaleMultiple` can be simplified
### Description
The `buyMultipleNFT` function in the `NFTMintSaleMultiple` contract currently makes multiple calls to `buyNFT` in a loop https://github.com/vibexyz/vibe-contract/blob/d08057edbaf83b00d94d... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Checks-Effects-Interactions Pattern Violations In BaseTSA Contract
### Description
BaseTSA contracts implement some critical functions that violate the Checks-Effects-Interactions (CEI) pattern. Under certain external calls, this may create unexpected changes to Derive accounting.
Most notably in `processWi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `NativeRouter.sol` Does Not Always Wrap Incoming ETH in `_transferSellerToken()`
### Description
**Update**
Native team has chosen not to modify the code given that any excess ETH that remain in the `NativeRouter.sol` contract can be refunded.
**File(s) affected:**`src/NativeRouter.sol`
**Description:** The ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: [08] Fix typos (Multiple instances)
### Description
https://github.com/code-423n4/2024-11-nibiru/blob/8ed91a036f664b421182e183f19f6cef1a4e28ea/app/evmante/evmante_emit_event_test.go#L68-L76
Change to:
https://github.com/code-423n4/2024-11-nibiru/blob/8ed91a036f664b421182e183f19f6cef1a4e28ea/app/evmante/evma... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Initial Ownership Claimable by Anyone Both Directly and via a Proxy
### Description
**Update**
Marked as "Mitigated" by the client. Addressed in: `8e80f5f6dd7c583c73db58da00ec5a2d49f52304`. The client provided the following explanation:
> The RootCheckpointManager contract is an implementation contract, so ev... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Differing percentage denominators causes confusion and potentially brick claims
### Description
_Submitted by hickuphh3, also found by 0x_
### Details & Impact
There is a `PERCENTAGE_SCALE = 10e5` defined, but the actual denominator used is `10000`. This is aggravated by the following factors:
1. Split... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Failure to Update Borrow Rate after Fee Distribution
### Description
## Vulnerability in Function Call Order
The vulnerability pertains to the order of function calls, specifically between `distribute_fees` and `update_borrow_rate`.
`update_borrow_rate` calculates the borrow rate based on the value of `cust... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ecrecover signature malleability risk
### Description
Signature malleability refers to the ability to generate an equally valid signature on some data given one already valid signature on said data, and it is a typical security risk when using the `ecrecover` function. Although permit implementations don't rel... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Methods related to Staking on SideVault Contract encode incorrect staking/withdrawal methods for Base chain
### Description
**Severity**: High
**Status**: Resolved
**Description**
In Contract TradableSideVault, method stakingAccountDepositForUser(...) and method stakingAccountDeposit encodes the keyword, 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 | liquidation | false | false | ## Low: Under standard configuration, it is functionally impossible to ever fully repay all GHO debts
### Description
Because interest is charged on GHO debt without any new GHO entering the system, there is a constantly expanding gap between the total supply of GHO and the sum of all GHO debts as denoted by `GhoVaria... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unattributable Paymaster Fault [core]
### Description
*Note: this error was present in the previous audit commit but was not identified by the auditors at the time.*
The paymaster's `validatePaymasterUserOp` function is [executed inside a `try-catch`](https://github.com/eth-infinitism/account-abstraction/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: The `asdUSDC` contract can be used as a free DEX
### Description
Due to the permissionless and feeless nature of the [`deposit`(…)](https://github.com/code-423n4/2024-03-canto/blob/1516028017a34ccfb4b0b19f5c5f17f5fa4cad42/contracts/asd/asdUSDC.sol# L34-L44) and [`withdraw`(…)](https://github.com/code-423n4/202... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unused functions
### Description
The `register` and `registerOnly` functions in the **BaseRegistrar** contract both invoke the `_register` function, which is restricted by the `onlyController` modifier. However, no contract or address with `onlyController` privileges is calling these functions, rendering them ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Changing SWETHv3 address should emit an event
### Description
In `v3_swNFT.sol`, the `setSWETHv3` function allows an administrator to modify the address of the associated SWETHv3 contract, but fails to emit an event when this occurs. Given the importance of the SWETHv3 contract, an event should be emitted. Thi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | token | true | false | ## Gas: Refactor function mint to only do stores if token is not minted already
### Description
https://github.com/code-423n4/2024-01-curves/blob/516aedb7b9a8d341d0d2666c23780d2bd8a9a600/contracts/Curves.sol#L439-L454
The function `mint()` starts of by checking for empty name and symbol and assigning them if they 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 | other | false | false | ## Medium: `ThrusterFactory.setYieldCut` should claim fees for all pools before
### Description
Thruster have introduced ability [to change yield cut](https://github.com/code-423n4/2024-02-thruster/blob/main/thruster-protocol/thruster-cfmm/contracts/ThrusterFactory.sol#L75-L80) for their uniswap v2 like pools.
The yi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Documenting Validator Count Invariant
### Description
## Validator Bitmap Commitment in Celestia Blockchain
In `sp1-blobstream::get_validator_bitmap_commitment`, there is an implicit assumption about the maximum number of validators that may exist in the Celestia blockchain. The function is designed to handle... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users can swap at the best price by splitting swap into several small swap.
### Description
In the swap of geometric pair, the protocol matches the passive orders to the user's swap order.
However, users can swap at the best price by splitting swap into several small swap.
### Impact
This causes unfair swapp... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Zero Value Handling in DIAOracleV2Guardian
### Description
The `guardianDiffBips()` function of the `DIAOracleV2Guardian` contract lacks handling of zero value scenarios.
The function calculates the difference between two values in basis points (1/1000th of a percent) but fails to check if `value` is zero ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Extensive facilitator privileges
### Description
As facilitators have the ability to mint GHO simply by calling `GhoToken.mint()`, and because the AAVE price oracles will set GHO’s value at a hardcoded $1, it is worth emphasizing the power that facilitators have.
Any new facilitator should be thoroughly revi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: | Centralization Risk
### Description
**Description**
The `admin` address holds the ability to negatively impact the system in numerous ways, including but not limited to:
- Take all esGMX, sGMX and bnGMX via `reserveSignalTransfer` and `signalTransfer`.
- Use the `withdrawTokens` function to take any non... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Function to directly adjust position is not exposed in SeawaterAMM.sol
### Description
https://github.com/code-423n4/2024-08-superposition/blob/4528c9d2dbe1550d2660dac903a8246076044905/pkg/seawater/src/lib.rs#L730
### Impact
lib.rs holds the `adjust_position_internal` which allows users to change their posit... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Typo in Comments
### Description
The following comment was found in the `CoStake` contract:
```
// TODO snaity check to make sure token are transferred
```
The word `snaity` above should be spelled as `sanity` instead.
### Recommendation
To maintain clarity and trustworthiness, it is essential to rectify an... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | access-control | false | false | ## High: SeaDrop 's modifier onlyOwnerOrAdministrator would allow either the owner or theadmin to override the other person's config parameters.
### Description
The following 4 external functions in `ERC721SeaDrop` have the `onlyOwnerOrAdministrator` modifier which allows either one to override the other person's work... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong `PoolSize` increment in `Goldilend.repay()`
### Description
**Severity:** High
**Description:** When a user repays his loan using `repay()`, it increases `poolSize` with the repaid interest. During the increment, it uses the wrong amount.
It should use `interest` instead of `userLoan.interest` becaus... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unused Variable and Functions ✓ Fixed
### Description
The `Multisig` contract contains several unused variables and functions, such as the `data` parameter in `checkApprovals` and `checkNApprovals` function, the `signedMessages` variable and the `signatureSplit` function. These unused elements add confusion an... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | false | false | ## Low: Lack of heartbeat configurability makes oracles brittle to Chainlink changes
### Description
_Acknowledged_
In both `CurveStableswapOracle` and `CurveCryptoswapOracle` contracts, the Chainlink `heartbeat` values are set as **immutable** at the time of deployment. If Chainlink changes the heartbeat configurati... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `VetoProposal`: proposals cannot be vetoed in all states in which it should be possible to veto proposals
### Description
The [`VetoProposal`](https://github.com/code-423n4/2023-04-party/blob/440aafacb0f15d037594cebc85fd471729bcb6d9/contracts/proposals/VetoProposal.sol#L8-L69) contract allows to veto propos... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: user can drawDebt that is below dust amount
### Description
According to the protocol, drawDebt prevents user from drawing below the `quoteDust_` amount. However, a logical error in the code can allow user to draw below dust amount.
### Impact
A minimum loan amount is used to deter dust loans, which can di... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | critical | token | true | false | ## Critical: Incorrect accounting of `tipBalance` can indefinitely stall report execution
### Description
The `receive` fallback function in `CasimirManager` increases `tip` balance if the sender is not the `DelayedWithdrawalRouter`. The implicit assumption here is that all withdrawals, full or partial, are routed via... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.