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 | other | true | false | ## High: Calling findCheckpointHints() with _firstIndex as 0will always revert
### Description
LidoYieldProvider.claim() calls `findCheckpointHints()` with `_firstIndex` as `0`:
```solidity
uint256[] memory hintIds = WITHDRAWAL_QUEUE.findCheckpointHints(
requestIds,
0,
WITHDRAWAL_QUEUE.getLastCheckpointIndex()
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `ConvexMasterChef`: When `_lpToken` is cvx, reward calculation is incorrect
### Description
_Submitted by cccz_
In the ConvexMasterChef contract, a new staking pool can be added using the add() function. The staking token for the new pool is defined using the \_lpToken variable. However, there is no additi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Rounding down in OUSD calculations
### Description
When transferring tokens, the `OUSD` contract [translates](https://github.com/OriginProtocol/origin-dollar/blob/bf4ff28d5944ecc277e66294fd2c702fee5cd58b/contracts/contracts/token/OUSD.sol#L142-L143) the token amount to the equivalent number of credits. However... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | false | false | ## Medium: `mintUsername()` cannot be called by the minter role only
### Description
The `GigaNameNFT.mintUsername()` function is meant to be called by the `MINTER_ROLE` (as checked by the `confirmMint()`) to mint a `GigaNameNFT` for a player, however, the call will fail if the caller doesn't hold `GAME_LOGIC_CONTRACT... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary Use of SafeMath Library ✓ Fixed
### Description
Since [Solidity v0.8.0](https://blog.soliditylang.org/2020/12/16/solidity-v0.8.0-release-announcement/), all arithmetic operations are checked by default and revert on over- or underflow. Hence, it is not necessary anymore to use the `SafeMath` librar... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No slippage protection in mintlvlUSD in case of matching decimals
### Description
In the `mintlvlUSD` method, if `collateralDecimals == lvlUsdDecimals`, the minimum `lvlUSDAmount` (slippage protection) will remain 0, leading to potential losses for the receiver/collateral provider.
The `mintlvlUSD` method ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | logic | true | false | ## High: `setWeight()` Logic error
### Description
### Lines of code
https://github.com/code-423n4/2023-05-maia/blob/54a45beb1428d85999da3f721f923cbf36ee3d35/src/ulysses-amm/UlyssesPool.sol#L223
### Proof of Concept
`setWeight()` is used to set the new weight. The code is as follows:
There are several problems wi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: It Is Not Possible to Remove Items From the `distributionTargets` Array
### Description
**Update**
The `removeDistributionConfig()` function has been added that allows the removal of configs from the array. Fixed in commit c7ef4b0939446c84312b1e44b8e6034ac584ba8a.
**File(s) affected:**`contracts/ProtocolReser... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TokenDrop: Re-entrancy in the claim function can cause to draining funds
### Description
If the `asset` token is making a call before the transfer to the `receiver` or to any other 3-d party contract (like it’s happening in the `Pod` token using the `_beforeTokenTransfer` function), the attacker can call 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: `setUpdateWeightRunnerAddress` could break the protocol
### Description
The current implementation of `UpdateWeightRunner` introduces a critical vulnerability in the protocol. If the `quantammAdmin` modifies the `UpdateWeightRunner`, it could lead to unexpected behavior where the protocol breaks. Specifical... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: When Convex pool is shut down while collateral type is `CurveLPStakedOnConvex`, users unable to deposit that asset and protocol lose the ability to accept the asset as collateral further
### Description
When Convex pool of an asset that has `CurveLPStakedOnConvex` collateral type is shut down, users can no ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | rounding | false | false | ## Medium: FundraiserFacet logic does not consider contract upgrades which can increase token decimals
### Description
**Description:** The fundraiser logic in `FundraiserFacet` assumes that the decimals of the token being raised will remain with the same number of decimals from when a fundraiser is created to when it... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 epoch configuration may overlap by 1 second
### Description
When adding a new epoch configuration, it is checked that the new epoch does not overlap with the previous one. However, the current implementation allows for a one-second overlap, meaning that the last second of one epoch coincides with the first... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Shares distributed to operators suffer from rounding error
### Description
## Severity: Medium Risk
## Context:
River.1.sol#L238
## Description:
*rewardOperators* distribute a portion of the overall shares distributed to operators based on the number of active and funded validators that each operator 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 | high | liquidation | true | false | ## High: est bidder can withdraw his collateral due to a missing check in _cancelAllBids
### Description
A bidder with the highest bid cannot cancel his bid since this would break the auction. A check to ensure this was implemented in `_cancelBid`.
However, this check was not implemented in `_cancelAllBids`, allowing... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: External calls in an unbounded loop can result in a DoS
### Description
Consider limiting the number of iterations in loops that make external calls, as just a single one of them failing will result in a revert.
*There are 22 instances of this issue.*
--- | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | Wrong Math | false | true |
[PA1D.sol#L665-L675](https://github.com/code-423n4/2022-10-holograph/blob/f8c2eae866280a1acfdc8a8352401ed031be1373/contracts/enforcer/PA1D.sol#L665-L675)<br>
`bidShares` returned are incorrect leading to incorrect royalties.
### Proof of Concept
[Zora Market](https://etherscan.io/address/0xe5bfab544eca83849c53464f8... | Code4rena | 4 | Holograph |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | dos | false | false | ## High: When private keeper mode is off users can queue orders with the wrong asset
### Description
After an order is initiated, it must be filled by calling resolveQueuedTrades. This function validates that the asset price has been signed but never validates that the asset being passed in matches the asset of the 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 | other | true | false | ## Low: `SettlementBranch::_fillOrder` can revert for positions with negative PNL in markets with negative maker/taker fees
### Description
**Description:** `SettlementBranch::_fillOrder` calculates the position's PNL as `pnl = (unrealizedPnl + accruedFunding) + (unary(orderFee + settlementFee))`:
If the PNL is nega... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Ensuring Proper Pointer Cleanup
### Description
## Linked List Pointer Management
It is recommended to clear Trove pointers during insertion and closing functions as a precautionary measure to ensure that the linked list remains consistent and to prevent potential issues that may arise from stale or incorrect... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Use Of Spread Syntax
### Description
## Spread Syntax Vulnerability
Spread syntax when creating an object (`{a: 1, ...obj}`) can overwrite previously defined attributes,
`(a in this case)`. Thus, if an attacker can manipulate the spread object, they can overwrite potential critical attributes, 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 | low | storage | false | false | ## Low: Lack Of Storage Gap In Upgradeable Contract
### Description
The `MergeMarketplaceStrategy`, `Marketplace` and `RewardReceiver` contracts are supposed to be designed to be upgradeable contracts. They inherit from `OnwnableWithPausable`, but it lacks storage gaps. Storage gaps are essential for ensuring that new... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: No reporting on failed claimRewards attempt
### Description
While a user is in debtors list, any attempt to claim rewards will be [silently ignored](https://github.com/CreamFi/liquidity-mining/blob/e7caa316e8a206b60996c199f26047b388b4ea31/contracts/LiquidityMining.sol#L469).
### Recommendation
It is recommend... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: LinearDistributor.declareReward: previouslyVested may update incorrectly, which will cause some rewards to be lost
### Description
In LinearDistributor.declareReward, distributed represents the reward to distribute and is calculated using netVest(currentlyVested - previouslyVested).
At the same time, distr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | rounding | true | false | ## Severity: Medium Risk
## Context
Roller.sol#L23-L78
## Description
The function `transform()` lowers `snapAccumulator` with the following equation:
```
snapAccumulator * int256(dt) / int256(snapWindow)
```
During the time that `snapAccumulator * dt` is smaller than `snapWindow`, this will be rounded down to 0, ... | Spearbit | 5 | Overlay |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Maturity
### Description
## Summary of Security Concerns
1. **send_library_config** contains configuration data essential for the message library. Currently, it is not explicitly asserted that this account is rent-exempt. Thus, if CPI invokes a malicious `send_library_program`, it may call `close_account... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Medium: Cross-Chain Replay Attack Vulnerability in Beanstalk's L2ContractMigrationFacet
### Description
Beanstalk is migrating from an L1 network to an L2 network, such as Arbitrum. During this process, the redeemDepositsAndInternalBalances function in the L2ContractMigrationFacet contract is vulnerable to cross-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 | overflow | true | false | ## Medium: Underflow Bug in `addFundsAndFulfillRedeem()` Prevents Redemption of Intial Deposits
### Description
The `addFundsAndFulfillRedeem()` function in `VaultFundManager.sol` contains a critical underflow vulnerability that prevents users from redeeming their first deposits/ initialDeposit.
```solidity
uint256 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 | gas | other | true | false | ## Gas: Avoid emitting storage values
### Description
In the instance below, we can emit the calldata value instead of emitting a storage value. This will result in using a cheap `CALLDATALOAD` instead of an expensive `SLOAD`.
https://github.com/code-423n4/2023-04-ens/blob/main/contracts/dnsregistrar/DNSRegistrar.sol... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | true | false | ## Medium: Positions with very low portfolio ratio cannot be liquidated
### Description
**Severity**
**Impact:** High
**Likelihood:** Low
**Description**
In `MarginTrading.sol`, the `_calculatePortfolioRatio` function calculates the ratio between the margin account value and the debt with accrued interest. In case... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Misleading Error Messages and Comments in msgClaimRewards and performMsgClaimRewards Functions
### Description
The code snippet provided contains several instances of misleading error messages and comments that do not accurately reflect the functionality of the code. This can lead to confusion and difficult... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `PriceStorage::setPrice` maximum lower and upper bounds can be easily bypassed by repeatedly calling the function in the same block
### Description
**Description:** `PriceStorage::setPrice` limits the price movement to a maximum lower/upper range delta based on the current price, to prevent sudden extreme chan... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | true | false | ## High: Front-Running Risk In Pre-Swap Check
### Description
## Vulnerability in Pre-Swap Implementation
The current implementation of the `pre_swap` instruction in the provided code is vulnerable to front-running attacks due to the method it validates the output balance. When a legitimate user initiates a `pre_swap... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Migrate Rewards Without Distribution
### Description
## Handle
defsec
## Vulnerability details
## Impact
With the migrateRewards function, owner can transfer all reward token into other address. Owner should distribute reward balance before migrating rewards.
## Proof of Concept
1. Navigate to "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 | token | true | false | ## Low: WFTM - Use of incorrect interface declarations
### Description
The `WFTMUnwrapper` and various providers utilize the `IWETH` interface declaration for handling funds denoted in `WFTM`.
However, the [WETH](https://etherscan.io/address/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2#code) and [WFTM](https://ftmscan.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 | low | token | false | false | ## Low: Missing Docstrings
### Description
Key parts of the [`fusion_swap`](https://github.com/1inch/solana-fusion-protocol/blob/8743d383dab69dfa033c9e6c7d7c2d9f0a49e431/programs/fusion-swap/src/lib.rs) program lack essential docstrings, reducing clarity and increasing the risk of misuse:
* **Program Module (`#[progr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insufficient access control in the batchActionsOnSwappers() function
### Description
The docs clearly state under the permissions subheading the following:
InfinityPoolsPeriphery ensures that only authorized users can manipulate a position associated with a specific `tokenId`. Either the caller must be the NF... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Add "Zero if owner will process themself" comment to gasLimit instead of fee
### Description
In the current code, the preferredExecutor for executing bridged transactions is determined by whether the gasLimit is 0 or not and not the fee. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incompatibility With Transfer-on-fee Or Deflationary Tokens
### Description
It was identified that the several contracts assume that the `safeTransferFrom()` and `safeTransfer()` calls transfer the full amount of tokens. This may not be true if the tokens being transferred are fee-on-transfer tokens, causing 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: wXTZ deviates from the tzip-7 specification
### Description
The tzip-7 specification says that unless the transaction sender is the from account, the transfer function must check if sufficient approval has been granted, and decrease that approval accordingly. However, when the from account is the token con... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: The new interest module may calculate past interest
### Description
**Severity**
**Impact:** High
**Likelihood:** Low
**Description**
`updateInterestRateModule` can be called by Ion Protocol to change `interestRateModule` that will be used when calculating interest for lenders and borrowers.
However, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | Validation | false | false | ## Critical Risk Report
## Severity
**Severity:** Critical Risk
## Context
**Context:** Operators.sol#L149-L154
## Description
Because `_hasFundableKeys` uses `operator.stopped` in the check, an operator without fundable keys can be validated and return true.
### Scenario
Op1 has:
- **keys** = 10
- **limit** = 10
-... | Spearbit | 5 | Liquid Collective |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TransmuterBuffer.sol calls depositUnderlying with no slippage bounds
### Description
_Submitted by 0x52_
Loss of funds in TransmuterBuffer
### Proof of Concept
If the buffer is called during and unfavorable time then a large portion of deposited funds may be lost due to slippage because deposit is called... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Assert statement in Dynamo4626#\_claimable_fees_available can cause vault softlock in the event of partial fund loss
### Description
**Details**
[Dynamo4626.vy#L438](https://github.com/DynamoFinance/vault/blob/c331ffefadec7406829fc9f2e7f4ee7631bef6b3/contracts/Dynamo4626.vy#L438)
assert self.total_strat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Pragma version^0.8.17 version too recent to be trusted.
### Description
https://github.com/ethereum/solidity/blob/develop/Changelog.md
0.8.17 (2022-09-08)
0.8.16 (2022-08-08)
0.8.15 (2022-06-15)
0.8.10 (2021-11-09)
Unexpected bugs can be reported in recent versions;
Risks related to recent releases
Risks 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 | token | true | false | ## Low: Variable names that consist of all capital letters should be reserved for `const`/`immutable` variables
### Description
If the variable needs to be different based on which class it comes from, a `view`/`pure` _function_ should be used instead (e.g. like [this](https://github.com/OpenZeppelin/openzeppelin-cont... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | signature | true | false | ## High: bypassSignatoryApproval skips important checks
### Description
In the initial AtlasVerification call, the `_verifyDApp()` function does various checks on the `dAppOp` argument. For example, see the following code snippet (with some comments removed for simplicity):
```solidity
function _verifyDApp(
DAppCon... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unpausing old migrated contract may cause double execution
### Description
Assuming on contract upgrade, the older contract would be paused to ensure existing intent can't be reused anymore and users can generate newer intent for the new contract address. However, if the admin mistakenly unpauses this old cont... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary check in both the \_mint and \_burn function
### Description
The function `_mint` and burn in StRSR.sol is called only by someone calling the stake and unstake functions.
A check is made in the functions to ensure the account to mint and burn the amounts isn't address(0).
However this isn't possibl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Permissioned rebalancing functions leading to loss of assets
### Description
Permissioned rebalancing functions that could only be accessed by admin could lead to a loss of assets.
### Impact
Loss of assets for the victim.
### Recommendation
To prevent the above scenario, the minimum `targetBufferPercenta... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `vaultCount` can be wrongly tracked leading to an incorrect vault price calculation.
### Description
**Severity**: High
**Status**: Acknowledged
**Description**
The functions `getPricePerVault()` and `getPricePerVaultForID()` are used for calculating the current vault’s price. These functions uses `vaultC... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong calculation of `balanceBefore` and `balanceAfter` in deposit method
### Description
Deposit method calculate net amount transferred from user. It use `reservedFunds` also in consideration when calculating `balanceBefore` and `balanceAfter` but it is not actually require.
```solidity
uint256 balanc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## High: Keepers can open positions that are already liquidatable
### Description
Users positions can be opened already liquidated because there are no checks when the position is opened whether the position is liquidatable or not.
### Impact
Protocol can be insolvent if the liquidation is too deep such that the acco... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | dos | false | false | ## High: Improper input validation in fixDeserializedWra...
### Description
## Improper input validation in fixDeserializedWrappedEVMAccount leads to DOS and total network shutdown
Report type: Blockchain/DLT
Target: https://github.com/shardeum/shardus-core/tree/dev
Impacts:
* Direct loss of funds
* Network not ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: MISSING VALIDATOR EXISTENCE CHECK
### Description
**SlashIndicator.slash** function updates the slash count for the misbehaving validator. If this validator meets the felony threshold, **SlashIndicator.slash** calls the felony method in **ValidatorSet** to forfeit rewards of the validator in the round and dist... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Whitelist Is Incompatible With Proxies
### Description
The intention of the whitelist is to keep malicious contracts off of the protocol. When whitelisting upgradable contracts, it is possible for a formerly benign whitelisted contract to eventually upgrade into a malicious contract. Because of this, proxy ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `VoteEscrowDelegation._transferFrom` can only be executed by the token owner
### Description
`VoteEscrowDelegation._transferFrom` should be successfully executed if `msg.sender` is the current owner, an authorized operator, or the approved address. `removeDelegation` is called in `_transferFrom`. `removeDel... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Voting and bribe rewards can be hijacked during emergency unlock by already existing positions
### Description
There are many ways of modifying an already existing staking position : but they exhibit different behavior when an emergency unlock is made active.
`renewLock()` and `extendLock()` are straight aw... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Splitting `require()` statements that use `&&` saves gas
### Description
See [this issue](https://github.com/code-423n4/2022-01-xdefi-findings/issues/128) for an example
1. File: contracts/PooledCreditLine/PooledCreditLine.sol (line [642](https://github.com/sublime-finance/sublime-v1/blob/46536a6d25df4264c1b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | oracle-manipulation | true | false | ## Low: `OndoSanityCheckOracle::setAllowedDeviationBps` is not checking zero value as input which will introduce problems using it
### Description
In `OndoSanityCheckOracle`, there are two types of deviation values: a default deviation applied to all tokens by default, and a token-specific deviation set per asset via ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## Low: Precision loss in PendleV2Farm yield interpolation causes asset value step-jump
### Description
In the PendleV2Farm contract, the calculation of `yieldPerSecond` introduces a precision loss that affects the reported value of `assets()` before and after the farm's maturity date. The problematic line is:
```sol... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | true | false | ## Medium: Admin can unrestrictedly affect the odds of a raffle by setting themselves up with role(1) in `WinnablesTicket`
### Description
A core invariant defined in the contest README is that:
> Admins cannot affect the odds of a raffle
While the centralization risk of admin self-minting tickets is noted, the foll... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: UniswapV3 Oracle Vulnerability on L2 Networks Due to Sequencer Downtime
### Description
The `BondUniV3Oracle` contract relies on Uniswap V3's time-weighted average price (TWAP) mechanism, which is vulnerable to price manipulation on L2 networks during sequencer downtime. The vulnerability lies in the `_vali... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | false | false | ## Low: Remove Possibility of Adding Malformed Addresses
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `0ff0816`.
**File(s) affected:**`WebauthnOwnerPlugin.sol`
**Description:** Currently `_validateSignature()` performs the following check: `owner.x > type(uint160).max`. This allows the s... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | signature | true | false | ## Medium: Session signatures replay across wallets due to missing wallet binding
### Description
### Finding description and impact
Sequence wallets rely on `SessionSig.hashCallWithReplayProtection` to derive the message hashed by session signers. The function only hashes `(chainId, nonce space, nonce, call index, 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 | oracle | false | false | ## Medium: Usage of deprecated Chainlink functions
### Description
_Submitted by Ruhum, also found by 0x1f8b, cccz, and WatchPug_
The Chainlink functions `latestAnswer()` and `getAnswer()` are deprecated. Instead, use the [`latestRoundData()`](https://docs.chain.link/docs/price-feeds-api-reference/#latestrounddata) 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... | cyfrin_structured | high | other | true | false | ## High: Broken check in `MysteryBox::fulfillRandomWords()` fails to prevent same request being fulfilled multiple times
### Description
Consider the [check](https://github.com/Earnft/smart-contracts/blob/43d3a8305dd6c7325339ed35d188fe82070ee5c9/contracts/MysteryBox.sol#L221-L222) which attempts to prevent the same re... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | access-control | true | false | ## Gas: Functions guaranteed to revert when called by normal users can be marked `payable`
### Description
If a function modifier such as `onlyOwner` is used, the function will revert if a normal user tries to pay the function. Marking the function as `payable` will lower the gas cost for legitimate callers because 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 | front-running | true | false | ## Medium: Using `block.timestamp` as the deadline/expiry invites MEV
### Description
_Note: this finding was reported via the winning [Automated Findings report](https://gist.github.com/code423n4/3c6507b76ca940e11c287862cb4a1fd3). It was declared out of scope for the audit, but is being included here for completeness... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of `mut` on `liquidation_token_mint` restricts redemption flexibility
### Description
**Description:** When firing `liquidate_handler` and the Vault is redepmtion vault. we provide the necessary liquidate account (mint, vault, token_program, ...). `liquidation_token_mint` is not market with `mut` flag.
>... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Misleading comment
### Description
*Issue with comment*
I suspect a copy-paste error [here](https://github.com/code-423n4/2022-06-connext/blob/b4532655071566b33c41eac46e75be29b4a381ed/contracts/contracts/core/connext/libraries/SwapUtils.sol#L790): | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ONLY THE ADMINISTRATOR CAN CLAIM THE POLICIES
### Description
The policies are claimed once they go out of channel or expire through the `claim()` function. Because a policy should be claimable as soon as it goes out of channel or as soon as the time expires, it is important that users can claim their policies... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Possible to transfer more balance than necessary to VestingTrustee
### Description
It should be noted that it is possible to transfer more token balance than necessary to `VestingTrustee`. In that case, the only way to recover the surplus is to create a new grant that allows to immediately unlock its full 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 | reentrancy | true | false | ## Medium: Lender contract can be drained by re-entrancy in `refinance` (collateral)
### Description
Tokens allowing reentrant calls on transfer can be drained from a pool. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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-Payable Callee Of Payable Function
### Description
## Issue with createClaimDepositOrder Function
The `createClaimDepositOrder` function is **non-payable**, but it calls `createPoolDepositOrder`, which is **payable**. This implementation error prevents users from sending the required execution fees and re... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: `<array>.length` should not be looked up in every loop of a `for`-loop
### Description
The overheads outlined below are _PER LOOP_, excluding the first loop
* storage arrays incur a Gwarmaccess (**100 gas**)
* memory arrays use `MLOAD` (**3 gas**)
* calldata arrays use `CALLDATALOAD` (**3 gas**)
Caching the 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 | access-control | false | false | ## Low: Miscellaneous 1inch Farming General Comments
### Description
Description
This section details miscellaneous findings in the contracts repository discovered by the testing team that do not have
direct security implications:
1.Lack of Documentation and In-line Comments
There is currently no documentation about h... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Un-used `SELECTOR` constant in `SushiSwapV2Pair`
### Description
`SushiSwapV2Pair` has a `SELECTOR` constant that is no longer in use as it is relying on `TransferHelper` for safe transfer. This can be resolved by removing the `SELECTOR`.
Note that this will change the bytecode and requires an update to the 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 | liquidation | true | false | ## Medium: buyCollateral() does not work properly
### Description
The `BBLeverage.buyCollateral()` function does not work as expected.
### Impact
`buyCollateral()` does not work properly.
### Recommendation
```diff
function buyCollateral(address from, uint256 borrowAmount, uint256 supplyAmount, bytes calldata dat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: NFTXSimpleFeeDistributor#addReceiver: Failure to check for existing receiver
### Description
_Submitted by GreyArt_
The `addReceiver()` function fails to check if the `_receiver` already exists. This could lead to the same receiver being added multiple times, which results in erroneous fee distributions.
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insufficient Reward upon PMX Withdrawal
### Description
**Update**
The team fixed the issue as recommended in commit `0aeb163`.
**File(s) affected:**`ActivityRewardDistributor.sol`
**Description:** The `ActivityRewardDistributor.withdrawPmx()` function enables the admin to withdraw unused PMX tokens from ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incomplete Docstrings
### Description
Throughout the codebase, there are several instances of incomplete docstrings. For instance:
* In the [isValidSignature](https://github.com/euler-xyz/ethereum-vault-connector/blob/69626eba206ae301b919f021e71b49feaf7ea8f5/src/interfaces/IERC1271.sol#L16) function in `IERC... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Unnecessary require at MultiSigWallet.sol
### Description
**Description**
In the function tryInsertSequenceId() you require onlySigner. This function is private and can be
called only with functions that already have this requirement.
**Recommendation**:
Remove the unnecessary 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: Providing too small value renders Acala-dapp unresponsive
### Description
Passing in a too small value into the "Receive" form field in the "Swap" tab renders the Acala-dapp application unresponsive. This prevents the user from performing an action that is valid within the system. This can be reproduced by goi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Splitting `require()` statements that use `&&` saves gas
### Description
Instead of using the `&&` operator in a single require statement to check multiple conditions, I suggest using multiple require statements with 1 condition per require statement (saving 3 gas per `&`).
See [this issue](https://github.com/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | false | ## Medium: RocketTokenNETH - Pot. discrepancy between minted tokens and deposited collateral ✓ Fixed
### Description
The `nETH` token is paid to node operators when minipool becomes withdrawable. `nETH` is supposed to be backed by `ETH` 1:1. However, in most cases, this will not be the case.
The `nETH` minting and 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 | other | false | false | ## Medium: `DripTopicFeeRevenue` drips the internal `topicFeeRevenue` and not the one provided by `GetCurrentTopicWeight`
### Description
`DripTopicFeeRevenue` drips the `topicFeeRevenue` storage value instead of the value provided by the calculations inside `GetCurrentTopicWeight`. This can lead to different drip 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 | other | true | false | ## Low: `override` function arguments that are unused should have the variable name removed or commented out to avoid compiler warnings
### Description
*There is 1 instance of this issue:*
https://github.com/code-423n4/2022-12-gogopool/blob/aec9928d8bdce8a5a4efe45f54c39d4fc7313731/contracts/contract/tokens/TokenggAV... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## Low: Risk of Unchecked Oracle Price Anomalies in `lookupTokenValue()` function
### Description
Oracles serve as bridges between external data sources and the blockchain. However, the integrity of the data they provide can be compromised by errors in data feeds, manipulation by attackers, or even technical malfuncti... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Increase PERIOD\_DURATION to 30 Days
### Description
The contract contains a `TODO` comment indicating the intention to increase the immutable `PERIOD_DURATION` variable to 30 days at a later time. Leaving such `TODO`s unresolved can lead to inconsistencies and potential issues in the contract's functionality.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: node.js Dependency Management and Supply Chain Security
### Description
Current dependency management practices expose the protocol to potential supply chain attacks. The front-end repository shows frequent commits of `yarn.lock` with caret (ˆ) version ranges, indicating dependencies are being updated autom... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | other | true | true | ## Medium: `Tranche::redeem` calls `super.withdraw` instead of `super.redeem` causing users to receive fewer assets
### Description
The `Tranche::redeem` function contains a bug where it calls `super.withdraw(shares, receiver, owner)` instead of `super.redeem(shares, receiver, owner)`. This causes the function to inco... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: LpWrapper contracts can be deployed without oracle security parameters
### Description
The Mellow protocol utilizes oracle `SecurityParams` to prevent price manipulation attacks. Currently, it is possible for the admin to set empty `SecurityParams` for a `tickSpacing` using the `updateDepositParams` 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... | solodit_api | medium | ERC721 | true | true | ## Lines of code
https://github.com/code-423n4/2023-04-caviar/blob/cd8a92667bcb6657f70657183769c244d04c015c/src/Factory.sol#L161
https://github.com/code-423n4/2023-04-caviar/blob/cd8a92667bcb6657f70657183769c244d04c015c/src/PrivatePoolMetadata.sol#L17
## Vulnerability details
## Impact
- By invoking the [Factory.t... | Code4rena | 5 | Caviar |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Low: Event Emitted After External Call
### Description
**Update**
The issue has been fixed by emitting events before the external calls.
**File(s) affected:**`ElderGateway.sol`
**Description:** In the `unlock` and `lock` functions, events are emitted after external calls to transfer tokens. If the `lock` or `unlo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: _wethWithdrawTo is vulnerable re-entrancy
### Description
## Handle
pauliax
## Vulnerability details
## Impact
function withdrawBorrowETH invokes _wethWithdrawTo and later _checkMinReserve, however, the check of reserve is not necessary here, as function _wethWithdrawTo also does that after transferring... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | overflow | true | false | ## Gas: Increments can be unchecked
### Description
In Solidity 0.8+, there's a default overflow check on unsigned integers. It's possible to uncheck this in for-loops and save some gas at each iteration, but at the cost of some code readability, as this uncheck cannot be made inline.
[ethereum/solidity#10695](https:... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Redundant Checks
### Description
**Severity**: Informational
**Status**: Resolved
**description**
The check at L261 (`TokenSaleUSDB.sol`) is redundant , this is because the require statement
at L259 ensures `s.left` is more than 0.
Another instance is check at L181 TokenSale.sol , this check would always 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 | initialization | false | false | ## Low: BondCallback: operator is not set `constructor`
### Description
*
If the `operator` is not set, the `callback` function will revert so, it is crucial to set the `operator` before any operation. However, it was not set in the `constructor`, but should be set separately by calling `setOperator`. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | token | true | true | ## Low: Lack of slippage protection in liquidity functions
### Description
The `addLiquidity` and `removeLiquidity` functions do not include any form of slippage protection, such as `minSharesOut` or `minTokensOut` parameters. This means users cannot guard against receiving significantly fewer shares or tokens than ex... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.