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 | false | false | ## Low: Forcing CCIP native fee payment results in 10 percent higher costs for `LINK` holders
### Description
**Description:** CCIP allows users to pay using either `LINK` or native gas token. By hard-coding `EVM2AnyMessage::feeToken = address(0)` the protocol forces all users to pay using the native gas token.
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 | medium | other | true | true | ## Medium: New stakes delegated even when validator is inactive
### Description
The `StakingManager` contract manages staking operations and validator delegation in the HYPE staking system. When users stake HYPE tokens through the `stake()` function, the funds are distributed via the internal `_distributeStake()` func... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Recipient cannot always claim expected donation amount from a vault
### Description
Source: https://github.com/sherlock-audit/2023-09-Gitcoin-judging/issues/547
## Found by
0x00ffDa, 0xdeadbeef, Arz, BenRai, Kow, Silvermist, ZdravkoHr., alymurtazamemon, hals, jkoppel, lemonmon, p0wd3r
## Vulnerability D... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | false | false | ## Medium: The owner is able to withdraw pool share tokens from specific adapters
### Description
A centralization concern has emerged within the `AaveV3Adapter`, `WrappedCETHAdapter`, and `MA3WETHAdapter` contracts. These adapters, inheriting from the `ERC-20` tokens, serve as `target` tokens assigned to `Tranche`. ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Manual/Instant `fulfillRedeemRequest` doesn’t reserve liquidity
### Description
**Description:** `AccountableAsyncRedeemVault` account for reserved liquidity only when processing the queue through (`AccountableWithdrawalQueue::processUpToShares` / `AccountableWithdrawalQueue::processUpToRequestId`).
However... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | true | false | ## High: Missing staleness checks in oracle queries
### Description
When using third-party oracles, it is recommended to check the timestamp of a price feed against a staleness factor to avoid using a stale price that did not reflect the real value of the underlying asset. However, this is not done in the lending mark... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 validation of non-zero value
### Description
Within `ConfigurationModule::setMarketConfiguration`, there is no validation that `MarketConfigurationData.maxSlippage` is not zero:
This could affect the calculation of `pSlippage` within the `Market::getPSlippage` function, as any non-zero value of `pSli... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Validation Modules' Validation Can Be Fully Bypassed if Signature Validation Is Also Enabled
### Description
**Update**
Deferred actions are now only possible when there are no existing pre-validation hooks, and signature validation. Validation-associated and regular execution hooks are now executed as part o... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | true | false | ## Medium: Improper Upper Bound Definition on the Fee
### Description
_Submitted by Jujic_
The `rJoePerSec` does not have any upper or lower bounds. Values that are too large will lead to reversions in several critical functions.
#### Proof of Concept
#### Tools Used
Remix
#### Recommended Mitigation Steps
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 | access-control | false | false | ## Medium: Centralized actor can drain the whole protocol.
### Description
**Severity**: Medium
**Status**: Acknowledged
**Description**
The function `withDrawFunds()` in the `staking.sol` contract allows the owner to withdraw any token at any time. This means that the owner can withdraw tokens staked by other use... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Incorrect contract version numbers
### Description
_Resolved_
The `staking.cairo` contract declares `CONTRACT_VERSION: felt252 = '2.0.0'`, but this is supposed to be version `3.0.0` (the new BTC staking version) since the currently deployed contract is already version 2.0.0.
This creates confusion for versio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 return value
### Description
The [`delegateTo` function](https://github.com/compound-finance/compound-protocol/blob/f86c247f6f81e14f8e0fd78402653a0b8371266a/contracts/Governance/GovernorBravoDelegator.sol#L52) is `internal` and is only [called once](https://github.com/compound-finance/compound-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 | signature | true | false | ## Low: Users have no way of revoking their signatures in `LensHub`
### Description
In the `LensHub` contract, users can provide signatures to allow relayers to call functions on their behalf in meta-transactions, such as `followWithSig()`.
However, there is currently no way for the user to revoke their signatures. 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 | gas | overflow | true | false | ## Gas: Checking balance after the transfer cannot underflow, thus can be unchecked
### Description
**File:** `L1ERC20Bridge.sol`
This issue has been reported as separate finding, as it uses different invariant for underflow detection. While another finding uses the invariant that subtraction won't underflow, because... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | true | false | ## High: Missing Oracle Checks In Pull Feed Instructions
### Description
## PullFeedResponse Instructions
The **PullFeedSubmitResponseV2**, **PullFeedSubmitResponse**, **PullFeedSubmitResponseMany**, and **PullFeedSubmitResponseManyV2** instructions expect responses from oracles that are part of the same queue as the... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | false | false | ## Medium: vaultOwner Can Front-Run rebalance() With setAutomation() To Lower Incentives
### Description
## Lines of code
https://github.com/code-423n4/2022-08-mimo/blob/main/contracts/actions/automated/MIMOAutoAction.sol#L32
https://github.com/code-423n4/2022-08-mimo/blob/main/contracts/actions/automated/MIMOAutoReb... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | medium | oracle-manipulation | true | false | ## Medium: Fee calculations break when token decimals are different from 18
### Description
`FeeController.calculateFee()` and `calculateTokenAmount()` implicitly treat every ERC-20 as if it had **18 decimals**, but many popular assets (USDC/USDT = 6, etc.) do not.
Inside `calculateFee` the line
```solidity
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 | front-running | false | false | ## Low: Users May Purchase Tokens From Different Phase than Intended
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `2390ec05d16b77130bb10826754942c0dcc475ad`.
**File(s) affected:**`PrelaunchCircuitToken.sol`
**Description:** Current prelaunch purchase mechanisms allow for a user to purcha... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Zero checks
### Description
**Description**
It’s a good practice to use require(newValue != address(0), “ZERO_ADDRESS”); check before
setting the storage address variable.
contracts/Cohort.sol#61
contracts/Cohort.sol#64
contracts/Cohort.sol#95
contracts/Cohort.sol#95
contracts/PremiumPool.sol#25
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 | low | initialization | false | false | ## Low: Vault is susceptible to inflation attack by first depositor
### Description
The `Vault` contract is vulnerable to an inflation attack where the first user to deposit can manipulate the share valuation, allowing him to redeem a disproportionate amount of assets.
Consider minting an initial share amount (mintin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unused values/statements in functions
### Description
In `Comptroller.sol` at lines
https://github.com/CreamFi/compound-protocol/blob/23a4ae93adc70334553f5a83429a4e967c1eefaa/contracts/Comptroller.sol#L239
https://github.com/CreamFi/compound-protocol/blob/8432602ff43052b7f316426c3880eb6ab086a92d/contracts/Com... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unusable `retrieveNative()` function because contract can not receive ETH.
### Description
**Severity**: Informational
**Status**: Resolved
**Description**:
The function `retrieveNative()` is used to transfer ETH from the contract itself to the caller but the contract does not implement a `receive()` funct... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: An attacker can cancel other people's short orders
### Description
`LibSRUtil.transferShortRecord` does not check the owner of `nft.shortOrderId` before canceling it. `shortOrderId`s are reused after the order is canceled.
An attacker can create a state for an NFT where the short record's status is `SR.Parti... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | medium | other | false | false | ## Medium: No rate limiting for (s *DispersalServer) RetrieveBlob() API requests
### Description
## Medium Risk Alert
**Severity:** Medium Risk
**Context:** disperser/apiserver/server.go#L530
**Description:**
The method `(s *DispersalServer) RetrieveBlob()` does not enforce rate limiting. This request holds mut... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | false | ## Medium: Both block.prevrandao and block.timestamp are not reliably source of randonness
### Description
Both block.prevrandao and block.timestamp are not reliably source of randonness
### Impact
Miner can manipulate the block.prevrandao and block.timestamp to let specific address win the raffle
### Recommendation... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | initialization | true | true | ## Lines of code
https://github.com/rabbitholegg/quest-protocol/blob/8c4c1f71221570b14a0479c216583342bd652d8d/contracts/Quest.sol#L13
https://github.com/rabbitholegg/quest-protocol/blob/8c4c1f71221570b14a0479c216583342bd652d8d/contracts/Quest.sol#L44
https://github.com/rabbitholegg/quest-protocol/blob/8c4c1f71221570b1... | Code4rena | 5 | RabbitHole |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Inconsistent contract and file names
### Description
Inconsistent names between the contract file name and the contract name.
### Impact
The current name structure can be misleading. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Fund loss in case of Unsupported Market token deposit
### Description
_Submitted by csanuragjain_
#### Impact
User funds can be lost as current logic cannot withdraw unsupported market token even though deposit can be done for same
#### Proof of Concept
1. Navigate to
2. Check the function depos... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Protocol and referral fee would be permanently stuck in the Curves contract when selling a token
### Description
During the sale of a token `Curves._transferFee` subtracts all the fees from the selling price and transfers the remaining to the seller [here]().
However, the `protocolFee` taken away is not 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: `public` functions not called by the contract should be declared `external` instead
### Description
Contracts [are allowed](https://docs.soliditylang.org/en/latest/contracts.html#function-overriding) to override their parents' functions and change the visibility from `external` to `public`.
*There are 8 insta... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Access-controlled functions cannot be called when L2 sequencers are down
### Description
**Description:** Given that rollups such as [Optimism](https://docs.optimism.io/chain/differences#address-aliasing) and [Arbitrum](https://docs.arbitrum.io/arbos/l1-to-l2-messaging#address-aliasing) offer methods for fo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Validation of Header Field Sequence Length
### Description
The `constrain_header_field` function verifies that the claimed header field sequence is completely contained in the header:
**lib/src/headers/mod.nr:L93-L95**
```
// check the range of the sequence is within the header (so we can use get_un... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | signature | false | true |
The protocol supports 2D nonces through a `batchId` mechanism.<br>
Due to different ways to execute transaction on the wallet there could be a collision between `batchIds` being used.
This can result in unexpected failing of transactions
### Proof of Concept
There are two main ways to execute transaction from the s... | Code4rena | 5 | Biconomy |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong design/implementation of addLiquidity() allows attacker to steal funds from the liquidity pool
### Description
## Handle
WatchPug
## Vulnerability details
The current design/implementation of Vader pool allows users to `addLiquidity` using arbitrary amounts instead of a fixed ratio of amounts in com... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The time available for a canceled withdrawal should not impact future unstaking processes
### Description
### Lines of Code
### Impact
When `stakers` want to `unstake` their `StRSR`, they cannot `withdraw` `RSR` immediately.
Instead, each `withdrawal` enters a `queue` and will become available after the ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | true | false | ## Medium: All troves can be redeemed, including the one Bima team maintains
### Description
The `ConvexDepositToken` contract's CVX reward claiming mechanism is vulnerable on sidechains due to fundamental differences in Convex's reward architecture between mainnet and sidechains. Current implementation in `ConvexDepo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No mechanism for changing the recoverer in KintoWallet
### Description
* https://github.com/KintoXYZ/kinto-core/blob/f7dd98f66b9dfba1f73758703b808051196e740b/src/wallet/KintoWallet.sol#L48
In the current implementation of KintoWallet, it is impossible to change the address of the recoverer. If the recovere... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## Low: Factory setters intended to be callable once are not limited to a single successful call
### Description
The above setters, such as `CLFactory.setNonfungiblePositionManager`, are documented to be settable only once. This is not the case, and each setter could be called multiple times under the right conditions... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [14] Misleading function names in `RankedBattle.sol`
### Description
Rename `instantiateNeuronContract` to `setNeuronContract`, to reflect what the function is actually doing.
Update the natspec:
Rename `instantiateMergingPoolContract` to `setMergingPoolContract`, to reflect what the function is actually doi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: NameWrapper: Wrapped to Unregistered to ignore `PARENT_CANNOT_CONTROL`
### Description
### Impact
* owner of a wrapped node without `CANNOT_UNWRAP` fuse can unwrap and set the `ens.owner(node)` to zero to be an unregistered state
* if it happens, even if the node has `PARENT_CANNOT_CONTROL` fuse, the par... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing multi-step authority transfer mechanism
### Description
The existing implementation of the `set_operator` and `set_rate_authority` instructions employ an one-step procedure for authority delegation, which presents a security concern. This method lacks a safeguard against inadvertent delegations to unde... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Using Creator Address As Key For LBPCollection
### Description
## LBP Collection Documentation
The launch module stores a list of LBP instances in the `LBPCollection` resource using `sha3(asset_0_name + asset_1_name + creator_address)` as the key and LBP as the value.
However, since an `LBPCollection` has un... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Wrong values or confusing words in event messages
### Description
**Severity:** Low
**Description:**
- At [mUSD.sol#L146](https://github.com/getmetafinance/meta/blob/00bbac1613fa69e4c180ff53515451df4df9f69e/contracts/musd/mUSD.sol#L146), `postRebaseTokenAmount` should be calculated after decreasing `totalMUS... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: To implement TODOs found in the code risking node ops
### Description
This contains the TODO's mentions in the code which point to missing code implementation. This acts as more of a tracker/reminder that these need to be implemented.
### Recommendation
The TODO's mentioned should be implemented in the correc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Duplication of Bad Collateral Ratio Acknowledged
### Description
It is possible to set a bad collateral ratio in the `LybraConfigurator` contract for any vault:
**contracts/lybra/configuration/LybraConfigurator.sol:L137-L141**
```
function setBadCollateralRatio(address pool, uint256 newRatio) external onl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential Risks with Hooks' Internal Visibility
### Description
The `sphereXGuard` modifiers are designed to be used by integrating protocols. However, the visibility of the `_sphereXValidatePre`, `_sphereXValidatePost`, `_sphereXValidateInternalPre`, and `_sphereXValidateInternalPost` methods is currently set... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 domain separation in key exchange prf function
### Description
The MobileCoin Fog protocol includes a protocol for deterministically generating secret keys shared between a user and the ingest server. Specifically, a Diffie-Hellman style key exchange is performed between the client and server to de... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: [N‑10] `pragma experimental ABIEncoderV2` is deprecated
### Description
Use `pragma abicoder v2` [instead](https://github.com/ethereum/solidity/blob/69411436139acf5dbcfc5828446f18b9fcfee32c/docs/080-breaking-changes.rst#silent-changes-of-the-semantics)
*There are 2 instances of this issue.* | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | token | true | false | ## Gas: Make 3 event parameters indexed when possible
### Description
It’s the most gas efficient to make up to 3 event parameters indexed. If there are less than 3 parameters, you need to make all parameters indexed.
[Reference](https://code4rena.com/reports/2023-01-drips#g-05-make-3-event-parameters-indexed-when-po... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Confusing naming can lead to vulnerabilities in the future code edits
### Description
A voting passes two stages:
1. Vote is open for yeas and nays
2. Vote is open for nays only
To check for those stages these methods are used:
1. `_isVoteOpen`, `_canVote`, `canVote`
2. `_isVoteOpenForObjection`, `_canObject... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Imports can be grouped together
### Description
Group solmate/utils imports
[Tray.sol#L4-L11](https://github.com/code-423n4/2023-03-canto-identity/blob/077372297fc419ea7688ab62cc3fd4e8f4e24e66/canto-namespace-protocol/src/Tray.sol#L4-L11) | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Don't compare boolean expressions to boolean literals
### Description
`if ( == true)` => `if ()`, `if ( == false)` => `if (!)`
1. File: royalty-vault/contracts/RoyaltyVault.sol (line [44](https://github.com/code-423n4/2022-03-joyn/blob/c9297ccd925ebb2c44dbc6eaa3effd8db5d2368a/royalty-vault/contracts/RoyaltyV... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of event emission after sensitive action
### Description
The [`_initialize` function](https://github.com/graphprotocol/contracts/blob/d51553b3d70c61108852f0ffe1ed249254c91e9a/contracts/governance/Governed.sol#L31) of the `Governed` contract does not emit the [`NewOwnership` event](https://github.com/gr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | false | false | ## High: `ConcentratedLiquidityPool`: `rangeFeeGrowth` and `secondsPerLiquidity` math needs to be unchecked
### Description
_Submitted by hickuphh3_
##### Impact
The fee growth mechanism, and by extension, `secondsPerLiquidity` mechanism of Uniswap V3 has the ability to underflow. It is therefore a necessity for the ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | front-running | false | false | ## Low: Debt Allowances are Front-runnable
### Description
Debt tokens (both stable and variable) allow users to delegate a borrow allowance to other addresses (users or contracts). This allowance can be used to make a borrow on behalf of the delegator.
The function `approveDelegation(address delegatee, uint256 amoun... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `adminSettleDebt()` could be called multiple times leading to the loss of funds
### Description
**Severity**
**Impact:** High, since some users could lose their funds by others users claiming these funds
**Likelihood:** Low, since multiple call of `adminSettleDebt()` could be done only accidently or by 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 | true | false | ## Low: Accurate Calculation Of Vested Amount
### Description
## VTVLVesting Function Overview
In VTVLVesting, `vestedAmount` returns the amount vested for a given `_recipient` at a reference timestamp. It currently selects the reference timestamp as either the user-given timestamp if the claim is active or the `deac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | rounding | false | false | ## Medium: `getLatest` Data Will Give Wrong Results for Tokens With Decimals != 18
### Description
**Severity** - Medium
**Status** - Acknowledged
**Description**
Inside VaultkaV2GMXHandler to get the price of a token (usdc , index token and long token) we use the function getLatestData at L373. Since USD is repres... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Attacker Can Grief A User Who Is Unstaking
### Description
**Severity** - Low
**Status** - Acknowledged
**Description**
When a user unstakes , it is checked that the amount being unstaked is at most the FIL balance in the pool (L156).
An attacker can frontrun a user’s unstake call , call borrow() and borro... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Risk of insufficient liquidity
### Description
When purchasing a cover, the protocol [ensures it has enough funds](https://github.com/neptune-mutual-blue/protocol/blob/73fc82fbe0d1388867b7df669983fe42760daeb1/contracts/libraries/PolicyHelperV1.sol#L50) to pay out all potential claimants. The computation of 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 | medium | dos | true | false | ## Medium: Division by Zero in CvgRewards::_distributeCvgRewards leads to locked funds
### Description
The bug occurs when `CvgRewards::_setTotalWeight` sets `totalWeightLocked` to zero, leading to a division by zero error in
`CvgRewards::_distributeCvgRewards`, and blocking cycle increments. The blocking results in ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | false | false | ## Medium: Broken Operator Mechanism: Just 1 malicious / compromised operator can permanently break functionality
### Description
Operator access control isn't sufficiently resilient against a malicious or compromised actor.
### Impact
DoS / holding the users' funds hostage.
### Recommendation
Add an additional acce... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Long Revert Strings
### Description
If opting not to update revert strings to custom errors, keeping revert strings
I ran a test in remix and found the savings for a single short revert string vs long string to be 9,377 gas in deployment cost and 18 gas on function call.
contract Test {
uint256 a;
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 | high | token | false | false | ## High: Anyone can steal all the TRIBE tokens from the reward pool
### Description
The [`FeiPool` contract](https://github.com/fei-protocol/fei-protocol-core/blob/29aeefddd97f31c7f2a598fb3dca3ef24dc0beb4/contracts/pool/FeiPool.sol) allows users [to deposit](https://github.com/fei-protocol/fei-protocol-core/blob/29aee... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Alter velo receptions computation
### Description
_Submitted by 0x1f8b, also found by hansfriese_
The `deployer` can modify the values to obtain different values than expected.
### Proof of Concept
The flag used in `initializeReceiverWith` to prevent re-initialization is `fantomSender == address(0)`, 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 | overflow | false | false | ## Low: MULTIPLE INSTANCES OF UNCHECKED MATH
### Description
Some mathematical operations that could cause unexpected behavior under specific circumstances were found on the codebase. Although no effective arithmetic over/underflow were found and the `overflow-checks = true` flag was set on `Cargo.toml`, it is still r... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | true | false | ## Low: Validate Authority for Token Holder Accounts
### Description
## General Findings
While initiating `DebtType` and `VaultType`, there is no validation to ensure that token holder accounts are owned by the respective PDAs.
## Code Snippet: InitDebtType
## Code Snippet: InitVaultType
Although those are Admin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: State variables can be packed into fewer storage slots by reducing their sizes (*Instances missed by bot*)
### Description
The EVM works with 32 byte words. Variables less than 32 bytes can be declared next to each other in storage and this will pack the values together into a single 32 byte storage slot (if v... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | true | false | ## Low: Use low-level call only on contract addresses
### Description
In the following case, if `callTo` is an EOA, `success` will be true.
```solidity
(bool success, ) = callTo.call(callData);
```
The user intention here will be to do a smart contract call. So if there is no code deployed at `callTo`, the execution s... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | true | ## Medium: MultiInvoker liquidation action will revert due to incorrect closable amount calculation for invalid oracle versions
### Description
Source: https://github.com/sherlock-audit/2023-09-perennial-judging/issues/45
## Found by
panprog
The fix to [issue 49 of the main contest](https://github.com/sherlock-aud... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Gas: Calculation which won't underflow can be unchecked in `L1ERC20Bridge.sol`
### Description
[File: ethereum/contracts/bridge/L1ERC20Bridge.sol](https://github.com/code-423n4/2023-10-zksync/blob/1fb4649b612fac7b4ee613df6f6b7d921ddd6b0d/code/contracts/ethereum/contracts/bridge/L1ERC20Bridge.sol#L221)
Since `bala... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Two different invariantCheck variables used in PoolFactory.deployPool()
### Description
The `deployPool()` function in the `PoolFactory` contract uses two different `invariantCheck` variables: the one defined as a contract’s instance variable and the one supplied as a parameter. This was also documented in Se... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Duplicate State Update Operations in _redeem
### Description
The last code block of the `_redeem` function in the `LetterOfCredit` contract updates the LoC's state in storage upon its redemption. However, when an uLoC is redeemed, the storage is updated before the execution reaches that point. This is becau... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `setPool()` should check if `p.minLoanSize` < p.poolBalance
### Description
`setPool()` should check if `p.minLoanSize` `p.poolBalance`,it will cause borrower can not borrow the fund. Because when borrowing , `borrow()` function will check `if (debt pool.poolBalance)`
https://github.com/Cyfrin/2023-07-beedl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: HybridDeleGator: _updateSigners Reverts Overzealously
### Description
The internal `_updateSigners` function in `HybridDeleGator` takes an owner, a list of public keys, and a boolean argument and updates the owner as well as the signers list of the DeleGator account. The boolean argument `_deleteP256Keys`dicta... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: An owner can resign and lead to locked NFTs
### Description
Since there's a possibility of unclaimed drafts, the owner is the only one able to rescue the prize NFT from the raffle contract. Thus, having the ability to resign ownership (including non-intentional) could lead to stuck NFTs.
Consider altering or ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## Low: Lack of domain separation between request, response, and dispute IDs
### Description
Requests, responses, and disputes are uniquely identified in the protocol by identifiers computed as the Keccak256 hash of ABI-encoded structs. Due to a lack of domain separation, objects of two different types could theoretic... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Rewards calculation error will result in 0 rewards for users
### Description
**Description**
The formula to calculate rewards in `getUserStakeReward` is the following:
It is the same in `updateRewardsPerWeight`. The problem with this code is that `(unaccountedTime * rewardsPerWeight_.rate) / rewardsPerWeig... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Unnecessary payable declaration
### Description
In the `release` function, the beneficiary is unnecessarily declared as `payable`, even though there is no Ether transfer involved. This is redundant and can be removed for clarity.
### Recommendation
Remove the `payable` keyword from the beneficiary declaration... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing input validation on fee parameters
### Description
The functions `updateProofVerificationGas()` and `updateAxiomQueryFee()` update two "fee" parameters without enforcing any bound checks on them. Therefore, the updated values can be as extreme as `0` or `type(uint256).max`.
This may affect user exper... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Repository does not contain dependency management of Smart contracts.
### Description
**Recommendation**:
initialize NPM repository and define dependency to Openzeppelin smart contracts package. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Inconsistency between function name and documentation in `getUnderlyingAsset`
### Description
The `RWASegWrap::getUnderlyingAsset` function has inconsistent naming and documentation. The function name `getUnderlyingAsset` suggests it should return the underlying asset address (the RWA token), but the interface... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Broken Functionality Of RemoteProtocolProxy Due To Access Control
### Description
The `RemoteProtocolProxy` contract is intended to allow foreclosure and claim protection for Blueprint owners with Concreteer privileges. However, both the `foreclose` and `claimProtection` functions implemented in the Bluepri... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Missing length check for rewarders array in harvestVePendleReward function
### Description
**Severity**: Low
**Status**: Resolved
**Description**
The purpose of the harvestVePendleReward function is to distribute rewards to pools and perform fee transfers, but it fails to validate if the _rewarders array ha... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A malicious collection admin can reclaim a pair at any time to deny enhanced setting royalties
### Description
A collection admin can forcibly/selectively call `reclaimPair()` prematurely (before the advertised and agreed upon lockup period) to unilaterally break the settings contract at any time. This will... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: findMechanismOfProposal could shadow an extraordinary proposal
### Description
The `findMechanismOfProposal` function will shadow an existing extraordinary proposal if a standard proposal with the same proposal ID exists. That is, the function will report that a given proposal ID corresponds to a standard propo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `keccak256()` should only need to be called on a specific string literal once
### Description
It should be saved to an immutable variable, and the variable used instead. If the hash is being used as a part of a function selector, the cast to `bytes4` should also only be done once
*There is 1 instance of 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 | medium | initialization | false | false | ## Medium: Risk of Integer Overflow
### Description
## Overflow Checks in Release Mode
Overflow checks are currently not enabled in release mode. Consequently, there is a possibility for integer overflow in the context of the `SliceAllocator`, specifically if a `MemoryAccount` is initialized with `account_size=u16::M... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | initialization | true | false | ## Low: Missing `notEmptyURI` modifier during initialization
### Description
Currently, there is no `notEmptyURI` modifier present in the `initialize()` function that checks for the empty URI and, if it's empty, reverts the transaction:
```
//RWASegWrap.sol#L98-103
modifier notEmptyUri(string memory newUri) {
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: VAI Losing 1$ Peg May Lead to a Drained `VAIVault` and Destabilize the XVS Token and Vault
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> VAIVault distributions are continuously monitored by the risk team. The current value of reward per blo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Hard-coded secrets in repositories
### Description
The repositories provided by DFINITY contain hard-coded secrets, such as the `service_key` value used in the PagerDuty incident response process. The Git histories for the dfinity and infra repositories also contain hard-coded secrets, though it is unclear whe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | storage | true | false | ## Medium: Overly restrictive checks in Slot::check_prepare_phase_invariants Difficulty: Undetermined
### Description
Fuzzing `Node::handle_messages` produced an assertion violation in `Slot::check_prepare_phase_invariants`, which could be used to carry out denial-of-service attacks. This finding describes one of severa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: MINTR.decreaseMintApproval permission is set, but is never used
### Description
When the SiloAMO.sol policy is deployed, the `requestPermissions()` function includes the following 6 permissions:
However, the `MINTR.decreaseMintApproval()` function is never used within the policy, and therefore doesn't need 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: Conditional block in `WellPrice::getConstantProductWell` can be removed
### Description
The [else block](https://github.com/BeanstalkFarms/Beanstalk/blob/12c608a22535e3a1fe379db1153185fe43851ea7/protocol/contracts/ecosystem/price/WellPrice.sol#L64-L67) in `WellPrice::getConstantProductWell`, which handles 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 | overflow | true | false | ## Low: Integer overflow in Peggo's deploy-erc20-raw command
### Description
The `denom-decimals` argument of the `deploy-erc20-raw` command (in the `deployERC20RawCmd` function) may experience an integer overflow. The argument is first parsed into a value of the `int` type by the `strconv.Atoi` function and then cast ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | access-control | true | false | ## High: Unclear configuration values standards
### Description
The `MarginCalculator` contains the following configuration variables that can be updated only by the owner:
```solidity
uint256 internal oracleDeviation;
mapping (address => uint256) internal dust;
mapping (bytes32 => uint256[]) internal timesToExpiryFor... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Indefinite allowances
### Description
The [`Generalized4626Strategy`](https://github.com/OriginProtocol/origin-dollar/blob/508921bd39f988fa61b60cea372b910725ff7bd0/contracts/contracts/strategies/Generalized4626Strategy.sol#L82) and [`ConvexEthMetaStrategy`](https://github.com/OriginProtocol/origin-dollar/blob/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Oversight while Updating the basis fee in staking pool without updating rewards strategy
### Description
The staking pool contract allows for updating new fees, but it fails to update the rewards before fees reduction/increase, resulting in lower/higher-than-expected fees being taken from existing rewards. 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... | solodit_api | high | Validation | false | false | ## Severity: Critical Risk
## Context
LienToken.sol#L368-372
## Description
We only allow collateral holders to call `listForSaleOnSeaport` if they are listing the collateral at a price that is sufficient to pay back all of the liens on their collateral.
When a new lien is created, we check that `collateralStateHas... | Spearbit | 5 | Astaria |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.