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 | gas | other | true | false | ## Gas: Use smaller data types for `lenderFee` and `borrowerFee` for better storage packing
### Description
`lenderFee` and `borrowerFee` can be packed into smaller data types to save gas.
### Impact
Saves **34200 gas** per lendings created. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Code quality
### Description
Code is good in general. The function [updateUsersIndex](https://github.com/ether-camp/virtual-accelerator/blob/6665fdd4b71088443a74d1ed9fda52c6a8c8b975/contracts/ProjectKudos.sol#L264-L279), though, is quite confusing. Consider refactoring the code to improve code clarity. Some 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 | high | reentrancy | false | false | ## High: GroupBuy can be drained of all ETH.
### Description
`purchase()` in GroupBuy faciilitates the purchasing of an NFT after enough contributions were gathered. Another report titled *"Attacker can steal the amount collected so far in the GroupBuy for NFT purchase*" describes a high impact bug in purchase. It 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 | low | other | true | false | ## Low: Incorrect bounds checking in getReceivers() reverts with empty receivers
### Description
In `MergeMarketplaceStrategy.sol`, the `getReceivers()` function has a logical error in its bounds checking:
```
function getReceivers(uint256 start, uint256 end) public view returns (address[] memory) {
require(start ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: New deposits are instantly getting a share of undistributed rewards
### Description
When a new deposit is happening, the current pending rewards are not withdrawn and re-invested yet. And they are not taken into account when calculating the number of shares that the depositor receives. The number of shares 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 | high | other | true | false | ## High: Malicious seller forced break lockCapital()
### Description
Malicious burn nft causes failure to lockCapital() ,seller steady earn PremiumAmount, buyer will be lost compensation
### Impact
buyer will be lost compensation
### Recommendation
try catch for _poolTokens.ownerOf() If revert, it is assumed that 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 | other | false | false | ## Low: Include ``return parameters`` in _NatSpec comments_
### Description
**Context:**
All Contracts
**Description:**
https://docs.soliditylang.org/en/v0.8.15/natspec-format.html
If Return parameters are declared, you must prefix them with `/// @return`.
Some code analysis programs do analysis by reading NatSpec ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: There is a risk that the `proxyFee` variable is accidentally initialized to 0 and platform loses money
### Description
There is a risk that the `fees` variables are accidentally initialized to 0.
Starting `setWithdrawFee` with 0 is an administrative decision, but since there is no information about this in th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | true | false | ## Low: NatSpec is incomplete
### Description
*There are 56 instances of this issue:*
https://github.com/debtdao/Line-of-Credit/blob/e8aa08b44f6132a5ed901f8daa231700c5afeb3a/contracts/modules/credit/EscrowedLine.sol#L82-L89
https://github.com/debtdao/Line-of-Credit/blob/e8aa08b44f6132a5ed901f8daa231700c5afeb3a/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 | rounding | true | false | ## High: Lender transactions can be front-run, leading to lost funds
### Description
Users can mint wfCash tokens via `mintViaUnderlying` by passing a variable `minImpliedRate` to guard against trade slippage. If the market interest is lower than expected by the user, the transaction will revert due to slippage protec... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Push-payments pattern may render ETH deposits impossible to redeem
### Description
When redeeming ETH deposits, the `LendingPoolCore` contract [follows the push-payments pattern](https://gitlab.com/aave-tech/dlp/contracts/blob/1f8e5e65a99a887a5a13ad9af6486ebf93f57d02/contracts/lendingpool/LendingPoolCore.so... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Potential Optimization - Conditional Checks.
### Description
**Severity**: Informational
**Status**: Resolved
**description**
bpnmMain.sol: _uplineBonusDistribution().
The function's series of if statements iterate through upline user bonus calculations without
utilizing an `if-else` structure. This leads t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | false | false | ## Gas: Use named return variables when this eliminates local variables
### Description
**Description:** Use named return variables when this eliminates local variables:
* `CompliantDepositRegistry::getDepositAddresses`
* `StakingVault::redeem`
**Syntetika:**
Fixed in commit [f8f821d](https://github.com/SyntetikaLabs... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Code should set `ethB` value in `_curveBuy()` when `curveLiquidityMet` is true
### Description
in `_curveBuy()` when `curveLiquidityMet` is true, code buys all the tokens from pool B but it sets value of the of `ethA` instead of `ethB`:
```solidity
function _curveBuy(uint112 buyValue, bool curveLiquidity... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Pearlmit` batch approval deadlines incorrectly used
### Description
In `permitBatchApprove`, the approval deadline for the batch of assets is set as the deadline of the signature:
The docstring in `Pearlmit.sol` indicates that the `SignatureApproval` struct has the `approvalExpiration` field:
However 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: Multicall when inherited to ERC4626RouterBase does not bubble up the reverts correctly
### Description
Multicall does not bubble up the reverts correctly. The current implementation uses the following snippet to bubble up the reverts:
```solidity
// https://github.com/AstariaXYZ/astaria-gpl/blob/.../src/Multi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Function `increaseTotalStakeUncheckpointed()` can be more optimized (save 148 Gas on average)
### Description
Gas benchmarks based on function `rewardWithHint` that calls our internal function.
| | Min | Average | Median | Max |
| ------ | --- | ------- | ----- | ----- |
| Before | - | 453410 | - | - |
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redundant require statement
### Description
In `StakingPoints.free`, we include the following require statement prior to decrementing the `stake.balance`:
```solidity
require(amount stake balance");
stake.balance -= uint224(amount);
```
This require statement is redundant due to the fact that if `amount > u... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Lack of Slippage Protection in `withdraw`/`redeem` Functions of the Vault
### Description
### Issue Description
When a user who has deposited assets into the PrizeVault wishes to withdraw (or redeem) them, they can do so by calling either the `withdraw` or `redeem` functions.
Under normal conditions in th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: [09] `updateTssAndConnectorAddresses` from `ZetaNonEth.sol` is allowing TSS and Updater adresses to be updated to the same address
### Description
`updateTssAndConnectorAddresses` from `ZetaNonEth.sol` is allowing TSS and Updater adresses to be updated to the **same address**, which defeat the purpose of `reno... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `deposit` function is not working if `totalSupply()` is greater than zero
### Description
**Severity**: High
**Status**: Resolved
**Description**
if the ``totalSupply()` is greater than zero and user calls `deposit` function, the call will be reverted with the message: "ReentrancyGuard: reentrant call" bec... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: SharesFromTokens logic is functionally identical to SharesFromTokensTruncated, leading to re- dundant share calculation calls
### Description
The following two functions are functionally equivalent:
- **SharesFromTokens**
- **SharesFromTokensTruncated**
The only difference between these two is the division co... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Votes can be overwritten by calling the same function for the first vote
### Description
In order to vote in a proposal, stakers call the [`submitProposalVote` of the `Governance` contract](https://github.com/AudiusProject/audius-protocol/blob/6f3b31562b9d4c43cef91af0a011986a2580fba2/eth-contracts/contracts/Go... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use named imports instead of plain `import file.sol
### Description
Using import declarations of the form `import {} from 'some/file.sol'` avoids polluting the symbol namespace making flattened files smaller, and speeds up compilation.
### Impact
*Instances (4)*:
```solidity
File: Fees.sol
4: import "./utils... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Delegated NFTs that are withdrawn while still delegated will remain delegated even after burn
### Description
[VoteEscrowCore.sol#L1226-L1236](https://github.com/code-423n4/2022-07-golom/blob/e5efa8f9d6dda92a90b8b2c4902320acf0c26816/contracts/vote-escrow/VoteEscrowCore.sol#L1226-L1236)
Burn NFTs remained 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 | low | other | false | false | ## Low: Include ``return parameters`` in _NatSpec comments_
### Description
It is recommended that Solidity contracts are fully annotated using NatSpec for all public interfaces (everything in the ABI). It is clearly stated in the Solidity official documentation. In complex projects such as Defi, the interpretation 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 | other | true | false | ## Low: indexed Keyword in Events Causes Data Loss for String Variables
### Description
When the indexed keyword is used for reference type variables such as dynamic arrays or strings, it will return the hash of the mentioned variables. Thus, the event, which is supposed to inform all of the applications subscribed to... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: flan can't be transferred unless the flan contract has flan balance greater than the amount we want to transfer
### Description
_Submitted by CertoraInc_
#### Flan.sol (`safeTransfer()` function)
The flan contract must have balance (and must have more flan then we want to transfer) in order to allow flan ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Event Log Poisoning
### Description
The Dapper Ethereum smart contract wallet (CoreWallet, deployed in its cloned and full versions) inherits the ERC721Receiver contract and therefore implements the `onERC721Received()` function, which when called emits the `ERC721Received` event. This function can be external... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wallet may not be deployed [core]
### Description
The `_validateWalletPrepayment` function of the `EntryPoint` will [attempt to deploy the wallet](https://github.com/eth-infinitism/account-abstraction/blob/8832d6e04b9f4f706f612261c6e46b3f1745d61a/contracts/EntryPoint.sol#L238) if the operation specifies an `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 | high | cross-chain | true | false | ## High: All CCIP messages reverts when decoded
### Description
**Description:** YieldFi has integrated Chainlink CCIP alongside its existing LayerZero support to enable cross-chain token transfers using multiple messaging protocols. To support this, a custom message payload is used to indicate the token transfer. Thi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | true | ## High: Missing loop iteration prevents the last finalist from being elected
### Description
DSPrism provides a multi-step voting system. Due to incorrect loop bounds, the last finalist can never be elected.
Once a list of finalists is established, the function `snap` can elect the winners. The loop iterating over 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 | high | overflow | true | false | ## High: Underflow in `updateTranscoderWithFees` can cause corrupted data and loss of winning tickets
### Description
`updateTranscoderWtihFees` can underflow because MathUtils is used instead of PreciseMathUtils.
### Proof of Concept
According to [LIP-92](https://github.com/livepeer/LIPs/blob/master/LIPs/LIP-92.md)... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | token | false | true | ## Medium: Incorrect handling of decimals in `LibLockedUnderlying::getPercentLockedUnderlying` results in an incorrect value being returned, affecting the temperature and Bean to maxLP gaugePoint per BDV ratio updates in each subsequent call to `SeasonFacet::gm` when `unripe asset supply < 10M`
### Description
Due to ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | false | false | ## Medium: Some ERC-20 and ERC-721 Tokens Can Not Be Bridged - Phase 2
### Description
ERC-20 tokens can be bridged through the [`ERC20Vault`](https://github.com/taikoxyz/taiko-mono/blob/b47fc34cb0e7fe9b7ebd9416b3051a067483b860/packages/protocol/contracts/tokenvault/ERC20Vault.sol) contract by calling the [`sendToken`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | storage | true | false | ## Gas: No need to make `_nextRecordId` shorter than the size of a word
### Description
In the current implementation of ParticlePositionManager, the data type for the `_nextRecordId` variable (the one that tracks the ids of liens) is `uint96`.
As this variable isn't packed with any other adjacent storage (`_treasur... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `payOff()` underflow in `OperationalTreasury` locks assets permanently
### Description
The `payOff()` function in the `OperationalTreasury` contract calculates `feesUSD` based on the full position size and current price, without considering the actual profit (`pnl`). Specifically:
- `feesUSD = positionAmount... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Blind auctions cannot be cancelled before auction starts
### Description
In the protocol, the maker is allowed to cancel the auction before it starts:
```solidity
if (listing.start > 0 && block.timestamp >= listing.start && block.timestamp <= listing.end)
revert AuctionNotFinished();
```
However, for 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... | cyfrin_structured | low | other | true | false | ## Low: Vault limit cannot be modified if vault Is already enabled | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [11] `maxCapPerUser` limit should not be enforced in public sales
### Description
A `maxCapPerUser` limit is always enforced when buying the initial liquidity via `buy()`, but this is only useful [during the whitelist period](https://github.com/code-423n4/2024-06-vultisig/blob/main/src/ILOPool.sol#L133).
Once... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 print to console
### Description
Print to console can't be used in blockchain:
https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/credit/CreditFilter.sol#L343
### Recommendation
We recommend removing print to console. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 errors in external contracts can result in lost tokens
### Description
Within the `DharmaSmartWalletImplementationV2` contract, `_depositOnCompound` transfers tokens to Compound, while `withdrawDai` and `withdrawUSDC` both transfer their respective tokens from Compound back to the owner’s smart wallet... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: setYieldBooster() Emits Wrong Previous Address
### Description
The `setYieldBooster()` function of the MasterBorpa contract emits an event to indicate that a new yield booster address has been configured. It emits the event `SetYieldBooster` which is supposed to show the previous and new/current yield booster ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | false | false | ## High: Non-Explicit Multiple-Pool Support Allows Overwriting Hook State
### Description
The [`BaseCustomAccounting` hook](https://github.com/OpenZeppelin/uniswap-hooks/blob/f051c147dbf296b2b854de92970905a880cd1d51/src/base/BaseCustomAccounting.sol#L35) is meant to only support a single UniswapV4 pool defined by 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 | initialization | true | false | ## Medium: `latestMarket` used where `marketIndex` should have been used
### Description
_Submitted by gpersoon, also found by 0xImpostor, cmichel, shw, hack3r-0m, jonah1005, loop and pauliax_
The functions `initializeMarket` and `_seedMarketInitially` use the variable `latestMarket`.
If these functions would be call... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: repay function can be DOSed
### Description
## Lines of code
https://github.com/code-423n4/2022-10-inverse/blob/main/src/Market.sol#L531
## Vulnerability details
## Impact
In `repay()` users can repay their debt.
There is a `require` condition, that checks if the amount provided, is greater than the 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 | high | other | false | false | ## High: More logic required
### Description
**Description**
The logic for KYC is missing and it is very vital to the operation of the contract. To be more
specific the purchaseAllowed function doesn’t have the required logic needed to perform KYC.
**Recommendation**:
Include the KYC logic as planned. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Remove unneeded fields from StoredBalance and Pool structs ✓ Fixed
### Description
Both structs have fields that are only written to, and never read:
1. `StoredBalance.isInitialized`:
**code/contracts/staking/contracts/src/interfaces/IStructs.sol:L61**
```
bool isInitialized;
```
2. `Pool.initialized`:
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Silent Truncation in Permit2 Transfers
### Description
The use of `uint160(amount)` in Permit2 transfers may silently truncate large amounts:
```solidity
if (usePermit2) {
permit2.transferFrom(
order.maker,
order.taker,
uint160(amount),
address(order.makerToken)
);
} else {
order.makerToke... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | other | false | false | ## Low: Use named return variables when this eliminates local variables
### Description
Use named return variables when this eliminates local variables:
* `CompliantDepositRegistry::getDepositAddresses`
* `StakingVault::redeem` | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Magic Numbers in Use
### Description
In programming, "magic numbers" refer to the use of hard-coded numerical or string values directly in the code without clear indication of their purpose or origin. The use of magic numbers can lead to confusion and make the codebase more difficult to understand, maintain, 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 | initialization | true | false | ## Low: [03] Addressing Zero-Value Bids in Auction Contracts
### Description
The auction contract, as currently designed, presents a a low to medium severity issue due to its allowance for bids of 0 ETH under specific conditions. When the `_createAuction()` function initializes an auction, it sets `auction.amount` to ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: Incorrect Ether transfer
### Description
**Description**
ShyftStaking.sol, unstake() (line 267), notifyRewardAmount() (line 316),
finishPrePurchasersMode() (line 424), _getReward() (line457)
After the Istanbul and Berlin updates, sending Eth with transfer() and send() methods is
forbidden since it may fail 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 | gas | liquidation | false | false | ## Gas: Before some functions, we should check some variables for possible gas save
### Description
Before transfer, we should check for amount being 0 so the function doesnt run when its not gonna do anything:
Check `_amount`
- [PrePOMarket.sol#L69](https://github.com/prepo-io/prepo-monorepo/blob/feat/2022-12-prepo/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Memorializing an NFT position on the same bucket of a previously memorialized NFT locks redemption
### Description
Memorializing a position as an NFT on the same bucket of an existing memorialized position will not allow any of the owners to directly redeem it back later.
### Impact
Although users that sha... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `require()`/`revert()` statements should have descriptive reason strings
### Description
1. File: contracts/HolyPaladinToken.sol (line [182](https://github.com/code-423n4/2022-03-paladin/blob/9c26ec8556298fb1dc3cf71f471aadad3a5c74a0/contracts/HolyPaladinToken.sol#L182))
2. File: contracts/HolyPaladinToken.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use _safeMint(...) instead of _mint(...)
### Description
**Severity**: Low
**Status**: Acknowledged
**Description**
In contract VotingEscrow.sol, _mint(...) is used to mint NFTs to user addresses whereas it is advised to use _safeMint to ensure that the address is either an EOA or a contract that implements... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: cumulativePower check should be inclusive
### Description
## Handle
pauliax
## Vulnerability details
## Impact
Based on my understanding cumulativePower checks should be inclusive to indicate when the threshold is met. Otherwise, there might be impossible to reach it in certain cases (e.g. when 100% power ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unit Tests Are Not Run on Push, Pull Request, or Build
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `a8c919b`. The client provided the following explanation: Have added tests on pull requests, due to the nature of Cypress its a bit bulky to add to every single pull. Currently 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 | dos | false | false | ## Medium: Iterations over slashes ✓ Addressed
### Description
Every user should iterate over each slash (but only once) and process them in order to determine whether this slash impacted his delegations or not.
However, the check is done during almost every action that the user does because it updates the current 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 | other | false | false | ## Medium: Missing Sanitization of URLs Passed to AngularJS `bypassSecurityTrustResourceUrl`
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `ff13da4`. The client provided the following explanation: Have implemented global URL sanitization function
**Description:** AngularJS is designed to 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 | dos | true | false | ## Medium: Pool is griefed if tickBin is equal to (1 << splits) - 1
### Description
If `tickBin` reaches its max value (equal to `(1 << splits) - 1`), all calls to `Infinity-Pool.advance()` on subsequent blocks will revert due to the check in `EraBoxcarMidSum.sol#L30`. This renders the pool unusable because `infinityP... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Only Withdrawer Can Complete Queued Withdrawals
### Description
The `completeQueuedWithdrawal()` function can only be called by the withdrawer. This can result in the withdrawal being locked and unclaimable if the withdrawer is a smart contract that cannot call this function.
### Recommendation
The project te... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TRST-H-7 Pending position fees miscalculation may result in increased PnL
### Description
**Description:**
When calculating pending liquidity position fees, **liquidity, tokensOwed0, and tokensOwed1**
are read from a Uniswap V3 pool using a position belonging to the
NonfungiblePositionManager contract. Howev... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Business Logic | false | true |
Wrong slashing calculation may create unfair punishment for operators that accidentally forgot to execute their job.
### Proof of Concept
[Docs](https://docs.holograph.xyz/holograph-protocol/operator-network-specification): If an operator acts maliciously, a percentage of their bonded HLG will get slashed. Misbehavi... | 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 | medium | initialization | false | false | ## Medium: Trapped Liquidity Rewards
### Description
Whenever a liquidity reward campaign is initiated, the `LiquidityReward` contract [ensures the contract is preloaded](https://github.com/OriginProtocol/origin-dollar/blob/bf4ff28d5944ecc277e66294fd2c702fee5cd58b/contracts/contracts/liquidity/LiquidityReward.sol#L114... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | other | true | false | ## Low: `Goldilocked._lockedLocks()` should round up.
### Description
Users might borrow 1 more wei as it rounds down.
```solidity
function _lockedLocks(address user) internal view returns (uint256) {
return FixedPointMathLib.divWad(borrowedHoney[user], IGoldiswap(goldiswap).floorPrice());//@audit round up
}
`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent usage of `require`/`error`
### Description
Some parts of the codebase use `require` statements, while others use custom `error`s. Consider refactoring the code to use the same approach: the following findings represent the minority of `require` vs `error`, and they show the first occurance in each... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: StakingManager `getExchangeRatio` does not handle first mint
### Description
`getExchangeRatio()` is supposed to be used for calculating exchange rate between HYPE and kHYPE. It checks kHYPESupply to be bigger than zero:
```solidity
function getExchangeRatio() public view returns (uint256) {
uint256 tot... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Presence Of Unused Field
### Description
## MintRequest Declaration in state.rs
The `state.rs` file contains a declaration of the `MintRequest` object. However, despite including the `timestamp` field in its definition, this field is not utilized for either writing or reading data throughout the code.
## Cod... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: improvements `toAsciiString`
### Description
The function [`toAsciiString`](https://github.com/code-423n4/2021-05-yield/blob/main/contracts/utils/AddressStringUtil.sol`) can be improved the be easier to read and use less gas.
See issue page for proof of concept and proposed improved version.
**[albertocuesta... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Vulnerabilities to rug pull scenarios
### Description
The contracts are `Ownable` with a possibility to change the contracts implementation to arbitrary code. Also, some contracts have functions to retreive the `ERC-20` tokens by the owner (e.g. `RewardDistributorV3.rescueTokens`, `iToken._withdrawReserves`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Oracle `periodSize` is very low allowing the TWAP price to be easily manipulated
### Description
_Submitted by 0x52, also found by __141345__, Chom, csanuragjain, and ladboy233_
TWAP oracle easily manipulated.
### Proof of Concept
periodSize is set to 0 meaning that the oracle will take 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 | signature | false | false | ## Low: `_acceptInitialAdminDelegated` will revert in `GovernorBravoDelegator`
### Description
* [GovernorBravoDelegator.sol:49](https://github.com/Plex-Engineer/lending-market-v2/blob/443a8c0fed3c5018e95f3881a31b81a555c42b2d/contracts/Governance/GovernorBravoDelegator.sol#L49)
delegateTo(implementation, abi.encod... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `zeroswap/UniswapV2Pair.sol` Token reserves per lp token can be manipulated due to lack of `MINIMUM_LIQUIDITY` when minting the first liquidity with `migrator`
### Description
_Submitted by WatchPug_
When minting LP tokens (`addLiquidity`), the amount of lp tokens you are getting is calculated based on `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: RCTreasury.addToWhitelist() will erroneously remove user from whitelist if user is already whitelisted
### Description
## Handle
jvaqa
## Vulnerability details
RCTreasury.addToWhitelist() will erroneously remove user from whitelist if user is already whitelisted
## Impact
The comments state that calling ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improper decimal process when we calculate the totalValueInProtocol
### Description
_Resolved_
In Elytra, we can support multiple assets to stake, including native HYPE, LST, stable coins. In order to support multiple assets, we will use oracle adapters to calcualte the quote token price based on the base tok... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | flash-loan | false | false | ## Low: Wrong comments in checkAccountStatus
### Description
In the `checkAccountStatus` function within the `RiskManagerModule` contract, there is an incorrect comment that references the `disableCollateral` function instead of the correct `disableController` function. This discrepancy can lead to confusion about 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 | signature | false | false | ## Low: Passkey validation missing verification steps recommended by WebAuthn standard
### Description
The WebAuthn standard specifies several steps for verifying an authentication assertion. Some of these steps are optional or irrelevant to the PasskeyValidator contract. However, some steps are important to fully capi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Centralization Risk
### Description
The contracts implement extensive owner privileges through `Ownable2Step` inheritance, granting significant control over critical protocol parameters and functionality. Furthermore, in the `RewardReceiver` contract, the `owner` address cannot be changed.
This centraliza... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: LeverageMacroBase does not allow the owner of the contract to perform CDP operations with- out performing a Flashloan
### Description
The current implementation of **LeverageMacroBase** reverts if the `doOperation` does not execute a **stETH** or **eBTC** flashloan operation. There could be cases where the own... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: openPosition() Lack of minimum token0PremiumPortion/token1PremiumPortion limit
### Description
In `openPosition()`, it allows `token0PremiumPortion` and `token1PremiumPortion` to be 0 at the same time.
In this case, if `tokenId` enters `out_of_price`, for example, `UpperOutOfRange`, anyone might be able to... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Hardcoded Values
### Description
Throughout the codebase, there are several occurrences of literal values with unexplained meanings. For example:
`TruStakeMATICv2` contract:
* In the `totalStaked` function, the amount of shares returned by the validator is multiplied by [`1e29`](https://github.com/TruFin-i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Use `uint256(1)/uint256(2)` instead of `true/false` to save gas for changes.
### Description
Avoids 20000 gas when changing from `false` to `true`, after having been true in the past. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: emiting `EthReceived` event when `RollupRevenueVault` receives 0 eth
### Description
**Description:** [`RollupRevenueVault::receive`](https://github.com/Consensys/linea-monorepo/blob/8285efababe0689aec5f0a21a28212d9d22df22e/contracts/src/operational/RollupRevenueVault.sol#L292-L294) && [`RollupRevenueVault:fal... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Enforce Strict Transport Security ✓ Fixed
### Description
The HTTP `Strict-Transport-Security` response header (often abbreviated as HSTS) lets a web site tell browsers that it should only be accessed using HTTPS, instead of using HTTP. This prevents attackers from stripping TLS certificates from connection... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Closing positions does not decrease the pool's entry price, leading to misleading pool value calculations
### Description
When positions are increased, the pool's entry price is weighted and increased accordingly. However, this adjustment does not occur when positions are decreased, leading to an invalid 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 | access-control | false | false | ## Low: Inconsistent and Collidable Selector Generation for Strategy Forwarding
### Description
**Update**
Addressed in: `743b22a44f13f1d1b02fd7fea0c4d785d3f380ef`. The client provided the following explanation:
> I applied the recommendation, now `getForwardToStrategySelector` uses keccak256 instead of XOR, using on... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Possible financial loss if the duration of validity is low
### Description
**Severity**
**Impact:** Medium
**Likelihood:** Medium
**Description**
Simulation might succeed but may fail in the actual on-chain execution. This results in financial losses for the Bundler (the node). Therefore, maintaining co... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | cross-chain | true | false | ## Medium: When transferring tokens not in `whitelist` on Ethereum to Terra with `CrossAnchorBridge.depositStable()`, the funds may get frozen
### Description
In the current implementation of `CrossAnchorBridge`, all `require` that "Check that `token` is a whitelisted token" is commented out.
As a result, users may s... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | true | false | ## Low: Upgradable smart contracts do not include a storage gap
### Description
_Resolved_
Each of the contracts inherits from OpenZeppelin’s `UUPSUpgradeable`, but also declares its own state variables without reserving any additional storage slots for future upgrades. Without a `uint256[50] private __gap;` at the e... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Rollover might introduce economically impractical deposits of dust into a strategy
### Description
During the rollover of the strategy position into a longer maturity, several things happen:
* Funds are borrowed from the longer maturity to pay off the debt and fees of the current maturity.
* Strategy tokens ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Using the collateral assets' oracle price at 100% of its value to mint USSD without a fee can be used for arbitrage.
### Description
Allowing the users to mint USSD using the collateral assets, at 100% of its value based on the oracle price without a fee can easily be exploited by the arbitragers.
### Impa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: rewardTokens.length can be cached
### Description
The loop `for (uint256 i; i < rewardTokens.length; i++)` repeatedly loads the storage variable `rewardTokens.length` in the `updateReward` modifier, which is executed while staking, withdrawing, and during reward notifications.
### Recommendation
Consider cach... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Registration process is not clearly documented
### Description
The `PaymentsERC20` contract allows a seller to register themselves by calling the [`registerAsSeller`](https://github.com/freeverseio/PaymentsERC20Public/blob/a95f0f6499be396c0a245f0183009b98cc72f123/contracts/Payments/PaymentsERC20.sol#L83) funct... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | Blacklisted | false | false | Source: https://github.com/sherlock-audit/2023-10-real-wagmi-judging/issues/83
## Found by
0x52, ArmedGoose, Bauer, tsvetanovv
After liquidity is restored to the LP, accumulated fees are sent directly from the vault to the creditor. Some tokens, such as USDC and USDT, have blacklists the prevent users from sending ... | Sherlock | 4.75 | Real Wagmi #2 |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of Access Control in BoostController::updateUserBoost Leading to Unauthorized Delegation Overwrite.
### Description
In the `BoostController` contract, the `updateUserBoost()` function is vulnerable due to the absence of access control, allowing unauthorized delegation overwrite. Malicious actors can expl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Sentry SDK uses getRunningAppProcesses to get a list of running apps
### Description
The Sentry SDK uses the `getRunningAppProcesses` method (Figure 23.1), which is intended only for debugging or building a user-facing process management UI. Additionally, the Android Security 2014 Year in Review Google report ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Addresses for oracles should be whitelisted
### Description
The current implementation of the Pools Factory allows users to create pools with user-supplied oracles to determine prices of assets:
https://github.com/curvefi/stableswap-ng/blob/8c78731ed43c22e6bcdcb5d39b0a7d02f8cb0386/contracts/main/CurveStableSw... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Boost buyback burns incorrect amount of liquidity
### Description
The function `_unfarmBuyBurn` in the V3AMO contract is a public function open to everyone and calculates the amount of liquidity to burn from the pool. This function basically burns LP positions to take out liquidity and uses the usd to buy up ... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.