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 | signature | false | false | ## Medium: Signature Replay Attack
### Description
**Update**
The team acknowledged the issue with a detailed statement as follow:
> This issue touches several contracts, so comments are also separated: 1) NFT: We do not want to restrict the ability to mint NFTs for users who have received a signature from NFT_MINTER... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A removed bonding curve would still be used by previously created creds
### Description
A bonding curve can be removed from the whitelist using the function `removeFromWhitelist()`. The issue is that previously created creds keep on using the old bonding curves that have been removed from the system.
It's not... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | false | false | ## Low: [25] The `Ecrecover` gas cost been massively increased without significant increases in executional cost
### Description
### Proof of Concept
Take a look at the gas cost for ecrecover https://github.com/code-423n4/2024-03-zksync/blob/4f0ba34f34a864c354c7e8c47643ed8f4a250e13/code/system-contracts/contracts/pre... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | true | false | ## Medium: Temporary DoS in redemptions due to incorrect asset withdrawal logic in farms
### Description
In the `BeforeRedeemHook` contract, within the `beforeRedeem` function, the `IFarm(farm).withdraw(assetAmountOut, msg.sender);` call attempts to withdraw a specified amount of assets from a farm selected by 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 | true | false | ## Medium: TRST-M-8 The freeze mechanism reduces the borrowableAmount, which reduces Lender's yield
### Description
**Description:**
The contract has two freeze intervals, **mintFreezeInterval** and **freezeBuckets.interval**, the
former to prevent users from making flash accesses and the latter to prevent borrowers ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `DaoFactory` Inherits `PausableUpgradeable` but Does Not Implement any Pausable Functionalities
### Description
The `DaosFactory` contract inherits from `PausableUpgradeable` but fails to implement the pause functionality in the `create()` function.
The function is missing the `whenNotPaused` modifier 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 | high | reentrancy | true | false | ## High: Attacker can drain all ETH from `AuctionDemo` when `block.timestamp == auctionEndTime`
### Description
It’s possible to drain all ETH from the `AuctionDemo` contract. There are two bugs that make it possible when they're exploited together.
### First bug:
In `AuctionDemo` there are two phases of an auction:... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Try-catch block at `Auction._createAuction()` will only catch string errors
### Description
_Submitted by 0xA5DF_
[Auction.sol#L234](https://github.com/code-423n4/2022-09-nouns-builder/blob/7e9fddbbacdd7d7812e912a369cfd862ee67dc03/src/auction/Auction.sol#L234)
The `_createAuction` function wraps the `toke... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Block timestamp type inconsistency
### Description
This comment is about multiple type shrinking of a `block.timestamp`'s `uint256`
to `uint48` cases e.g. in here:
- https://github.com/CoverProtocol/cover-core-v2/tree/513f5e502a8e8a623729c2c3480fca4e80fdef39/contracts/ClaimManagement.sol#L39
- https://github.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | true | false | ## Low: Irreversible State Change for isWhiteListedPeriod
### Description
In the `GorplesCoin` contract, the `isWhiteListedPeriod` variable is used to manage a whitelist period during which only whitelisted addresses can transfer tokens. The function `disableBlockedStatus`() allows an authorized user to set `isWhiteLi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
The unchecked keyword is new in solidity version 0.8.0, so this only applies to that version or higher, which these instances are.
6 results - 2 files:... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Must accrue `stabilityPoolYieldSplit` before changing it
### Description
**Impact**
Changing the yield can change the results from `calcPendingSPYield`
https://github.com/subvisual/quill/blob/d4a5dcc168dfc315eef6a4c9c465a36c86ca0ddc/contracts/src/ActivePool.sol#L150-L153
This means that the estimated va... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | false | false | ## Medium: Any refunded ETH is stuck in the StaticAttester contract
### Description
Based on the functionality of the EAS, if the total sent ETH during an attestation isn’t fully spent, it is refunded back to the attester or to the msg.sender in cases of attestation delegation. However, the `StaticAttester.sol` contra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Unreachable Code
### Description
The helper function [`MAX_MODEXP_INPUT_FIELD_SIZE`](https://github.com/matter-labs/era-contracts/blob/cc1619cfb03cc19adb21a2071c89415cab1479e8/system-contracts/evm-emulator/EvmEmulatorFunctions.template.yul#L140) restricts each input field (`Bsize`, `Esize`, `Msize`) to a maxim... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: onTokenTransfer() Trust Assumption
### Description
As an ERC677 token receiver, the `PoolOwners` contract implements the `onTokenTransfer()` function which will be called by the ERC677 token contract when transferring tokens through `transferAndCall()`.
The `onTokenTransfer()` function contains several input... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inadequate Merkle Height Verification
### Description
There is no explicit tree height verification for the requested index during verification of Merkle proofs.
The `verifyVote()` function is a critical code branch that validates if voters have the supplied voting power. A malicious user may provide a Merkle... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Allow custom Creator and Collector names to be emitted in `IStory` events to build artwork provenance
### Description
**Description:** The `IStory` interface is designed to allow custom names to be emitted for the Creator and Collector events. Here is an [example](https://www.transient.xyz/nfts/base/0x6c813061... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `characterModifier` is `uint8` but encodes `1.38e24` different Zalgo distortions
### Description
Only 256 Zalgo distortions are possible, which is a miniscule fraction of the actual combinations possible.
### Proof of Concept
A Zalgo tile is defined by a letter and a modification consisting of a combinati... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Misleading role name for validator management
### Description
The `VALIDATOR_ROLE` name is misleading because it suggests that it is assigned to validators themselves, when it is actually for addresses that manage validators. The system maintains a list of validators that need to be added or removed by a manag... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Not minting iPTs for lenders in several lend functions
### Description
_Submitted by Metatron, also found by 0x52, auditor0517, cccz, datapunk, hansfriese, hyh, kenzo, kirk-baird, shenwilly, unforgiven, and WatchPug_
### Impact
Using any of the `lend` function mentioned, will result in loss of funds to the... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | true | false | ## Low: ChainlinkRelayerFactory can't deploy ChainlinkRelayerWithL2Validity
### Description
ChainlinkRelayerWithL2Validity extends ChainlinkRelayer and provides L2 sequencer check. Currently, it can't be deployed with ChainlinkRelayerFactory and there is no separate factory for it, as ChainlinkRelayerFactory allows 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: Redundant Function Call
### Description
## getSharesByUsd
`getSharesByUsd` retrieves the total USD value controlled by the protocol using `_getTotalUsd` at the beginning. It calls `_getTotalUsd` for a second time even though there is no modification to the total USD value within the function that would necess... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [N‑11] Not using the named return variables anywhere in the function is confusing
### Description
Consider changing the variable to be an unnamed one
*There are 3 instances of this issue:*
**[m19 (Mimo) commented](https://github.com/code-423n4/2022-08-mimo-findings/issues/118#issuecomment-1219169496):**
>... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Sandwich attacks are possible as there is no slippage control option in Marketplace and in Lender yield swaps
### Description
_Submitted by hyh, also found by datapunk, Alex the Entreprenerd, and unforgiven_
### Vulnerability Details
Swapping function in Marketplace and Lender's yield() can be sandwiched... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | false | false | ## Medium: “Poison” order that consumes gas can block market trades Won't Fix
### Description
The market buy/sell functions gather a list of orders together for the same asset and try to fill them in order until a target amount has been traded.
These functions use `MixinWrapperFunctions._fillOrderNoThrow()` to atte... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Cache storage to prevent identical storage reads
### Description
Reading from storage is expensive; cache storage to prevent identical storage reads:
* `ComplianceChecker.sol`:
```solidity
// cache `for` loop storage lengths in `isCompliant`
59: optionIndex < _complianceOptions.length;
66: ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Permit opens the door for griefing contracts that interact with the Liquity Protocol
### Description
The `permit` function can be front-run to break the workflow from third-party smart contracts. The Liquity ERC20 contracts implement `permit`, which allows the allowance of a user to be changed based on a signat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Final prices within a threshold of 10 minutes are accepted, leading to a different result than the real one and causing winners not earning funds.
### Description
**Severity**: High
**Status**: Resolved
**Description**
The `finalizeGame()` function within the `UpDown.sol` and `OneVsOneExactPrice` smart 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 | low | other | false | false | ## Low: [05] Lack of checks-effects-interactions
### Description
It's recommended to execute external calls after state changes, to prevent reetrancy bugs.
Consider moving the external calls after the state changes on the following instances:
https://github.com/code-423n4/2022-12-tigris/blob/main/contracts/Lock.sol#... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | true | false | ## Medium: `withdraw()` users may can't withdraw `underlyingBorrowToken` properly
### Description
We can withdraw `underlyingCollateralToken` and `underlyingBorrowToken` by `withdraw()`:
From the code above we know that whether we take `underlyingCollateralToken` or `underlyingBorrowToken`
will check `validateUserIs... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insufficient Parameter Validation
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `e8df50f18f24a0081c03d8260c3e8bed0fb4523d`, `3d16f3eb73f76cfd9c0c8be858e72e66cdcc9034`. The client provided the following explanation:
> Added parameter validations and tests.
**File(s) affected:**`ves... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: FRAX.globalCollateralValue counts FRAX as collateral
### Description
Each unit of FRAX represents $1 multiplied by the collateralization ratio of debt. That is, if the collateralization ratio is 86%, the Frax Protocol owes each holder of FRAX $0.86. Instead of accounting for this as a liability, the protocol ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Missing checks that the end time matches the duration
### Description
*There is 1 instance 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 | medium | cross-chain | false | false | ## Medium: | Unbounded disRate
### Description
**Description**
There is no bound to how high the `disRate` variable can be set in the `setDisRate` function. Therefore, the distributed amount in the `distribute` function may exceed the provided `amount`.
**Recommendation**
Implement a maximum cap for `disRate`. A ca... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | true | false | ## Low: Use `_safeMint` instead of `_mint` in NonfungiblePositionManager.sol
### Description
In NonfungiblePositionManager::mint(), `_mint()` is used instead of `_safeMint()`.
NonfungiblePositionManager inherits openzeppelin's ERC721.sol which provides both `_mint()` and `_safeMint()`. `_mint()` is [discouraged](htt... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: onERC721Received should revert when protocol is paused or the pool is off
### Description
The `onERC721Received` function allows receiving NFTs even when the protocol is paused or the pool is off. This behavior is unlike other operational endpoints.
### Recommendation
Ensure that `onERC721Received` reverts wh... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Floating pragma
### Description
**Severity** : Informational
**Status** : Acknowledged
**Description**
The solidity version is not locked throughout the codebase if a version of solidity has a bug that might propagate. Always ensure to test and write contracts at a fixed solidity version.
**Recommendatio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Diamond implementation does not follow standard
### Description
**Severity**: Low
**Status**: Resolved
**Description**
The current diamond implementation does not follow the standard as it has elements missing and some flows have been altered to produce the same results in a different way than described 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 | gas | storage | true | false | ## Gas: Pack structs by putting data types that can fit together next to each other
### Description
As the solidity EVM works with 32 bytes, variables less than 32 bytes should be packed inside a struct so that they can be stored in the same slot, this saves gas when writing to storage ~20000 gas
### We have some uin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No validation when setting parameters
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
In Contract VaultETH_V2, methods `setParam(...)` and `setParams2(...)` set a lot of different values but they are not validated.
**Recommendation**:
Add validation for setup parameters 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 | other | false | false | ## Low: You can vote for proposal still not existent
### Description
## Handle
s1m0
## Vulnerability details
## Impact
voteProposal() doesn't check that proposalID <= proposalCount.
## Proof of Concept
https://github.com/code-423n4/2021-04-vader/blob/main/vader-protocol/contracts/DAO.sol#L79
## Tools Used
Manual... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | false | false | ## Medium: Pending withdrawals prevent safe removal of collateral assets
### Description
### Vulnerability details
The [`RestakeManager`](https://github.com/code-423n4/2024-04-renzo/blob/main/contracts/RestakeManager.sol) contract allows the admin to add and remove collateral tokens that are accepted for deposits int... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [03] Hooks should be virtual
### Description
The contract defines two internal hook functions intended for customization:
```
function _beforeTokenTransfer(address from, address to, uint256 amount) internal {}
function _afterTokenTransfer(address from, address to, uint256 amount) internal {}
```
These 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 | medium | other | false | false | ## Medium: Validator cannot set new address if more than 300 unstakes in it's array
### Description
If a validator has more than 300 accumulated unstakes associated with it, then it cannot set a new address for itself. The only way to decrease the length of the `Unstaking` array is through the `setValidatorAddress()` ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Royalties can be distribution unfairly among creatorRecipients for NFT contracts with non-standard getRoyalties() returns
### Description
## Lines of code
https://github.com/code-423n4/2022-02-foundation/blob/4d8c8931baffae31c7506872bf1100e1598f2754/contracts/mixins/NFTMarketCreators.sol#L85-L112
## Vuln... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Updating the utility token through the HolographOperator.setUtilityToken() function will break the \_bondedAmounts[operator] mapping
### Description
The `HolographOperator` contract implements the function `setUtilityToken()`:
```
/**
* @notice Update the Holograph Utility Token address
* @param utilityToke... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: StakedToken holders can avoid losses
### Description
Holders of StakedToken are exposed to losses when the `accrue` function triggers `applyLosses`. However, they can circumvent these losses by frontrunning the `accrue` function, redeeming their tokens moments before execution. This vulnerability enables us... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | false | false | ## Medium: Removing a Role Does Not Remove the Role From All Users
### Description
The [`removeRole`](https://github.com/ThenafiBNB/THENA-Contracts/blob/2bb84cf6bb429e9bac8ac8464f4546da855ef4ca/contracts/PermissionsRegistry.sol#L79-L91) function in the `PermissionsRegistry` contract allows the Thena multisig to remove... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | false | false | ## Medium: Loss of Veto Power can Lead to 51% Attack
### Description
_Submitted by TomJ, also found by 0xSky, ayeslick, Chom, pedr02b2, PwnPatrol, yixxas, and zkhorse_
[Governor.sol#L76](https://github.com/code-423n4/2022-09-nouns-builder/blob/7e9fddbbacdd7d7812e912a369cfd862ee67dc03/src/governance/governor/Governor.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Misleading Error Statements
### Description
The contracts define custom errors to revert transactions on failed operations or invalid input, however, they convey little to no information, making it difficult for the off-chain monitoring tools to track relevant updates.
**src/contracts/StakingContract.sol:L28... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | reentrancy | true | false | ## High: Anyone Can Steal All Funds From a DCA Order ✓ Fixed
### Description
Anyone can fill an existing DCA order by calling the `fillDCA` function of the `StarBaseDCA` contract:
**starbase\-limitorder/src/StarBaseDCA.sol:L77\-L83**
```
function fillDCA(
Order memory order,
bytes memory signature,
bytes mem... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Chain can be halted permissionlessly on any update to accreditation status
### Description
Linear iteration in service delegations to check user preference trust updates in the `AfterServiceAccreditationModified` hook, which is called in the governance-triggered `AccreditService` and `RevokeServiceAccreditati... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | false | false | ## Low: [02] Fee Calculation in Phase 2 May Lead to Rounding Errors Due to Integer Division
### Description
The Pump Science protocol implements a dynamic fee structure with three phases, where Phase 2 (slots 150-250) uses a linear decrease formula. The fee calculation is implemented in the `calculate_fee()` 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 | low | oracle | false | false | ## Low: `_stored_rates` doesn't account for asset types
### Description
`_stored_rates` doesn't account for asset types, so an asset with type 0 and set by a mistake oracle will work as type 1:
https://github.com/curvefi/stableswap-ng/blob/8c78731ed43c22e6bcdcb5d39b0a7d02f8cb0386/contracts/main/CurveStableSwapNG.vy#L4... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `FluidVaultT1.liquidate()` reverts if `actualColAmt_` is zero
### Description
- https://github.com/Instadapp/fluid-contracts/blob/75784793203c4be2cfa5476953ba0a7905ee79e1/contracts/protocols/vault/vaultT1/coreModule/main.sol#L1106
If there are no ticks available for liquidation in the vault, `FluidVaultT1.liq... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [16] Users can be liquidated in the next block
### Description
When [`borrowing`](https://github.com/code-423n4/2024-07-loopfi/blob/57871f64bdea450c1f04c9a53dc1a78223719164/src/CDPVault.sol#L256-L265), users are allowed to provide their `collateral == debt` they want to take, since this check would then pass w... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | false | false | ## Medium: Lack of input validation in function
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
In VestingSchedule.sol
Method addGroupCliff: _cliff is not validated to be non-zero value, having _cliff = 0 implies that it is not set to a value to begin with as shown in require(groupCliff[_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 | high | initialization | true | false | ## High: Incorrect basket USD value will cause incorrect results
### Description
Upon proposing a token swap, we have the following sequence of function calls:
```solidity
uint256[] memory totalValues = new uint256[](numBaskets);
// 2d array of asset balances for each basket
uint256[][] memory basketBalances = new ui... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [02] The Burn Function Emits an Incorrect Event
### Description
The Burn function is responsible for destroying a specified amount of tokens based on user requests. Burning typically means permanently removing tokens from the blockchain to reduce the circulating supply.
In the Burn event, it incorrectly recor... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Local biometric authentication is prone to bypasses
### Description
The Uniswap mobile wallet application uses local biometric authentication to authorize sensitive actions like transaction signing or showing the mnemonic screen. The authentication is based on a simple if statement (“event-based”) and not o... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: [6] The Contract Should safeApprove(0) first
### Description
Some tokens (like USDT L199) do not work when changing the allowance from an existing non-zero allowance value.
They must first be approved by zero and then the actual allowance must be approved.
IERC20(token).safeApprove(address(operator), 0);
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 in the decode command
### Description
The Cargo contract has a decode command to parse the encoded input or output data and extract the underlying values. The feature has two flags. One to indicate the type of data to decode and the other for data itself that has to be a hex value. How... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TRST-L-2 Missing indexed fields in ITimeswapV2PoolFactory.Created
### Description
**Description:**
The ITimeswapV2PoolFactory.Create event doesn’t have indexed fields. Event fields marked
with the **indexed** keywords are indexed by Ethereum nodes to make searched and filtering
eventsfaster. If an event doesn’... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Reward Tokens Can Differ
### Description
**Update**
Marked as "Acknowledged" by the client. Addressed in: `e8d9685634f4f9994d94d6629fd4d0661583d9c6`. The client provided the following explanation:
> We've acknowledge this in the readme, and the scripts should show that we are using the proper addresses
**Fil... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Overflow/Underflow | true | false | ## Severity: Medium Risk
## Context
- `LienToken.sol#L424`
- `LienToken.sol#L482`
- `PublicVault.sol#L376`
- `PublicVault.sol#L422`
- `PublicVault.sol#L439`
- `PublicVault.sol#L490`
- `PublicVault.sol#L578`
- `PublicVault.sol#L611`
- `PublicVault.sol#L527`
- `PublicVault.sol#L544`
- `PublicVault.sol#L563`
- `PublicVau... | Spearbit | 5 | Astaria |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | cross-chain | false | false | ## High: Deprecated variable `L1MessageServiceV1::__messageSender` is still used making `TokenBridge::completeBridging` revert for older messages preventing users from receiving bridged tokens
### Description
**Description:** In `L1MessageServiceV1`, this [comment](https://github.com/Consensys/zkevm-monorepo/blob/364b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Faulty logic allows duplicate custodian addition
### Description
_Resolved_
In `deusd_minting.move` function `add_custodian_address_internal()`, the incorrect assertion logic fails to prevent duplicate custodian addresses from being added.
If you check the below code, it uses OR operator
The OR condition 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 | other | false | false | ## Low: Import declarations should import specific identifiers, rather than the whole file
### Description
**Description:**
Using import declarations of the form import {} from "some/file.sol" avoids polluting the symbol namespace making flattened files smaller, and speeds up compilation.
**Recommendations:**
Cons... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | overflow | false | false | ## Medium: Rounding errors in compound and compound2
### Description
Due to the fact that Solidity truncates when dividing, performing a division in the middle of a calculation can result in truncated amounts being amplified and these amplifications leading to large errors. In the `MathUtils` contract, the [`compound`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users won't be able to claim vested tokens when contract is paused
### Description
**Impact:**
High, as owner has the power to make it so that users can't claim any vested tokens
**Likelihood:**
Low, as it requires a malicious or a compromised owner
**Description**
The owner can currently execute the fol... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | true | false | ## High: Vaults can be made erroneously liquidatable due to incorrect swap path
### Description
**Description:** When auto redemption is executed, the `Quoter::quoteExactOutput` and `Quoter::quoteExactInput` functions of the [Uniswap v3 view-only quoter](https://github.com/Uniswap/view-quoter-v3/tree/master) are invok... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | storage | true | false | ## Severity
**Medium Risk**
## Context
**File:** Account.sol
**Line Range:** L76-L78
```solidity
bytes memory callData = abi.encodePacked(data, unsignedData);
```
The function `metaDelegateCall()` does not currently check if `data` is non-empty.
## Risk
If `data.length` is equal to 0, it should call the fallback ... | Spearbit | 5 | Brink |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | true | ## Low: Dynamic LP fees will remain zero by default unless explicitly updated
### Description
As given by the logic in `LPFeeLibrary::getInitialLPFee`, dynamic fee pools initialize with an LP fee of 0%:
```solidity
function getInitialLPFee(uint24 self) internal pure returns (uint24) {
// the initial fee for a dyn... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Defunct Hardhat Import In Vaults
### Description
The vaults contain the following line:
`import "hardhat/console.sol";`
This module is used in development, but not production.
### Recommendation
The Hardhat imports have been removed. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Remove redundant external call during airdrop
### Description
**3066 gas can saved.**
| Method | Before | After | Gas Saved | Test Passes? |
|---------|------------|-----------|------|-------------|
| `NextGenMinterContract:airDropTokens()` | 1126101 | 1123035 | 3066 | Yes |
### Recommendation
[Source: sma... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | oracle | false | false | ## Gas: Remove redundant check from `VRFHandler::constructor`
### Description
**Description:** Remove redundant check from `VRFHandler::constructor`:
This check is redundant as `VRFHandler` inherits from `VRFConsumerBaseV2Plus` which already [performs](https://github.com/smartcontractkit/chainlink/blob/develop/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 | low | signature | true | false | ## Low: `Authorizable::_verify` should use EIP-712 typed structured data hashing
### Description
**Description:** [`Authorizable::_verify`](https://github.com/Accountable-Protocol/audit-2025-09-accountable/blob/fc43546fe67183235c0725f6214ee2b876b1aac6/src/access/Authorizable.sol#L46-L78) signs ad-hoc payloads that inc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | flash-loan | true | false | ## Medium: Rebalance will be completely dossed if OKX commision rate goes beyond the fee limits
### Description
Rebalancing interacts with OKXRouter to swap weth for tokens in certain pools and vice versa. But OKXRouter may charge commissions on both the from token and to token, which reduces potential profit to be ma... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Naming Suggestions
### Description
Throughout the codebase, there are multiple variables named similarly but with vastly different meanings, which makes it difficult for the reader to understand the context. A non-comprehensive list of these is:
* When [depositing](https://github.com/OriginProtocol/origin-do... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: An incorrect `rate` update
### Description
`rate` is fetched before epoch update in the `CRV` contract https://github.com/curvefi/stableswap-ng/blob/8c78731ed43c22e6bcdcb5d39b0a7d02f8cb0386/contracts/main/LiquidityGauge.vy#L237-L238 which can lead to an incorrect rate being saved to the storage. This finding ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | true | false | ## High: Incorrect `last_point.blk` calculation due to shared memory in `_checkpoint()`
### Description
In the `_checkpoint` function of the VotingEscrow contract, there's an issue with how `initial_last_point` is assigned as a reference to `last_point` instead of creating an independent copy. This causes incorrect bl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lock.sol: claimGovFees function can cause assets to be stuck in the Lock contract
### Description
### Impact
When calling [`Lock.claimGovFees`](https://github.com/code-423n4/2022-12-tigris/blob/496e1974ee3838be8759e7b4096dbee1b8795593/contracts/Lock.sol#L110), assets that are set to be not allowed or asset... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | front-running | false | false | ## Low: race condition
### Description
**Severity**: Low
**Status**: Acknowledged
**Description**
There exists an ERC20 race condition in PToken. This could lead to potential frontrun attacks and can lead to an attacker spending more tokens than intended for allowance.
**Recommendation**:
It is advised to intro... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Lack of Abstain Option in Voting Mechanism
### Description
The current voting mechanism within the regulation module does not provide an option for KYC authorities to abstain from voting. As a result, authorities are forced to vote either "for" or "against" a proposal. This limitation may lead to situations wh... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Hardcoded values for amounts of ERC20 tokens
### Description
[Here](https://github.com/FantiumAG/smart-contracts/blob/a2d126453c1105028f12277b8f342d2cdbf01a77/contracts/claiming/FantiumClaimingV1.sol#L220), the value of 10 billion payout tokens is hardcoded as $10_000_000_000_000_000, which is equal to 10 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... | solodit_api | medium | Optimism | true | false | ## Risk Assessment
**Severity:** Medium Risk
**Context:** Drippie.sol#L266
## Description
The inline comments correctly note that reentrancy is possible and permitted when `state.config.interval` is 0. We are currently unaware of use cases where this is desirable. Reentrancy is one risk, and flashbot bundles are ... | Spearbit | 5 | Optimism Drippie |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User can initiate withdraw for previous epoch if rebase hasn't been called since end of epoch
### Description
_Submitted by 0x52_
User is able to withdraw unstaked asset sooner than they should be.
### Proof of Concept
`Unstake()` allows the user to bypass the rebase() call by setting \_trigger to false.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Cache storage values in memory to minimize SLOADs
### Description
The code can be optimized by minimizing the number of SLOADs.
SLOADs are expensive (100 gas after the 1st one) compared to MLOADs/MSTOREs (3 gas each). Storage values read multiple times should instead be cached in memory the first time (costin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Function is returning the wrong first empty index
### Description
**Severity**: Low
**Status**: Resolved
**Description**
TradingStorage.sol - Function firstEmptyTradeIndex() mistakenly returns index = 0 since this is the default value to be returned. This takes place when the _openTrades array is filled as ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TRST-M-10 canHedge will return true when trade moves delta in same direction as expectedHedge even when that leads to more risk
### Description
**Description:**
Lyra’s security model relies on being able to hedge and achieve delta-neutrality when opening
a user position. The check is done in canHedge() in ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: Redundant Restricting Modifier in View Function
### Description
The issue is identified within the [`getOrderInfo`](https://github.com/longgammalabs/hanji-contracts/blob/09b6188e028650b9c1758010846080c5f8c80f8e/src/TrieLib.sol#L155) function of the `Trie` contract.
This function has a redundant `onlyLOBPermis... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: /UINT64 TYPES ARE LESS GAS EFFICIENT
### Description
`uint32`, `uint64`... variables are less gas efficient than `uint256`. Due to how the EVM natively works on 256-bit numbers, using for example 32-bit number introduces additional costs as the EVM has to properly enforce the limits of this smaller type.
This... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [03] Adjustment of the tests in `UniStaker.t.sol` to use `Uni.sol` instead of `MockERC20Votes.sol`
### Description
We don't list here the whole diff, only the most important parts of it; also omitting duplicate changes in multiple places.
### Preamble and set up: replace `ERC20VotesMock` with `Uni`**
### Re... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | false | false | ## Low: User can DoS pool lender's withdrawals.
### Description
Adversary can DoS pool withdrawals.
### Impact
Pool lender cannot withdraw their funds. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | cross-chain | true | false | ## Gas: Avoid emitting event on every iteration
### Description
Expensive operations should always try to be avoided within loops. Such operations include: reading/writing to storage, heavy calculations, external calls, and emitting events. In this instance, an event is being emitted every iteration. Events have a bas... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Interface and contract function parameter mismatch
### Description
The `revertBlocks` function has a different parameter name in [`IExecutor`](https://github.com/matter-labs/zksync-2-dev/blob/c05b49d7e303996f60a0e35f18ef224e45ee19f5/contracts/ethereum/contracts/zksync/interfaces/IExecutor.sol#L70) compared 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: Incorrect 512-bit number comparison in computeLiquidity function
### Description
_Resolved_
In the `computeLiquidity` function, the code attempts to check if `q > beta^2` where both values are 512-bit numbers represented as (`low_bits`, `high_bits`) pairs:
The current comparison translates to: `(beta2_low ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | rounding | true | false | ## High: User could withdraw more than supposed to, forcing last user withdraw to fail
### Description
Within Wildcat, withdraw requests are put into batches. Users first queue their withdraws and whenever there's sufficient liquidity, they're filled at the current rate. Usually, withdraw requests are only executable ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Caching mapping accesses in local variables to save gas
### Description
Anytime you are reading from a mapping value more than once, it is cheaper in gas cost to cache it, by saving one `gkeccak256` operation - `30` gas.
### Proof of Concept
1 instance:
##### src/FERC1155.sol
scope: `uri()`
* `metadata[_... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Underlying NFTs are Assigned Incorrect `nftId` for Collections
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `cf0c09a0c59961622a93ea527023538e91df8358`. The client provided the following explanation: Specify nftId for underlying nft in `_createLoan()`.
**File(s) affected:**`Seller... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.