prompt listlengths 2 2 | source stringclasses 3
values | severity stringclasses 5
values | category stringclasses 186
values | has_code bool 2
classes | has_poc bool 2
classes | reference_response stringlengths 23 5k | firm stringclasses 26
values | quality_score float64 0 5 | protocol stringclasses 398
values |
|---|---|---|---|---|---|---|---|---|---|
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: `Agent.setTokenURI()` Function is Missing a Check That `tokenId` Exists
### Description
The `setTokenURI()` function will successfully set a new `_tokenURI` for a given `tokenId` even if the `tokenId` in question does not exist. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TRST-M-6 MozToken will have a much larger fixed supply than intended.
### Description
**Description:**
MozToken is planned to be deployed on all supported chains. Its total supply will be 1B.
However, its constructor will mint 1B tokens on each deployment.
**Recommended Mitigation:**
Pass the minted sup... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | false | false | ## Gas: Should use arguments instead of state variable
### Description
This will save near 97 gas
- [DepositRecord.sol#L42](https://github.com/prepo-io/prepo-monorepo/blob/feat/2022-12-prepo/apps/smart-contracts/core/contracts/DepositRecord.sol#L42) | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Contracts are unnecessarily generic and complex
### Description
Both the [`Crowdsale`](https://github.com/CoinFabrik/ico/blob/142f43f3bec4afd0ffff3fce06946cf67cb0272f/contracts/Crowdsale.sol) and [`CrowdsaleToken`](https://github.com/CoinFabrik/ico/blob/142f43f3bec4afd0ffff3fce06946cf67cb0272f/contracts/Cro... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Typographical error in `BunniHookLogic::beforeSwap` should be corrected
### Description
**Description:** While it does not cause any issues, there is a typographical error in the declaration of the `hookHandleSwapOutoutAmount` within `BunniHookLogic::beforeSwap`. This should instead be `hookHandleSwapOutputAmo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | false | false | ## Low: Failed Deposits Are Ignored and Cannot Be Retried, Which Is Not Future-Proof
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `2e70f19b698b44f029c0254036c1d397bce70441`.
**File(s) affected:**`OperaBridge.sol`
**Description:** The function `resolve()` is responsible for processing dep... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: DoS in Cosmos SDK Crisis Module (github.com/cosmos/cosmos-sdk/x/crisis)
### Description
**Severity:** Medium
**Status**: Acknowledged
**Description:**
The chain does not halt when an invariant check fails on a Cosmos SDK network, and a transaction is sent to the x/crisis module.
**Impact**:
This can ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | storage | false | false | ## Medium: setAddress Could Reset Module Storage
### Description
The [`_updateImpl` function](https://github.com/radiant-capital/riz/blob/65ca7bb55550d30388e2b2277fefe5686ab7e4e8/src/riz-lending/RizLendingPoolAddressesProvider.sol#L261) of the `RizLendingPoolAddressesProvider` contract deploys a new proxy when the `_a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | overflow | true | false | ## Medium: Protocol Fees Can Block Further Deposits
### Description
Due to system accounting, it is possible for the payment of accrued fees to Brava to cause further deposits to fail.
When supplying assets, accrued fees owed to Brava are first removed before processing the deposit. As this occurs after taking the i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | true | false | ## Medium: Nibiru's bank coin to EVM balance tracking logic is completely broken for rebasing tokens and would lead to leakage/loss of funds when converting
### Description
The Nibiru EVM module's token conversion mechanism contains a critical vulnerability when handling rebasing tokens. The issue stems from an incorr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lock Solidity
### Description
**Severity**: Informational
**Status**: Resolved
Lock the pragma to a specific version, since not all the EVM compiler versions support all the features, especially the latest one’s which are kind of beta versions, So the intended behavior written in code might not be executed a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Lack of logs and events on state changes Pending
### Description
Events in Solidity are used to log major state changes in the system, as for tracebility and also trigger UI changes or user notifications. It is a good practice to use events for every value storage change to be able to trace back the system.
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Validation in `isValidSignature()` prevents partial fills at good prices
### Description
The `CowSwapFiller` contract validates orders with a strict requirement that the order's sell amount must be less than or equal to the filler's current sell amount:
This creates a timing issue between the time an order i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Duplicated check
### Description
**Description**
In the 'request_withdraw function in the case when "dtv" is less than "strategy.dtv_limit", there is a check for the 'accounts.user to be equal to `position_info.user`, but right after that it is checked again.
File: strategy/programs/vaultka/src/lib.rs: 907 an... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | true | ## Low: Non-upgradeable TokenVault
### Description
The TokenVault contract implementation indicates that this contract is prepared to be upgradeable. However, the way the contract is instantiated in the `initialize()` function of the `ERC20Guild` or `ERC20GuildUpgradeable` contract does not allow for upgradeability. 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: Potential EVM Compatibility Issue in Solidity Version `>=0.8.20`
### Description
**Update**
The Sequence team locks the contract files to 0.8.19 for `OrderBook.sol`.
Addressed in: `a55ce698803e34120fd577c5f9fb34c3c4cf216a`.
**Description:** According to the `foundry.toml` config file, the `Orderbook` contrac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Funds of the Escrow contract can be locked by anyone
### Description
The [`Escrow` contract](https://github.com/celo-org/celo-monorepo/blob/7be22605e172ca536c028e408b147aab83202e4a/packages/protocol/contracts/identity/Escrow.sol#L14) allows users to send payments to other users who do not yet have a public an... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | signature | false | false | ## Medium: Hash approval not possible when contractor == subcontractor
### Description
_Submitted by Lambda, also found by hansfriese_
[Project.sol#L859](https://github.com/code-423n4/2022-08-rigor/blob/f2498c86dbd0e265f82ec76d9ec576442e896a87/contracts/Project.sol#L859)
When a contractor (let's say Bob) is also a 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 | high | flash-loan | true | false | ## High: It is possible to carry out attacks to manipulate pools within one transaction using a flash loan
### Description
In contracts https://github.com/CoverProtocol/cover-peripheral/tree/d5b37e34d47abec3252cdabd46e55e34a72421d4/contracts/CoverRouter.sol and https://github.com/CoverProtocol/cover-peripheral/tree/d5... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | reentrancy | true | false | ## Security Report
## Severity: Medium Risk
### Context
- `Bond.sol#L212`
- `Bond.sol#233`
### Description
The functions `withdrawExcessCollateral()` and `withdrawExcessPayment()` enable the caller to withdraw excess collateral and payment tokens, respectively. Both functions are guarded by an `onlyOwner` modifier, ... | Spearbit | 5 | Porter Finance |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Unsigned Integer Variable Declared and Treated as a Signed Integer
### Description
The [`rewardDebt`](https://github.com/ThenafiBNB/THENA-Contracts/blob/2bb84cf6bb429e9bac8ac8464f4546da855ef4ca/contracts/GaugeExtraRewarder.sol#L35) field of the `Poolnfo` struct in the `GaugeRewarder` contract is declared as a ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | Min/Max Cap Validation | true | true |
Node runners can have all their stake rewards taken by the DAO as commissions can be set to a 100%.
### Proof of Concept
There is no limits on `_updateDAORevenueCommission()` except not exceeding `MODULO`, which means it can be set to a 100%.
[LiquidStakingManager.sol#L948-L955](https://github.com/code-423n4/2022-1... | Code4rena | 5 | Stakehouse Protocol |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | true | false | ## Medium: Borrower can obtain principle tokens without paying collateral tokens
### Description
_No response_
### Impact
High. Loss of assets.
### Recommendation
This issue can be easily mitigated by implementing the following changes to prevent the above attack.
```diff
// calculate the amount of collateral used ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect parameters passed to UniV3 may cause funds stuck in the vault
### Description
Note: this issue happened on the deployed version of GoodEntry and was discovered when using
Due to incorrect parameters and validation when working with UniV3 LP the vault may enter a state where rebalancing reverts. ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Decimals set by Yearn pricer do not re�lect changes to yToken decimals
### Description
In the Yearn v2 vaults, the values that the `yToken` name, symbol, and decimals functions return for the current `_bestVault` can change. In particular, a change in the decimals value could affect the scaling of the Yearn pr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: The protocol is using a vulnerable library
### Description
The 4.8.0 version of the OpenZeppelin library has security vulnerabilities that are listed [here](https://github.com/OpenZeppelin/openzeppelin-contracts/security). While currently the vulnerable code is not used in the codebase, the library should be u... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | rounding | false | false | ## Low: Deprecated `testFail` Usage in Tests
### Description
Several tests ([1](https://github.com/Polkamarkets/polkamarkets-js/blob/24f1394be94d27433d2e3a7370442126e1c1e5ba/test/PredictionMarket.t.sol#L691-L698), [2](https://github.com/Polkamarkets/polkamarkets-js/blob/24f1394be94d27433d2e3a7370442126e1c1e5ba/test/Pr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | rounding | true | false | ## Medium: `requiredImprovementRate` can not work as expected when `previousInterestRate` less than 10 due to precision loss
### Description
_Submitted by WatchPug, also found by CertoraInc and hickuphh3_
[NFTLoanFacilitator.sol#L167-L179](https://github.com/code-423n4/2022-04-backed/blob/e8015d7c4b295af131f017e646ba... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: initialize() function can be called by anybody
### Description
`initialize()` function can be called anybody when the contract is not initialized.
More importantly, if someone else runs this function, they will have full authority because of the `__Ownable_init()` function.
Also, there is no 0 address check i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | true | false | ## Low: Numerical difference between getNFTQuoteForBuyOrderWithPartialFill() and _findMaxFillableAmtForBuy() may lead to precision errors
### Description
There is a slight numerical instability between the partial fill calculation and the first client-side calculation (i.e. `getNFTQuoteForSellOrderWithPartialFill()` /... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: onlyEOAEx modifier that ensures call is from EOA might not hold true in the future
### Description
modifier `onlyEOAEx` is used to ensure calls are only made from EOA. However, EIP 3074 suggests that using `onlyEOAEx` modifier to ensure calls are only from EOA might not hold true.
### Impact
Using modifier... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Delaying Withdrawal By Flooding The Withdrawal Queue
### Description
As there is no minimum amount required in the function `requestWithdrawal()`, a malicious user could flood the withdrawal queue with a large number of requests, each of a small withdrawal amount. This could potentially delay the processing of... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | true | false | ## Low: `payable` function does not transfer ETH
### Description
The following functions can be called by any user, who may also send some funds by mistake. In that case, those funds will be lost (this also applies to delegatecalls, in case they don't use the transferred ETH).
*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 | low | liquidation | false | false | ## Low: Liquidity Providers Taking on the Long Collateral Exposure
### Description
## The Pool Effect
The pool effectively assumes the long exposure associated with the user's collateral. This situation arises because, when funds are deposited, the `collateral_usd` value is fixed in USD terms, despite Adrena storing ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Prisma Schema and Internal Metadata Exposure in Client JavaScript Bundle
### Description
Two publicly accessible JavaScript bundles in the production environment expose internal Prisma ORM schema definitions, entity names, enum values, and Prisma client metadata:
- https://backoffice.testnet.colb.io/backoffic... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | initialization | false | false | ## Gas: Variables Can be Immutable/Constant
### Description
The following variables are initialised either when created or in the constructor and then never modified and can be changed to immutable/constant to save gas.
[Proposal-Store.sol#L35](https://github.com/Plex-Engineer/manifest/blob/688e9b4e7835854c22ef44b045... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | overflow | false | false | ## High: Potential Overflow in Accumulator Variables
### Description
The issue is pinpointed within the [`Node`](https://github.com/longgammalabs/hanji-contracts/blob/09b6188e028650b9c1758010846080c5f8c80f8e/src/TrieLib.sol#L10) struct of the `Trie` contract.
There is a vulnerability due to the use of `uint64` variab... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: deposit does not update account balance for existing validators
### Description
The validator store in Beacon-Kit keeps track of two different "balance" values for each validator:
1. **EffectiveBalance**: The effective balance of the validator, stored in the KVStore at `storage/pkg/beacondb/kvstore.go#L91`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | false | false | ## Low: UNCHECKED ARITHMETIC
### Description
In computer programming, an overflow occurs when an arithmetic operation attempts to create a numeric value that is outside the range that can be represented by a given number of bits – either greater than the maximum value or less than the minimum representable value.
Thi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: The `increaseLiquidity()` in `PositionManager` is Missing Slippage Protection
### Description
The `PositionManager.addLiquidity()` provides a way for the admin to increase the liquidity of a position. The function uses `_addLiquidityUniV3()` that hardcodes the `amount0Min` and `amount1Min` arguments to 0 and e... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: deposit.Service race condition in failedBlocks field
### Description
The `s.failedBlocks` map is used concurrently in the `depositCatchupFetcher()` and in the `depositFetcher()`. The manner in which this map is used concurrently is seemingly safe - a single map key index is never accessed concurrently, only... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: FujiOracle - _getUSDPrice does not detect stale oracle prices; General Oracle Risks
### Description
The external Chainlink oracle, which provides index price information to the system, introduces risk inherent to any dependency on third-party data sources. For example, the oracle could fall behind or otherw... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary casting as variable is already of the same type
### Description
https://github.com/code-423n4/2023-04-frankencoin/blob/1022cb106919fba963a89205d3b90bf62543f68f/contracts/MintingHub.sol#L124-L132
### MintingHub.sol.clonePosition(): pos should not be cast to address as it's declared as an address
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect assumptions about bptindex may lead to incorrect input amounts in _deposittoau- rapool
### Description
The `Omnipool._depositToAuraPool` function checks if the assets include BPT by assessing if `_pool.bptIndex > 0`. If this condition is met, it decrements `_pool.assetIndex` by 1 before setting the ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Deployment script requires unencrypted private key
### Description
**Description:** The deployment script [`deploy.sh`](https://github.com/Licredity/licredity-v1-core/blob/e8ae10a7d9f27529e39ca277bf56cef01a807817/deploy.sh#L29-L44) requires a private key to be stored in clear text inside the `.env` file:
```b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | true | false | ## High: `triggerFee` is stolen from other auctions during `settleWithBuyout()`
### Description
The function `settleWithBuyout()` is used to settle an auction with a buyout from the main lender. This lender needs to repay all other lenders and will receive the NFT collateral. Near the end of the function, the `trigger... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Chainlink’s latestRoundData Might Return Stale Results ✓ Fixed
### Description
The `_getBackingTokenPriceInUsd` function fetches the latest price from the oracle without verifying the freshness of the data. Without a freshness check, the contract could rely on outdated price data, potentially exposing the prot... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The `Staker` and `TroveManager` cannot operate with non-conforming ERC20 tokens
### Description
The `Staker` and `TroveManager` contracts call `transfer()`, `transferFrom()`, and `approve()` directly without safety checks. Many ERC-20 tokens deviate from the standard by not returning a value, causing these cal... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Gas: `PriceOracleImplementation.cEtherAddress` variable should be immutable
### Description
This variable is only set in the constructor and is never edited after that:
Consider marking it as immutable. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | rounding | true | true | ## High Risk Severity Report
## Context
Lock.sol.sol#L180
## Description
The `unstreamed` variable tracks whether someone is staking in the contract or not. However, due to division precision loss at `Locke.sol#L164-L166` and `Locke.sol#L187`, `unstreamed > 0` may occur even when everyone has withdrawn all deposited ... | Spearbit | 5 | Locke |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: State variable `saleOpen` is misleading as it used to indicate the start of auction.
### Description
**Description**
CryptoBearWatchClub.sol, saleOpen
**Recommendation**:
Rename to reflect use of state variable. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Panic due to slice size mismatch in copy_from_slice() via sendtochannel RPC call
### Description
There are 3 instances where `copy_from_slice()` is used to copy a slice into a fixed-size container. `copy_from_slice()` panics if the source and destination containers differ in length.
### Recommendation
```diff... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | access-control | true | false | ## Medium: Permissionless OffRampState initialization under official program ID enables spoofed “official” instances
### Description
The `initialize` instruction lets any signer create a new `OffRampState` and become its `admin`. The global `OffRampCounter` is `init_if_needed` and unguarded, and the new state PDA is d... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | false | false | ## Medium: whitelistedRoutes for Ethereum_SpokePool affect other routes
### Description
When in `HubPool`‘s [`executeRootBundle` function](https://github.com/across-protocol/contracts-v2/blob/bf03255cbd1db3045cd2fbf1580f24081f46b43a/contracts/HubPool.sol#L536), tokens are moved between spokes in order to [complete reb... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ValidatorManager: missing fund withdrawal from validator in `deactivatevalidator` function
### Description
`StakingManager.deactivateValidator()` creates a withdrawal request but does not undelegate/withdraw funds from validator by calling `processValidatorWithdrawals()`:
```solidity
function deactivateVali... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Premature Finalization Vulnerability in `IDOPoolAbstract` Contract
### Description
**Severity** : Medium
**Status** : Resolved
**Description** :
The `IDOPoolAbstract` contract suffers from a significant flaw where it allows the contract owner to finalize an Initial DEX Offering (IDO) prematurely without ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 param in NatSpec in `CToken`
### Description
* [CToken.sol:24](https://github.com/Plex-Engineer/lending-market-v2/blob/443a8c0fed3c5018e95f3881a31b81a555c42b2d/contracts/CToken.sol#L23-L24)
Although a new argument `uint8 stable_` was added, the NatSpec for the parameter is missing. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Accounting For Fee-On-Transfer Tokens
### Description
**Severity** - Medium
**Status** - Acknowledged
**Description**
The base token is supposed to be a stable coin like USDT , though not currently but it is possible in the future that the fee on transfer mechanism for the token is turned on . ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | logic | true | false | ## Medium: Incorrect Period Transition Logic in Reward Distribution
### Description
The `updatePeriod` function contains a critical flaw in the logic used to calculate the start of the next reward period. This error can lead to gaps in reward distribution, resulting in users missing out on potential rewards. The 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 | overflow | false | false | ## Medium: repayDebt in Vault.sol could DOS functionality for markets
### Description
_Submitted by p4st13r4_
Any user can pay the debt for any borrower in `Vault.sol`, by using `repayDebt()`. This function allows anyone to repay any amount of borrowed value, up-to and including the `totalDebt` value; it works by 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... | solodit_api | medium | oracle | true | true | **Description:** The `getPrice` function in `ChainlinkFeedLibrary` fetches the latest price from a Chainlink feed using `latestRoundData`, but does not check if the returned data is stale. Chainlink feeds can become stale if no new price updates have occurred for a significant period, which may result in outdated or in... | Cyfrin | 5 | Licredity |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: RefundAddress forwarded to LayerZero endpoint is incorrect
### Description
The `sendMessageUsingNative` function from the `LayerZeroAdapter.sol` contract is used by the `Bridge.sol` contract to send a message using LayerZero. This function, in turn, calls the `_sendMessage` function, which again calls `_lzS... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | true | false | ## Low: [06] Unbounded loop in `initialize` function could lead to failed deployments
### Description
The `initialize` function iterates through all existing pairs to set permissions for their tokens. For each pair, it:
1. Makes an external call to retrieve the pair address.
2. Makes two more external calls to get tok... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: | Memory Modifiers
### Description
**Description**
The functions `onERC721Received`, `updateEdition`, and `createEdition` have arguments marked as `memory` when they could be declared `calldata`.
Changing the memory modifiers from `memory` to `calldata` will demand more gas upon deployment but less gas for ea... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Irrevocable Token Cannot Be Minted to Revocable Token Holder
### Description
If the Venus team attempts to mint an irrevocable token for a user already holding a revocable Prime token, the minting process fails. This is due to the internal function `_mint`, which requires that the recipient must not hold an... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: RCLeaderboard.market storage variable is not used
### Description
## Handle
cmichel
## Vulnerability details
The `RCLeaderboard.market` storage variable is never used.
Instead, the `MARKET` role seems to be used to implement authentication.
## Impact
Unused code can hint at programming or architectural er... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## Medium: `EthRouter.sell`, `EthRouter.deposit`, and `EthRouter.change` functions can be DOS'ed for some ERC721 tokens
### Description
### Impact
The following `EthRouter.sell`, `EthRouter.deposit`, and `EthRouter.change` functions call the corresponding ERC721 tokens' `setApprovalForAll` functions.
For ERC721 tok... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | reentrancy | true | false | ## Medium: Risky Footguns from Bold
### Description
**Impact**
These 3 lines can be VERY dangerous
https://github.com/GalloDaSballo/quill-review/blob/8d6e4c8ed0759cea1ff0376db9fd55db864cd7e8/contracts/src/Zappers/Modules/FlashLoans/BalancerFlashLoan.sol#L46-L52
The reason why this code is safe for BOLD is becasue `... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inaccurate reward distribution if reward period is set to start in the past
### Description
Severity: Low Risk
Context: WrappedVault.sol#L264
Description: Setting rewards in the past does not consider how long the users have staked already but
only their staked amount, which has a different behavior than setti... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Denial-of-Service
### Description
**Update**
The client acknowledged the issue and provided the following explanation:
> The involved arrays will not be too long.
**File(s) affected:**`LiquidityFundsManage.sol`, `Payment.sol`, `FinanceToken.sol`
**Description:**
1. All proposal and vote functionality 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 | front-running | true | false | ## Medium: Creating a new governance proposal can be prevented by anyone
### Description
_Submitted by berndartmueller, also found by CertoraInc, m9800, and scaraven_
When creating a new governance proposal, the `proposalId` is generated by hashing the proposal data (`_targets, _values, _calldatas, descriptionHash`).... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `>=` costs less gas than `>`
### Description
The compiler uses opcodes `GT` and `ISZERO` for solidity code that uses `>`, but only requires `LT` for `>=`, which saves 3 gas.
https://github.com/code-423n4/2023-06-lukso/tree/main/contracts/LSP0ERC725Account/LSP0ERC725AccountCore.sol#L182
https://github.com/c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: FRAX admin can adjust fee rate to harm Napier and its users
### Description
FRAX admin can adjust fee rates to harm Napier and its users, preventing Napier users from withdrawing.
### Impact
Users unable to withdraw their assets. Loss of assets for the victim.
### Recommendation
Ensure that the protocol 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 | high | initialization | true | false | ## High: Denial of Service and Permanent loss of funds
### Description
The `burn` function in the `LBTC.sol` smart contract is designed to burn a specified amount of `$LBTC` from the `msgSender()` on the source EVM-chain and transfer the corresponding amount to a destination `scriptPubkey` on the Bitcoin network. 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 | gas | other | false | false | ## Gas: State variable read in a loop
### Description
The state variable should be cached in a local variable rather than reading it on every iteration of the `for-loop`, which will replace each Gwarmaccess (**100 gas**) with a much cheaper stack read.
Estimated saving:
| Method call or Contract deployment | Before |... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unsafe transfer usage
### Description
**Description**
In contract RailgunLogic.sol in functions transact() and generateDeposit() is used transfer()
function for transferring fee to the treasury contract. Since transfers have fixed 2,300 gas for
executing it is unsafe to use it with new versions of solidity.
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [01] Incorrect module name in telemetry measurement for bank module’s `InitGenesis`
### Description
In the bank module’s InitGenesis method, the telemetry measurement is incorrectly using “crisis” as the module name instead of “bank”. This means the initialization time is being attributed to the wrong module.
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | reentrancy | false | false | ## Medium: Withheld ETH shoud not be sent back to the frxETHMinter contract itself
### Description
_Submitted by ronnyx2017, also found by ayeslick and rvierdiiev_
### Impact
It will lead to duplicating accounting for the Eths which have been already converted to the frxETH tokens. It means Eth:frxEth will not be 1... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Linear manager check may cause out-of-gas
### Description
`LiquidityBuffer.onlyPositionManagerContract` performs a cycle scan over all registered managers on every call. As the number of managers increases, this check may cause out-of-gas error.
```solidity
modifier onlyPositionManagerContract() {
...
for... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Migration Proposer Can Hijack Other User's Buyout To Settle A Vault
### Description
`Migration.settleVault` function should only be callable if the buyout initiated by the migration proposal is successful. However, it was observed that it is possible to call `Migration.settleVault` successfully even though the... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Content Identifiers Can Be Duplicates
### Description
**Update**
The Talentir team fixed the issue in PR-25 by tracking the content IDs within a mapping in the contract and ensuring that new tokens have a unique content ID.
**File(s) affected:**`TalentirTokenV1`
**Description:** The `mint()` function makes 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 | low | other | false | false | ## Low: Magic numbers
### Description
There are two numbers in this line
https://github.com/DivergenceProtocol/diver-contracts/blob/e5286f94a7ccb9d6279fae51ea66a8833672628a/src/core/Arena.sol#L85.
The use of constants or Solidity time span build in keywords makes the codebase more understandable.
### Recommendation
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... | cyfrin_structured | medium | input-validation | false | false | ## Medium: Lack of a feature to allow investors to increase their nounce
### Description
The function `SecuritizeSwap::executePreApprovedTransaction()` allows anyone to execute a pre-approved transaction by providing a valid signature.
This function relies on an internal function `doExecuteByInvestor()` and the hash 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... | cyfrin_structured | low | logic-error | true | false | ## Low: Missing valid bounds check in clamp
### Description
The `FixedPointMath::clamp` function is intended to bound `x` between `minValue` and `maxValue`. However, if `minValue > maxValue`, the assembly logic first sets `z = max(x, minValue)` (which will be at least `minValue`), then caps `z` at `maxValue`. This mea... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | true | false | ## Low: [16] Silent Precision Loss in Decimal Conversion
### Description
**Function Name:** \_withdrawFromValidator
**Contract Name:** StakingManager.sol
**Description:**
Converting amounts from 18 to 8 decimals can result in zero values for small amounts, leading to discrepancies between internal accounting and val... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: _recordBurn does not handle 0 _eth appropriately
### Description
## Handle
paulius.eth
## Vulnerability details
## Impact
contract Vether4 function _recordBurn does not check that _eth > 0, thus it is possible to pass this check multiple times:
if (mapEraDay_MemberUnits[_era][_day][_member] == 0)
If 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 | dos | true | false | ## Medium: Keeper can make deposits/orders/withdrawals fail and receive fee+rewards
### Description
Malicious keeper can make execution of deposits/orders/withdrawals fail by providing limited gas to the execution.
If enough gas is sent for the cancellation to succeed but for the execution to fail the keeper is able... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing fee-free exit path for feeRecipient
### Description
In `SimpleSwapFacility.sol`, the `feeRecipient` collects fees in `debtToken` whenever users exchange their collateral for debt, or vice versa. These fees accumulate over time and can be collected through the `collectFees()` function, where the `feeRec... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Blacklisted implementation versions are accessible through migrations
### Description
**Description:** The `VaultFactory` contract implements a blacklisting mechanism to prevent the use of vulnerable or deprecated contract versions. However, the blacklisting check is only applied when creating new vaults thro... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Code Clarity
### Description
## Checked Division Function
The `checked_div` function is designed to divide one `OraclePrice` by another, yielding a new `OraclePrice` instance that represents the division result of their respective price and confidence fields. It attempts to calculate the confidence (`conf`) 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: The calculation of `assetsMax` is incorrect.
### Description
### Finding description and impact
In the `_undeploy` function, `assetsMax` is incorrectly calculated because the contract directly retrieves `totalSupplyAssets` and `totalSupplyShares` from `_morpho` storage without accounting for the accrued 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 | other | true | false | ## Medium: The aggregatedQueueAmount value is used inconsistently
### Description
The `aggregatedQueueAmount` variable represents the cumulative DAIx amount in the queue that is waiting for the withdrawal. When requesting the withdrawal, this value is used as the amount of DAI that needs to be withdrawn, which may b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Code Refactoring
### Description
## Governance and Pegging Update
## Issues Identified
1. **Governance Issues**
- The `governance::update_reward_incentives` function does not validate the `incentives_percent` parameter before updating the incentives percentage in the `AmnisGovernance` resource. Similarly, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inaccurate timestamp comparison in vesting schedule may postpone full allocation
### Description
The `release()` function calculates the releasable amount by determining the vested amount up to the current point in time.
The amount vested over time is computed using the `_vestingSchedule()` function:
```soli... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insecure Generation of Randomness Used for Token Determination Logic
### Description
It generates a `uint256` random value that relies on variables like `block.timestamp`, `randomizationNonce` and `msg.sender` as a source of randomness is a common vulnerability, as the outcome can be influenced/predicted by... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: In Cross Margin mode, the user’s profit calculation is incorrect.
### Description
In Cross Margin mode, the user’s profit calculation is incorrect.
### Impact
This causes financial loss for either the user or the protocol.
### Recommendation
Distinguish between the handling methods for isolated mode and cro... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: L10] Unnecessary empty constructors defined
### Description
###### Low
Component: [`policy`](https://github.com/BeamNetwork/currency/tree/af3428020545e3f3ae2f3567b94e1fbc5e5bdb4c/contracts/policy)
Both [`Policy`](https://github.com/BeamNetwork/policed-contracts/blob/f9299f43e2bf3629bee2f82bf637918ac9221d62... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: decimal tokens will lead to loss of precision in oracle results
### Description
When the Chainlink Oracle has calculated a relative price between two assets, it results in a `price`, which is always represented in 18 decimals. This price is used to convert the passed `baseAmount` into a final result:
In 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 | other | false | false | ## Medium: Unsafe transfer
### Description
Some of the tokens do not revert on an unsuccessful transfer. We recommend using the OZ safeTrasnfer method instead of a basic transfer method.
https://github.com/FantiumAG/smart-contracts/blob/a2d126453c1105028f12277b8f342d2cdbf01a77/contracts/FantiumNFTV3.sol#L409-L413
http... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | reentrancy | true | false | ## Low: The closeDelistedMarketPositions() function invokes nonReentrant guard twice
### Description
In the BotHandler contract, the `closeDelistedMarketPositions()` function can close many delisted market positions in one transaction. This is in contrast to the `closeDelistedMarketPosition()` function, which can only... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.