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 | high | access-control | false | false | ## High: Lack of access control on `assertGovernanceApproved` can cause funds to be locked
### Description
_Submitted by shw, also found by kirk-baird and pauliax_
Lack of access control on the `assertGovernanceApproved` function of `FlashGovernanceArbiter` allows anyone to lock other users' funds in the contract as ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | true | false | ## Medium: Hacked owner or malicious owner can immediately steal all assets on the platform
### Description
[Exchange.sol#L639](https://github.com/code-423n4/2022-11-non-fungible/blob/323b7cbf607425dd81da96c0777c8b12e800305d/contracts/Exchange.sol#L639):br
[Exchange.sol#L30](https://github.com/code-423n4/2022-11-non-f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | true | false | ## Low: For loop over Dynamic Array
### Description
**Severity**: Low
**Status**: Acknowledged
**Description**
In ParibusOracleDelegate.sol, there is for loop over dynamic array in `_setCollectionWhitelisted()` function on line: 32 as follows:
Similarly, there is for loop over dynamic array on line: 62 in `setCo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Risk of Multi-Chain Settlement Deadlock
### Description
## Multi-Chain Trading Issue
In multi-chain trading, if the `addr_dest` token account is frozen or a transfer fails, the settlement of the fulfilled amount may be blocked. As a result, both the fulfilled amount on the destination chain and the locked amo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `handlePREP()` lacks sufficient length validation
### Description
In the `_handlePREP` function, the code checks if data.length is at least 0x61 (97) bytes. However, this validation is incomplete and fails to properly account for the minimum size of initData.
The data structure should contain:
- `saltAndDele... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Ineffective Initialisation of_kpiTokensManager and _oraclesManager
### Description
There is a circular reference between `KPITokensFactory`, `OraclesManager`, and `KPITokensManager` as follows:
- `KPITokensFactory` needs `KPITokensManager` and `OraclesManager` on constructor.
- `OraclesManager` needs `KPIToke... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | false | false | ## Medium: Potential DoS in rebalance feature
### Description
The [`BullStrategy`](https://github.com/opynfinance/squeeth-monorepo/blob/521203dc26e5a2c3e26c6d4ad02d513e7df63237/packages/bull-vault/src/BullStrategy.sol) relies on a rebalancing mechanism coded into the [`AuctionBull`](https://github.com/opynfinance/sque... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | dos | true | true | ## Medium: Insufficient validation of new Fertilizer IDs allow for a denial-of-service (DoS) attack on `SeasonFacet::gm` when above peg, once the last element in the FIFO is paid
### Description
A Fertilizer NFT can be interpreted as a bond without an expiration date which is to be repaid in Beans and includes interes... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Utilization math should include `liquidityThresholdPercent`
### Description
Utilization math should include `liquidityThresholdPercent`, as this represents the maximum value that can be borrowed. This means that if borrowing reaches `principal * liquidityThresholdPercent`, then 100% of the available assets ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | true | true | ## Low: Risk of leveraged fund drain via hostile agreement contract
### Description
The `registerMarginAccount` function, intended to be callable by any user on the network, accepts an arbitrary address for the agreement contract, as shown in Figure 7.1. This address simply needs to implement the `IAgreement` interfac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Excessively Broad Tick Range Dilutes Liquidity on Uniswap V3
### Description
The `MIN_TICK` and `MAX_TICK` parameters are configured so broadly that the liquidity position spans almost the entire Uniswap V3 price curve. In effect, this causes the position to behave like a Uniswap V2 pool, providing liquidity 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 | true | false | ## Low: Non-Ascending Epoch Claims
### Description
## Issue Description
The issue is with regards to `set_withdraw_time_limit`, which grants administrators the ability to define the time limit for withdrawing staked tokens. To elaborate, should the administrator elevate the `withdraw_time_limit` to surpass the presen... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Denial Of Service
### Description
## Markdown Conversion
In `CreateSsl` and `CreatePair`, utilizing `init` may result in the creation of the associated token accounts (`mint_one_secondary_vault` and `mint_two_secondary_vault` in `CreatePair`, and `pool_vault` and `pool_fee_vault` in `CreateSsl`).
## create_p... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: (HAL-04) Missing Input Validation
### Description
During the security assessment, it was identified that some functions in the smart contracts lack proper input validation, allowing critical parameters to be set to undesired or unrealistic values. This can lead to potential vulnerabilities, unexpected behavior... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bool check wrong in registerGauge
### Description
Report type: Smart Contract
Target: https://github.com/zerolend/governance
Impacts:
- Manipulation of governance voting result deviating from voted outcome and resulting in a direct change from intended effect of original results
## Description
## Brief/In... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: FulfillInterpreter - Executed event can’t be linked to TransactionFulfilled event ✓ Fixed
### Description
When a transaction with a `callTo` that is not `address(0)` is fulfilled, the funds to be withdrawn on the user’s behalf are first transferred to the `FulfillInterpreter` instance that is associated with 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 | oracle | false | false | ## High: Missing Gap Between Borrow LTV and Liquidation Threshold
### Description
The protocol does not implement a gap between the LTV ratio at which borrowers are allowed to borrow and the liquidation threshold at which liquidation can be executed. This means that it is possible to borrow at the very edge of liquida... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fees are ignored when checks skew max in Stable Withdrawal / Leverage Open / Leverage Adjust
### Description
Fees are ignored when checks skew max in Stable Withdrawal / Leverage Open / Leverage Adjust.
### Impact
Protocol may wrongly prevent a Stable Withdrawal / Leverage Open / Leverage Adjust even if t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | true | false | ## Medium: Merkle Tree criteria can be resolved by wrong tokenIDs
### Description
_Submitted by cmichel, also found by frangio and Spearbit_
[CriteriaResolution.sol#L157](https://github.com/code-423n4/2022-05-opensea-seaport/blob/4140473b1f85d0df602548ad260b1739ddd734a5/contracts/lib/CriteriaResolution.sol#L157)
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 | flash-loan | false | false | ## Low: Available Liquidity Incorrectly Calculated in flashLoan()
### Description
The function `flashLoan()` allows users to first acquire the funds and execute some logic, then either repay the amount of the flash loan plus a premium or convert it to a loan of either stable or variable interest. When converting the f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | overflow | true | false | ## Medium: Silent overflow in `TrimmedAmount::shift` could result in rate limiter being bypassed
### Description
**Description:** Within [`TrimmedAmount::trim`](https://github.com/wormhole-foundation/example-native-token-transfers/blob/f4e2277b358349dbfb8a654d19a925628d48a8af/evm/src/libraries/TrimmedAmount.sol#L136-L... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | true | false | ## Medium: The default admin role controls all other roles within `StakingContract`
### Description
**Description:** Within `StakingContract`, there is intended separation between the Zeeve and BENQI admin/super-admin roles as implemented in the [`grantAdminRole()`](https://code.zeeve.net/zeeve-endeavors/benqi_smartco... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `GoodDollarExchangeProvider::mintFromExpansion()` will change the price due to a rounding error in the new ratio
### Description
[GoodDollarExchangeProvider::mintFromExpansion()](https://github.com/sherlock-audit/2024-10-mento-update/blob/main/mento-core/contracts/goodDollar/GoodDollarExchangeProvider.sol#L... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Code is not following the Checks-Effects-Interactions pattern
### Description
The `createLoan` method in `LoanManager` mints ERC1155 tokens, but they do an unsafe call (the `onERC1155Received` call) to the token receiver. This call can reenter the `LoanManager` contract while it is in pending state change (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 | true | false | ## Low: `_isCycleEnded()` Should Also Return True if The Pair is Successfully Deployed or Failed
### Description
In `BeraScoutPair.sol`, the cycle is set as ended if the current time is past the block timestamp and `PairState == Status.Processing`.
File: [contracts/hpot/core/berascout/BeraScoutPair.sol#L185](https://... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | false | false | ## Low: Optimization of Less Than Checks in Circuit
### Description
**Severity:** Informational
**Path:** circom/components.circom, circom/mint.circom, circom/transfer.circom, circom/withdraw.circom
**Description:** Less Than comparison circuits ensure values are below the BabyJubJub subgroup order and validate that... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: Delegated amounts can be forcefully removed from anyone in the `TwabController`
### Description
The `sponsor` function in the `Vault.sol` contract allows anyone to remove another user's delegation by forcing them to delegate to the sponsor address. `_sponsor` will deposit some amount from the caller for the t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Governance.setInterestRateModel is missing sanity checks
### Description
## Severity: Medium Risk
**Context:** Governance.sol#L242-L254
**Description:**
The `Governance.setInterestRateModel` is not actively checking the user's `newModel` input that represents the new IRM rate model. When a new IRM is 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 | rounding | false | false | ## Low: Incorrect rounding direction in withdrawal share calculation
### Description
The `withdraw()` function uses ceiling rounding when calculating the share ratio through `OperationsLib.getRatio()`. This calculation determines what portion of the user's `aToken` balance should be withdrawn based on the requested sh... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | false | false | ## Low: UPGRADE AT LEAST PRAGMA 0.8.4
### Description
Gas optimizations and additional safety checks are available for free when using newer compiler versions and the optimizer.
* Safemath by default from 0.8.0 (can be more gas efficient than
library based safemath.)
* Low level inliner : from 0.8.2, leads to cheap... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | liquidation | true | false | ## Severity
**Impact:** Medium
**Likelihood:** Medium
## Description
The GammaVault contract calculates external collateral for GammaPool positions using the current spot price from Uniswap V3, rather than a more manipulation-resistant price source. This creates a potential vulnerability where an attacker could man... | Pashov Audit Group | 5 | GammaSwap_2024-12-30 |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | false | false | ## Low: Events are probably missing
### Description
##### Description:
At the line https://github.com/orbxball/curve-voter-proxy/blob/78c92e4ffc0f76651914565744a3607d0248d254/contracts/Strategy.sol#L157 in method `setKeepCRV()` should probably emit an event `newKeepCRV`.
At the line https://github.com/orbxball/curve-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 | other | true | false | ## Low: Redemption limit bypass
### Description
_Acknowledged_
The `redeem` function in `UsrRedemptionExtension` implements a daily redemption limit that resets every 24 hours. However, the current implementation is vulnerable to a limit bypass attack due to how the reset window is handled.
Consider the scenario:
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improve Fee Precision
### Description
## Fee Calculations Overview
Fee calculations are tracked via the `need_take_pnl_pc` and `need_take_pnl_coin` fields. These fields are accrued via `calc_take_pnl`, which is invoked during deposits and withdrawals. This function looks at the accrual of the constant product... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 threshold check in `depositIntoAaveV3()` may cause scale-down
### Description
The `depositIntoAaveV3()` function allows addresses with the `CONFIGURATOR_ROLE` to deposit arbitrary amounts of `wstETH` into the Aave V3 pool. However, it does not check whether the resulting position will exceed the `_maxP... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Reversions in Polygon will not be seen in Ethereum
### Description
The protocol implements the functionality to send sensitive governor actions from Ethereum to the Polygon network by using its bridge.
However, due to the unidirectional path of such instructions, the mainnet [governor](https://etherscan.io/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 | gas | other | false | false | ## Gas: Internal/Private functions only called once can be inlined to save gas `Gas saved: 20 * 20 = 400`
### Description
Not inlining costs 20 to 40 gas because of two extra JUMP instructions and additional stack operations needed for function calls.
Affected code:
`Total Instances: 20`
*Note: see warden's [origina... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: If pfBidder gets blacklisted the settlement process would be broken and every other bidders and the seller would lose their funds
### Description
During batch auction settlement, the bidder whos bid was partially filled gets the refund amount in quote tokens and his payout in base immediately. In case if qu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Ownership Can Be Renounced
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> We consider the possibility of the owner renouncing ownership the same class of mistake as transferring ownership to an incorrect ownership address, which we can't 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 | other | true | true | ## Low: Division by zero in calculateInterestRates due to reserveFactor being 100%
### Description
Aggregate (Cod3x and MinipoolOwner) reserveFactor can be 100%, and in that case a divide by zero could cause an interest rate update in `MiniPoolPiReserveInterestRateStrategy.calculateInterestRates`.
### 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... | skyward_49k | low | other | false | false | ## Low: A redundant `market` parameter in `exitMarketFromiToken`
### Description
The `exitMarketFromiToken` function is designed to let the `iToken` request an exit from the market for a specified account using the given `iToken`. However, by providing a market parameter different from `address(this)`, the iToken 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 | high | other | true | false | ## High: lib-net can be used to force oom reap of shardu...
### Description
## lib-net: can be used to force oom reap of shardus instances
Report type: Blockchain/DLT
Target: https://github.com/shardeum/shardeum/tree/dev
Impacts:
* Network not being able to confirm new transactions (total network shutdown)
* RPC... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of supply limit
### Description
To profit from liquidations, liquidators must be able to sell collateral at a favorable price. However, selling a large amount of collateral may significantly impact the selling price, rendering liquidation unprofitable and generating bad debt.
A supply limit, configure... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [02] Events may be emitted out of order due to reentrancy
### Description
Ensure that events follow the best practice of check-effects-interaction, and are emitted before external calls.
BridgeRouterFacet.sol ([72-72](https://github.com/code-423n4/2024-03-dittoeth/blob/91faf46078bb6fe8ce9f55bcb717e5d2d302d22e... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | initialization | true | false | ## Gas: Add proper headers and comment alignment
### Description
Project code style uses a short, and somehwat asymetrical, form of comment header separation. To improve readability, change headers to a more visible version.
Example [this header](https://github.com/Cyfrin/2023-07-escrow/blob/main/src/IEscrow.sol#L45... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `totalBorrowedCredit` can revert, breaking gauges.
### Description
The function `totalBorrowedCredit` is used to get an estimate of the amount of credit borrowed out by the system. The issue is that changes in `creditMultiplier` affect this value and can even lead to a revert due to underflow.
The function... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | integer-overflow | true | true | ## Low: Underlying liquidity position is not transferred when fully unwrapping through the partial unwrap overload
### Description
While the `ERC721WrapperBase` partial unwrap overload is intended for use following partial liquidations, it is possible for the sole holder of an ERC-6909 token to use this function to pe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack events in implementation of privileged functions
### Description
**Severity**: Informational
**Status**: Acknowledged
**Description**
Some functions that carry out important changes to contracts state emit no events on changing significant parameters of the contracts by admin or other. This is taking p... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Floating pragma
### Description
Contracts should be deployed with the same compiler version and flags that they have been tested with thoroughly. Locking the pragma helps to ensure that contracts do not accidentally get deployed using, for example, an outdated compiler version that might introduce bugs that af... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | flash-loan | false | false | ## Low: Unhelpful and unreliable checks
### Description
There is no point in adding the balance and allowance checks on-chain. Even if the checks pass when creating the `LPOrder`, there is no guarantee that the balance and allowance will be sufficient when filling the order.
Additionally, it might be beneficial 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 | medium | reentrancy | false | false | ## Medium: Contributions can be smaller than `minContribution` and may receive no voting power
### Description
Valid contribution is awarded no voting power.
### Proof of Concept
[ETHCrowdfundBase.sol#L195-L219](https://github.com/code-423n4/2023-04-party/blob/440aafacb0f15d037594cebc85fd471729bcb6d9/contracts/crowd... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | false | false | ## Medium: Centralization risks
### Description
The project administrator and manager have unrestricted rights, including:
- Contract code updates,
- Project configuration changes,
- Addition of an arbitrary number of RSETH minters (though minting capability is only used in LRTDepositPool),
- Oracle appointments.
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 | initialization | false | false | ## Low: Possible failure to redeem
### Description
**Description:** In `Goldivault`, `redeemOwnership()` wouldn't work as expected after calling `changeProtocolParameters/initializeProtocol()` because `endTime/duration` is changed.
**Client:** Acknowledged, we plan to only call changeProtocolParameters after vault 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: Any change in bucket size will DOS order cancellation leading to frozen user funds and halts the entire auction
### Description
The DEX protocol's order cancellation mechanism fails when bucket sizes for liquidity depth tracking are updated after an order is created. When administrators modify bucket sizes ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | initialization | true | false | ## Gas: In Solidity don't initialize to default values
### Description
**Description:** In Solidity don't initialize to default values:
**WLFI:**
Fixed.
**Cyfrin:** Verified.
\clearpage | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Cooldown in `DsoRules_CastVote` May Allow SV's to Avoid Removal
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `af17abbeeecac1a445da873f58322e40370253ae`.
**File(s) affected:**`DsoRules.daml`
**Description:**`DsoRules_CastVote` allows any SV party to submit their votes 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 | high | liquidation | true | false | ## High: ShortLongSpell#_withdraw checks slippage limit but never applies it making it useless
### Description
Slippage limits protect the protocol in the event that a malicious user wants to extract value via swaps, this is an important protection in the event that a user finds a way to trick collateral requirements.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 in-memory value won’t be updated
### Description
**Severity**: Low
**Status**: Resolved
**Description**
The function updateSlCallback in the TradingCallback contract is intended to update a stop loss for a trading order. The issue here is that t is a memory variable, which means it only exists within th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: Possible incorrect borrowing timestamps
### Description
The smart contract function `borrow` allows users to borrow loans from a pool. However, the function's dependency on the `block.timestamp` for recording the borrowing timestamp introduces a vulnerability. Malicious miners could potentially manipulate 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: [12] Wrong visibility
### Description
The method `accrueDueTokens` doesn't check that the call is made by a market, and it's public, it should be changed to internal or private to be more resilient.
### Affected Source Code
* [DBR.sol:284](https://github.com/code-423n4/2022-10-inverse/blob/3e81f0f5908ea99b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lock fails for unlimited approvals
### Description
The `lock()` function intends to lock the user's entire approved balance, but this will fail for the most common case: Most users give the contract's they interact with an unlimited allowance by setting it to `type(uint256).max`. The `lock()` function attem... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Invalid State Transition
### Description
## Vault Status and Settlement Status Checks in `checkTradeExpiry`
The checks for vault status and settlement status in `checkTradeExpiry` are too lenient, allowing for unauthorized state transitions. An exploitable scenario involves invoking `checkDCSTradeExpiry` o... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: SphereXEngine Rule Configuration Methods Poorly Named
### Description
In the implementation of the SphereXEngine contract, the [`activateRules`](https://github.com/spherex-collab/spherex-protect/blob/5b134b2b176deb94e75417ed9b9d3670444a4167/src/SphereXEngine.sol#L48) method allows the owner to deactivate the 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 | oracle | false | false | ## Low: One signer threshold used for all datafeeds
### Description
The `getUniqueSigners` threshold represents both the minimum and maximum number of unique signers needed for all data feeds serviced by the adapter. This can lead to an inappropriately low number of data points used for certain data feeds.
The origin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | false | false | ## Low: Unnecessary precision loss when calculating the distribution rate
### Description
When calculating the new distribution, the two admin inputs `ratet` and `p90rate` are only scaled in basis points (1e4). Such small scaling is prone to precision loss and would often result in noticeable differences, although 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 | high | initialization | true | true | ## High: AfEth deposits could use price data from an invalid Chainlink response
### Description
The current price implementation for the VotiumStrategy token uses a potentially invalid Chainlink response. This price is then used to calculate the price of AfEth and, subsequently, the amount of tokens to mint while depo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use a more recent version of solidity
### Description
Use a solidity version of at least 0.8.13 to get the ability to use `using for` with a list of free functions
*There are 16 instances of this issue:*
[See original submission](https://github.com/code-423n4/2022-05-backd-findings/issues/109) for details. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Virtual shares steal interest
### Description
When redeeming (or withdrawing) vault shares, the conversion uses the total shares including the virtual shares to compute the principal and interest earned:
```solidity
// in `redeem`
shares * (totalAssets + 1e6) / (totalShares + 1e6)
```
```solidity
Assets asse... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Using storage instead of memory for structs/arrays saves gas
### Description
Using a memory pointer for a storage struct/array will effectively load all the fields of that data type from storage (SLOAD) into memory (MSTORE). Using a storage pointer will allow you to read specific fields from storage as you nee... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Loss of funds during user adjusting
### Description
Adjusting a user's total claimable value not working correctly
### Impact
Loss of funds for the user and the protocol
### Recommendation
I am not sure if it is enough to just set it the following way:
```solidity
if (records[beneficiary].total != total... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Anyone can call the burn function in SmartVaultV3.sol
### Description
The `burn` function in SmartVaultV3.sol has only `ifMinted` modifier , and it's external which means anyone can call it as the SmartVaults share a Euros contract.
### Impact
High as it can lead to loss of funds. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | false | ## High: `GMXVault` can be blocked by a malicious actor
### Description
`GMXVault` can be blocked by malicious actor if he made a `depositNative` call with unpayable contract and the deposit then cancelled by the GMX exchange router (3rd party).
### Impact
The vault will be blocked as it will be stuck in the `Deposit... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Anyone is able to mint NFTs by calling mintNFTsForLM ✓ Fixed
### Description
The contract `LiquidityMiningNFT` has the method `mintNFTsForLM`.
**code/contracts/LiquidityMiningNFT.sol:L12-L29**
```
function mintNFTsForLM(address \_liquidiyMiningAddr) external {
uint256[] memory \_ids = new uint256[](NFT\... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Dust withdrawals block admin collateral by reducing `liquidityBufferSize`
### Description
_Resolved_
The `YuzuProto.withdrawCollateral()` allows admins to withdraw excess collateral from the protocol by specifying the amount of assets they want to withdraw, and this function relies on `liquidityBufferSize()` ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | false | ## High: The total community voting power is updated incorrectly when a user delegates.
### Description
When a user delegates their voting power from staked tokens, the total community voting power should be updated. But the update logic is not correct, the the total community voting power could be wrong values.
### ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Performance optimization when processing unstake notary sessions
### Description
Minor performance optimization when processing unstake notary sessions as unstake sessions are mutually exclusive (unstake vs unstake receipt).
### Recommendation
Simply put the unstake receipt processing into an else:
```go
if ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | true | false | ## Medium: AaveOracle contract does not verify price staleness
### Description
Report type: Smart Contract
Target: https://explorer.zksync.io/address/0x785765De3E9ac3D8eEb42B4724A7FEA8990142B8
Impacts:
- Direct theft of any user funds, whether at-rest or in-motion, other than unclaimed yield
## Description
## Brie... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `matchOrders` affected if withdrawals exceed the global limit
### Description
Within the `AccountCollateral::updateBalance` function, a validation was added to check that withdrawals do not exceed a global percentage for each X period of time (code line 120):
```solidity
File: AccountCollateral.sol
107: f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: `storageOperator` Can Deduct Arbitrary Costs Despite `storageRate` and `transactionFee`
### Description
**Update**
Addressed in: `0d17ed08569a14ff5dfd1df8066968a165b29578`. The client provided the following explanation:
> _We updated the implementation by removing currentIndex as suggested. A complete on-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 | rounding | true | false | ## Medium: Protocol fee rounding can be weaponized for minimal earnings
### Description
In `_previewFeeShares` and `_takeFee`, we can see that after calculating the fee assets that the protocol is entitled to, a conversion of the assets is made to fees, via the `_convertToShares` functions. Observe the specified, albe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Orders with single-sided deposits that are auto-adjusted, always revert
### Description
Deposits of only the long collateral token, when doing so results in an auto-adjustment of the order to minimize price impact, results in the order always reverting.
### Impact
Single sided deposits as a feature are 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... | cyfrin_structured | low | initialization | true | false | ## Low: Variables need not be initialized to zero | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | false | false | ## Low: Missing Input Validation
### Description
**Update**
The missing input validation was added.
**File(s) affected:**`Amm.sol`, `ClearingHouse.sol`
**Description:** It is important to validate inputs, even if they only come from trusted addresses, to avoid human error.
The following functions should validate th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Using `private` rather than `public` for constants, saves gas
### Description
If needed, the value can be read from the verified contract source code
1. File: splits/contracts/Splitter.sol (line [14](https://github.com/code-423n4/2022-03-joyn/blob/c9297ccd925ebb2c44dbc6eaa3effd8db5d2368a/splits/contracts/Spl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Royalty recipients will not get fair share of royalties
### Description
Recipients of NFTs who accept royalties will not get their fair share of royalties. This is because royalties are calculated by dividing the sales price equally amongst all sold NFTs in that purchase. The issue with this is that it assu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing docstrings
### Description
There are some instances throughout the codebase where the [Ethereum Natural Specification](https://docs.soliditylang.org/en/develop/natspec-format.html) is missing or incomplete. Examples include:
* the [`BridgeDepositBox`](https://github.com/UMAprotocol/protocol/blob/f24a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: beaconChainETHStrategy Queued Withdrawals Excluded From Slashable Shares
### Description
DelegationManager excludes `beaconChainETHStrategy` shares in queued withdrawals when calculating burnable shares. This results in undercounting of burnable shares during operator slashing events.
The `_addQueuedSlash... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A Single Malicious Trusted Account Can Takeover Parent Contract
### Description
_Submitted by leastwood, also found by hickuphh3_
The `requiresTrust()` modifier is used on the strategy, vault and factory contracts to prevent unauthorised accounts from calling restricted functions. Once an account is consid... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: USING POSTFIX OPERATORS IN LOOPS
### Description
In the loops below, postfix (e.g. `i++`) operators were used to increment or decrement variable values. It is known that, in loops, using prefix operators (e.g. `++i`) costs less gas per iteration than using postfix operators.
Code Location
-------------
`aura... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | cross-chain | false | false | ## High: Bridge can appear to be out of funds of tokens managed by the liquidity manager
### Description
**Severity**: High
**Status**: Acknowledged
**Description**
ChainportMainBridge.sol, deposit / release flow
In current iteration, the main bridge adopted the Liquidity+anger as an additional entity for
holding ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Node Operator Can Refuse to Distribute Minipool Funds
### Description
With recent changes to the Rocket Pool withdrawal process, a minipool’s associated node operator is the only entity allowed to successfully execute `payout()`. This function is responsible for distributing the validator’s funds to the node o... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: Analysis: Suggested Next Steps
### Description
**Executive Summary**
No major smart contract risk was identified by my review
Extensive integration risks can be introduced via zappers
And governance has the ability to cause many issues due to misconfiguration, lack of borrow limits and race conditions aroun... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: REDUNDANT CHECK FOR UNDERLYING AMOUNT GREATER THAN ZERO
### Description
In the `borrow_internal` function, there is a redundant check for `underlying_amount > BigUint::zero()`. This check is unnecessary as the `borrow` function, which calls `borrow_internal`, has already ensured that the `underlying_amount` is... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Users emergency withdrawing will lose all past accrued rewards
### Description
in the `GaugeV2` contract, if the contract was emergency activated, users calling `emergencyWithdraw()` will lose all past accrued rewards that didn’t have `updateReward()` called on it previously
for a user to earn rewards, he ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Privileged role and actions lead to centralization risks for users
### Description
Several restricted/access-controlled functions across bridging logic affect critical protocol state and semantics, leading to centralization risk for users. Some examples are highlighted below:
- `setTargetFunctionRole()` ca... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | false | ## Medium: No `minAnswer/maxAnswer` Circuit Breaker Checks while Querying Prices in Oracle.sol
### Description
The Oracle.sol contract, while currently applying a safety check (this can be side stepped, check my other submission ) to ensure returned prices are greater than zero, which is commendable, as it effectively... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Medium: Unenforced maxFee and ttl Parameters in sendMsg Function
### Description
In the [EverclearBridge](https://github.com/sherlock-audit/2025-07-malda/blob/main/malda-lending/src/rebalancer/bridges/EverclearBridge.sol#L79) which is used by rebalancer to send cross-chain intents using `Everclear` does not enforce... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `setRewards` allows to set rewards for epochs in the past
### Description
`LendingLedger.setRewards` accepts `_fromEpoch` and `_toEpoch` params. The only check that function does is if epoch [are set as weeks](https://github.com/code-423n4/2024-01-canto/blob/main/src/LendingLedger.sol#L128). But there is no ch... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: VULNERABLE DEPENDENCIES
### Description
`Aptos Wallet` uses multiple third-party dependencies. However, some of them were affected by public-known vulnerabilities that may pose a risk to the global application security level.
Although performed tests were mainly carried out from a black-box perspective, mu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Missing zero address checks in `STBL_Register::setupAsset`
### Description
**Description:** Several asset addresses are initialized without zero address checks in `STBL_Register::setupAsset` :
- `_contractAddr`
- `_issuanceAddr`
- `_distAddr`
- `_vaultAddr`
- `_oracle`
Notably, the same variables when set vi... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.