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 | overflow | true | false | ## High: Calls to archive_blocks break block-height tracking
### Description
The ledger state uses the length of the `self.blocks.inner` vector to track blocks’ height. However, if `archive_blocks` is called on the ledger canister, some (or all) of the blocks will be split off from `self.blocks.inner`, and the length ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: market bonds/swaps not working after loan is taken from treasury
### Description
_Submitted by immeas_
I am bordering between this being medium and low, but since this is, granted under very unlikely circumstances, hindering intended transfers to work I am submitting it as medium. That said, I don't think... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Prefer encodeCall to encodeWithSelector
### Description
Context: SafeERC20.sol#L17, SafeERC20.sol#28, SafeERC20.sol#39, SafeERC20.sol#44
Description: The contract performs low-level calls to an IERC20 contract. It is using
abi.encodeWithSelector to encode the parameters.
Recommendation: Consider using abi.enco... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | true | ## Medium: Difference between charged and paid fees
### Description
The protocol charges government fees to cover paid oracle fees:
```solidity
function openTradeMarketCallback(ITradingCallbacks.AggregatorAnswer memory _a) external tradingActivated {
// Gov fee to pay for oracle cost
TradingCommonUtils.updateF... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: NatSpec documentation issues: missed parameters, typos or suggested updates
### Description
Various NatSpec documentation issues were found, which include missing parameters, typos, or general suggestions for improvement:
- **IPublicAllocator.sol#L12-L14**: Replace the `170141183460469231731687303715884105727... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | false | false | ## Low: Costs at the Network Level Could Block some Cross-Chain Operations
### Description
**Update**
The team states that they plan to make changes to the relayer contracts soon, which might impact the need for the Billing Contract. The pointed-out places, specifically the `_initiateWithdrawal()`, call the billing 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 | access-control | false | false | ## Low: Privileged Roles and Ownership
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> We inform our users about the custody model in our documentation: https://info.mezo.org/btc-custody-on-mezo/deposit-custody but we will also improve it on the smar... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `SettlementSignatureVerifier` is missing check for duplicate validator signatures
### Description
### Impact
`SettlementSignatureVerifier::verifyECDSA` and `settlement::check_chakra_signatures` lack checks for duplicate validators and allow passing the threshold with a single valid signature.
### Proof of 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 | high | dos | false | false | ## High: `VaultImplementation._validateCommitment` may prevent liens that satisfy their terms of `maxPotentialDebt`
### Description
The calculation of `potentialDebt` in `VaultImplementation._validateCommitment()` is incorrect and will cause a DoS to legitimate borrowers.
### Impact
Liens that would have otherwise sa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | true | false | ## Low: Borrowers can avoid paying interest
### Description
When a borrower uses the `repay` function to pay off their debt, the interest they owe is calculated using the `getProratedInterestAmount` function:
```solidity
function getProratedInterestAmount(
uint256 balance,
uint256 interestRate,
uint256 loanDura... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | DAO | true | false | Source: https://github.com/sherlock-audit/2022-11-frankendao-judging/issues/70
## Found by
Haruxe, 0x52, hansfriese
## Summary
`Staking.unstake()` doesn't decrease the original voting power that was used in `Staking.stake()`.
## Vulnerability Detail
When users stake/unstake the underlying NFTs, it calculates the t... | Sherlock | 5 | FrankenDAO |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | true | false | ## Low: Lack of Packet Size Limitation
### Description
It has been identified that there is no restriction on the size of the packets being formed, allowing for the encoding of excessively large packets. This lack of limitation can lead to unexpected behaviors and potential Denial of Service (DoS) attacks when attempt... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Malicious intent creator can provide arbitrary prover to deny solver rewards after intent fulfillment
### Description
A malicious intent creator can provide an arbitrary/malicious prover contract while creating the intent in `createIntent()`, which prevents reward withdrawals for solvers after intent fulfillmen... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Pre-calculate equations which contain only constant values in constructor
### Description
For equations, calcuations and computations that only involve constants or immutable values they could be calculated in the contract's constructor and saved to an immutable variable. Using the immutable variable would be ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improper Error Handling
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `da28689`, `b17000c`, `67e4aa2`, `944a512`. The client provided the following explanation: Have added in various error handling and will keep in mind moving forward
**Description:** Some of the endpoints either 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 | dos | true | false | ## Medium: New strategy can not work due to insufficient allowance
### Description
When a new strategy is added through [`MultiStrategy# addStrategy()`](https://github.com/code-423n4/2024-12-bakerfi/blob/main/contracts/core/MultiStrategy.sol# L107-L112), it was not approved to spend the asset in `MultiStrategyVault`. ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: LockingPositionDelegate::manageOwnedAndDelegated unchecked duplicate tokenId allow metaGovernance manipulation
### Description
A malicious user can multiply his share of meta governance delegation for a tokenId by adding that token multiple times when calling `manageOwnedAndDelegated`
### Impact
The lack 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 | oracle | false | false | ## Low: Variable is initialized in storage in upgradable smart contract.
### Description
**Description**
UniV3TwapOracle.sol: 'lookbackSecs`.
Storage variables can't be initialized outside of functions in upgradable smart contracts.
Thus variable 'lookbackSecs will be initially equal to 0. Issue is marked as info, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incompatible Behaviors In RPC
### Description
## RPC Transaction Issues and Resolutions
1. The `RPCTransaction` structure returned by both `hydrateTransaction` and `hydratePendingTransaction` includes a field for the transaction type (`Type`). However, this field is not explicitly set in these functions, resu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use `do-while` loop instead of `for-loop` to save users gas cost.
### Description
do-while does not check the first condition and prevents the assembly from executing lots of opcodes needed for conditions checks and all these places are right for it because these all always execute the code inside loops on the... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: The codebase relies on outdated dependencies
### Description
Updated versions of many of MobileCoin’s dependencies are available. Since silent bug fixes are common, the dependencies should be reviewed and updated wherever possible. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of Minimum Waiting Period for `pendingRewards` Function Calls in `LpNFTPool` Contract
### Description
**Severity**: Low
**Status**: Unresolved
**Source**: LpNFTPool.sol , HyperPool.sol
**Description**:
The `pendingRewards` function in the `LpNFTPool` contract calculates the pending rewards for a sta... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: LACK OF POOL NAME LENGTH VALIDATION
### Description
The `create_pool` instruction requires several parameters, one of which is the pool name. However, there is currently no validation to ensure that the length of the pool name does not exceed the maximum allowed limit, potentially leading to input that violate... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | oracle | true | false | ## Gas: Unnecessary copy of storage struct to memory in the `OracleHelper` contract
### Description
The `OracleHelper` contract has multiple instances where a complete struct is being copied to memory to end up using only one of its attributes. The contract should be refactored such that only the required attribute 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 | initialization | true | false | ## High: User can steal other users’ emissions due to vulnerable claim implementation
### Description
### Finding description
`backstop::emissions::execute_claim` is missing `update_emissions` for `to` address which allows a user stealing other users’ emissions.
### Proof of Concept
When a user deposit to backstop,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Error logging is disabled for calls to contracts on-chain
### Description
Within `$PROJECT_ROOT/scripts/test/migrationProcedure.js`, the `call` helper function is used to invoke on-chain contract methods. When the `call` function is executed and an error occurs, error-handling logic denotes that an error 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 | low | cross-chain | true | false | ## Low: `_quote` payload doesn't include `messageId`
### Description
`_quote` creates `_payload`, which consists of `shareAmount` and `destinationChainReceiver`, and passes it to `mailbox.quoteDispatch`.
However, when the actual bridge is performed, the payload consists of `shareAmount`, `destinationChainReceiver`, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | false | false | ## Medium: Updating rate limit for addresses restores their entire buffer amount
### Description
_Submitted by cmichel_
[MultiRateLimited.sol#L280](https://github.com/code-423n4/2022-03-volt/blob/f1210bf3151095e4d371c9e9d7682d9031860bbd/contracts/utils/MultiRateLimited.sol#L280)
When the `bufferCap` is updated for 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 | cross-chain | true | false | ## High: Anyone Can Forge a Withdrawal in `withdrawBySnapshot()`
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `037bf751bedf801bf11696cf96d22ec7a04da62d`.
**File(s) affected:**`TokenBridgeWithSnapshotWithdraw.sol`
**Description:** In `withdrawBySnapshot()`, several merkle proofs are provi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: MultiFacetProxyLib.delegateCall is unused and should be removed
### Description
`delegateCall` is one of the internal functions of `MultiFacetProxyLib` which is unused and thus should be removed. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Malicious user can bypass execution of `CollectionShutdown` function
### Description
Malicious user bypasses `CollectionShutdown::preventShutdown` by calling `CollectionShutdown::start` then `CollectionShutdown::reclaimVote` making the use of checks in `preventShutdown` useless.
### Impact
Bypass `prevent... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | cross-chain | false | false | ## High: Shares of stUSDC can be lost/gained during cross chain transfers due to differing conversion rates across chains
### Description
**Details**
[StUsdcLite.sol#L418-L428](https://github.com/stakeup-protocol/stakeup-contracts/blob/b4d8a83e9455efb8c7543a0fc62b5aea598c7f49/src/token/StUsdcLite.sol#L418-L428)
fu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Lack of vetoer can lead to 51% attack
### Description
The veto power is an important functionality in a governance system to protect against malicious proposals. However, there is a lack of a vetoer in VeloGovernor, which might unintentionally lead to Velodrome losing their veto power and becoming vulnerabl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | true | false | ## High: Loss of Input Tokens Due to Incorrect Rounding
### Description
## Potential Rounding Issue in BinPool::_updateBin
There is a potential rounding issue in `BinPool::_updateBin` that may result in a significant loss for liquidity providers (LPs) under specific conditions (when there is only one LP in the active... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | liquidation | false | true | When a user borrows an ERC721, the interest they are charged is stored in the `borrowSnapshot.interestAccrued` field of the ERC721 market. Only when the interest is paid does it become a balance in the interest market.
This causes a discrepancy because the accrued interest is effectively being borrowed from the intere... | ZachObront | 3 | Fungify |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | token | false | false | ## Gas: Redundant allowance check
### Description
The allowance check is redundant because `tokenContract.transferFrom()` will check and ensure sufficient allowance has been given.
### Recommendation
- `require(IERC20(_tokenContract).allowance(_counterparty, address(this)) >= _amount, "Token allowance must be >= amou... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | true | false | ## Medium: When the `returnNative` parameter is set to true in the `_params` provided to `MoneyMarketHook.execute`, it is not handled properly and could disrupt user expectations
### Description
When `param.returnNative` is set to true while calling `MoneyMarketHook.execute`, users expect the returned token from the w... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Incorrect Event
### Description
In the `BasicIssuanceModule`, the `SetTokenIssued` event always [sets the `_hookContract` variable to zero](https://github.com/SetProtocol/set-protocol-v2/blob/b8286f431547823ff3935a1343cd4cf4d77585a1/contracts/protocol/modules/BasicIssuanceModule.sol#L111), even if the hook exi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Rewards cannot be withdrawn
### Description
The rewards for a recipient in `IncentiveDistribution.sol` are stored in the storage mapping indexed by recipient `accruedReward[recipient]` and the recipient is the actual margin trader account, see `updateAccruedReward`.
These rewards are supposed to be withdrawn... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | access-control | false | false | ## High: Test Coverage
### Description
**Update**
Marked as "Mitigated" by the client. Addressed in: `e7385ab69b497f3fe6a410a1634ae413ffb9e623`, `be5849999593bfd0a2168b25b7b58883753f738c`, `64bb8c29e3b8316e175a02a110cd39a39ae43a88`, `eed6cc929803ed167dccfcde75b5f07deba1dd25`, `68ec5e9eacdc49ff895f991f6ed62713cf786740`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: The function swaptovariable() is missing in l2pool
### Description
The function `swapToVariable()` allows a borrower to swap their debt between stable and variable modes.
According to the Aave documentation:
> Implementation-wise, this adds a `swapToVariable()` function in the Aave pool, allowing any address ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | true | false | ## Low: 3S-LENFT-L04 Trading/TradingPool.sol: track totalProtocolFee instead of totalFee
### Description
On the TradingPool contract, the buy() and sell() functions use the following logic for the protocol fee:
```solidity
function buy()
for (uint i = 0; i < nftIds.length; i++) {
fee = spotPrice * fee;
protocolFee = f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | high | upgrade | true | true | ## High: The previous milestone stem should be scaled for use with the new gauge point system which uses untruncated values moving forward
### Description
Within the Beanstalk Silo, the milestone stem for a given token is the cumulative amount of grown stalk per BDV for this token at the last `stalkEarnedPerSeason` 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 | false | false | ## Low: Insufficient Validation Checks in Furo Contracts
### Description
This is a list of parameter checks that appear to be missing and may benefit the contract if added.
- **FuroStream.createStream()**
- amount has no zero check.
- recipient has no zero check.
- token has no zero check.
- **FuroStream.wit... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Global variables can be declared as immutable
### Description
Throughout the contracts, several state variables are set in the constructor and never updated again. They could be declared as immutable to save gas.
The `immutable` keyword was added in Solidity in `0.6.5`, where state variables can be marked... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Router.getOrCreatePoolAndAddLiquidity` can be frontrunned which leads to price manipulation
### Description
`Router.getOrCreatePoolAndAddLiquidity` can be frontrunned which allows the setting of a different initial price.
### Proof of Concept
When new Pool is created, it is already initialized with activ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | true | false | ## Medium: `wrapNativeTokenInWallet()` always reverts on Arbitrum
### Description
`VaultLogic.wrapNativeTokenInWallet()` is used in a number of places
It's mainly used to store `msg.value` into `WETH` and then transfer it to `msg.sender`.
The token transfer is done using the `transferFrom` method. This works fine 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 | token | true | false | ## Medium: redeemFutureEpoch transfers the shares from the msg.sender to the vault instead of from the owner
### Description
`redeemFutureEpoch` transfers the vault shares from the `msg.sender` to the vault instead of from the owner.
### Recommendation
The 1st parameter passed to the `ERC20(address(this)).safeTransfe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Attackers can cause slashing to become economically infeasible
### Description
The slash function takes a single address as a parameter, alongside the amount to be slashed. When a significant number of users needs to be slashed, the slash function must be called for each address individually. This approach 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 | overflow | true | false | ## Low: Missing validation in multiple StakingLedger methods
### Description
The staking ledger is used to keep track of the total amount of staked funds in the system. It is updated in response to cross-consensus messaging (XCM) requests to the parent chain (either Polkadot or Kusama). A number of the `StakingLedger`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | token | true | false | ## High: User can get free entries if the price of any whitelisted ERC20 token is greater than the round's `valuePerEntry`
### Description
Lack of explicit separation between ERC20 and ERC721 deposits allows users to gain free entries for any round given there exists a whitelisted ERC20 token with price greater than 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: Owner Not Assigned As Operator Inside delegateBeneficiary
### Description
**Severity** - Low
**Status** - Invalid
**Description**
Inside NodeOperations.sol the function delegateBeneficiary should assign the owner as the operator according to the comment at L83 . But this is not done , we only assign the ow... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use scientific notation (e.g. `1e18`) rather than exponentiation (e.g. `10**18`)
### Description
While the compiler knows to optimize away the exponentiation, it's still better coding practice to use idioms that do not require compiler optimization, if they exist.
*There is 1 instance of this issue:*
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 | high | initialization | true | false | ## High: Lack of `lastMintedPeriod` update allows unlimited minting of Kitten
### Description
`Minter.updatePeriod()` is meant to mint Kitten tokens for the `RebaseReward` and `Voter` contracts once per period. However, this function misses updating the `lastMintedPeriod` variable. As a result, once the first period 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 | high | oracle | false | false | ## High: Trusted node participation risk and potential client “optimizations” ✓ Fixed
### Description
The system might end up in a stale state with minipools never being `setWithdrawable` or network and prices being severely outdated because trusted nodes don’t fulfill their duty of providing oracle values. Minipools ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Funding Rate calculation is not correct
### Description
According to the docs, the Funding Rate is intended to correspond to the gap between long and short positions that the Float Pool is required to make up. However, as its implemented, the `totalFunding` is calculated only on the size of the overbalanced... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `updateEpochId` gas optimization
### Description
The `updateEpochId` modifier is intended to keep the `lastEpochId` value up to date, modifying it on demand. This value is changed rarely; however, the current implementation updates it every time it is called. This results in more gas being spent on the SSTOR 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 | high | oracle | true | false | ## High: Unable to withdraw Kerosene from `vaultmanagerv2::withdraw` as it expects a `vault.oracle()` method which is missing in Kerosene vaults
### Description
`VaultManagerV2` has one `withdraw` function responsible for withdrawing both exogenous collateral (weth/wsteth) and endogenous collateral (Kerosene). 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 | low | other | true | false | ## Low: Improper Withdrawal Fee Calculation Formula
### Description
## Withdrawal Fee Calculation
`withdraw_mod` handles the withdrawal fee calculation. To determine the withdrawal fee amount, the intended formula should utilize the following:
This formula decreases the withdrawal fee proportionally over time. Howe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: HTTP Request May Lead To Request Smuggling
### Description
## Security Vulnerability Overview
`api.easy.me` allows HTTP POST requests with a `Content-Length: 0` (CL) header. This configuration may create a discrepancy between the front-end and back-end servers, which can result in vulnerabilities that an atta... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Initial Deposit | false | false | Source: https://github.com/sherlock-audit/2022-10-mycelium-judging/tree/main/029-M
## Found by
ctf\_sec, Lambda, CRYP70, 8olidity, bin2chen, hansfriese, innertia, dipp, rbserver, CodingNameKiki, WATCHPUG
## Summary
The attacker can frontrun the first depositor's `deposit()` transaction and transfer LINK tokens to ... | Sherlock | 3 | Mycelium |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Protected_handleIdentityLogin - Unchecked withIdentityId ✓ Fixed
### Description
`protected_handleIdentityLogin` is used to create a new session and logs in to a particular origin (e.g., a website). At a certain point, a new session object is created, where `identityId: body.withIdentityId` is set. The `wit... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Only allow execution if value parameters match `msg.value` to prevent eth remaining in the `EthenaTimelockController` contract
### Description
`EthenaTimelockController::execute` and `executeWhitelistedBatch` allow execution without checking that the `msg.value` is equal to the input `value`/`values` parameter... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | false | false | ## Medium: `Market::forceReplenish` can be DoSed
### Description
[Market.sol#L562](https://github.com/code-423n4/2022-10-inverse/blob/main/src/Market.sol#L562)
If a user wants to completely `forceReplenish` a borrower with deficit, the borrower or any other malicious party can front run this with a dust amount to pre... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: [04]
### Description
`L2_LOG_BYTES` is not correct, it should be `L2_TO_L1_LOG_SERIALIZE_SIZE`
[Config.sol#L19](https://github.com/code-423n4/2022-10-zksync/blob/456078b53a6d09636b84522ac8f3e8049e4e3af5/ethereum/contracts/zksync/Config.sol#L19) | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redundant reentrancy protection
### Description
Several functions in the vault factory contract are protected with a reentrancy guard. It is not
clear why this guard is required, so it would be best to re-consider uses of the reentrancy
guard in several of the contracts. Specifically, consider when an attack... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fighter created by `mintFromMergingPool` can have arbitrary weight and element
### Description
* Fighter created by mintFromMergingPool can have arbitrary weight and element like 0 or 2**256 - 1
* Invalid weight and element could greatly affect AI Arena battles.
### Proof of Concept
When someone... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Casts
### Description
The following are instances of unnecessary casting, which can reduce code readability:
- **src/libraries/BaseQuoter.sol**, line 36: In the expression `address(Ownable(address(registry)).owner())`, the `owner()` function is already returning type `address`, so the final cast 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: [40] Using `debugLog` in gas calculations leads to an artificially increased value
### Description
### Impact
In [bootloader, function `debugLog`](https://github.com/code-423n4/2023-10-zksync/blob/1fb4649b612fac7b4ee613df6f6b7d921ddd6b0d/code/system-contracts/bootloader/bootloader.yul#L3277C1-L3281C14) does 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... | solodit_api | medium | other | true | true | ## Severity
**Impact:** Medium
**Likelihood:** Medium
## Description
In the `_vote` function of the `Voter` contract, if the provided `_poolVote` array contains invalid pools, the calculation of `_totalVoteWeight` still uses the sum of all `weights`. This can lead to inefficient weight allocation and potential loss... | Pashov Audit Group | 5 | KittenSwap_2025-05-07 |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incomplete Recovery Process Due to Missing Validator Attachment
### Description
The `SsoAccount` contract allows for the configuration of a guardian through the `GuardianRecoveryValidator` contract. This setup enables the guardian to initiate a recovery process aimed at regaining control of the account by 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 | other | true | false | ## Medium: A successful challenge may force the Maker to lose all tokens
### Description
## Data Validation
**Type:** Data Validation
**Target:** Datatrust
**Difficulty:** Medium
When a successful challenge is resolved, it forcibly removes the listing and burns the associated tokens, without giving the listin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Avoid contract existence checks by using low level calls
### Description
Prior to 0.8.10 the compiler inserted extra code, including `EXTCODESIZE` (**100 gas**), to check for contract existence for external function calls. In more recent solidity versions, the compiler will not insert these checks if the exter... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 code, logic, checks and misnamed variables
### Description
There are redundant checks, code, and misnamed variables throughout the codebase. Either remove or improve all of them. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | true | false | ## Low: Limited veRaac Token Supply Triggers DoS, Hampering Proper Governance Participation.
### Description
In the `veRAACToken` contract, there is an external, non-reentrant, and pausable function called `lock`. This function locks `raacTokens` and issues a proportional amount of `veRaacTokens`. It enforces several ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Guardian can override owner's emergency pause
### Description
The contract implements symmetric `pause/unpause` powers between the owner and guardians, allowing guardians to unpause the contract even when the owner intentionally paused it for security or operational reasons. This creates an authority hierarchy... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong comment
### Description
The function description and return values are incorrectly copied from another function
*There is 1 instance of this issue:*
https://github.com/code-423n4/2022-07-golom/blob/e5efa8f9d6dda92a90b8b2c4902320acf0c26816/contracts/rewards/RewardDistributor.sol#L252-L256 | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Swaps are available for `MarginAccounts` undergoing liquidation
### Description
**Severity**
**Impact:** Medium
**Likelihood:** High
**Description**
`MarginTrading.redCoeff` and `MarginTrading.yellowCoeff` are used to determine whether a `MarginAccount` is in a state of liquidation. If an account is under... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A malicious staker can delay the increase of any delegator's voteWeight as much as he wants
### Description
**Description:** When a staker delegates his balance to a delegator, the time duration variable `_weights[delegate].stakeTime` is decreased. However, when undelegating only the balance is decreased. 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 | logic | true | false | ## High: Incorrect Calculation of User Shares in startUnwinding
### Description
The `startUnwinding` function in `LockingController` calculates user shares using the `balanceOf` function instead of using the provided `_shares` parameter. If residual or accidental shares are transferred to the gateway, the computed `us... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | cross-chain | false | false | ## Medium: No method to withdraw stuck ETH
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
In Contract `TradableSettingsMessageAdapter`, there is no method to withdraw the stuck ETH in case this contract is not used anymore.
This contract will have ETH as it will be used for paying fees ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `rewardData.releaseRate` is incorrectly calculated on `RewardsController::config()` when `block.timestamp > start` and `rewardData.lastConfig != rewardData.start`
### Description
Setting new parameters in `RewardsController::config()` will lead to lost rewards if `block.timestamp > start` and the `rewardDat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `onBalanceChange` causes previously unclaimed rewards to be cleared
### Description
`onBalanceChange` does not help to claim the previous rewards, but directly resets `userFeeOffset`, causing the user's unclaimed rewards to be cleared.
### Proof of Concept
The above POC shows that when a user purchases t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | storage | false | false | ## High: Incorrect Remainder Allocation in Market-Only Orders
### Description
This issue has been identified within the `_placeOrder` function of the `ProxyLOB` contract.
When `marketOnly` is set to `true` the order is not included into `IOnchainTrie` within the `IOnchainLOB.placeOrder`, but the code still calculate... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Function mutability can be restricted
### Description
**Description**
RUSD.sol:52, _verifyNetworkRegistry()
Function mutability can be restricted to view. Since there are no state changes, view mutability
will decrease gas usage.
**Recommendation**:
Restrict mutability to “view”. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Loan duration can exceed the end of the next epoch
### Description
Loan duration can exceed the end of the next epoch, which deviates from the protocol specification.
### Impact
The implementation does not adhere to the spec: Loan duration can exceed the end of the next epoch, which breaks protocol specifi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Use of Block.timestamp
### Description
Block timestamps have historically been used for a variety of applications, such as entropy for random numbers (see the Entropy Illusion for further details), locking funds for periods of time, and various state-changing conditional statements that are time-dependent. Min... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No lower bound checks in setRiskyThresHR
### Description
The variable `riskyThresHR` is utilized to forcefully cancel user orders when the health ratio falls below an established value. This value corresponds to \( H_c \) as described in the Boros research paper, which is used by the cancel bot \( B_c \). Furt... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | true | false | ## Low: Overflow Check
### Description
There is a risk of accidentally releasing a debug version where overflow behavior might differ from the release version. Thus, using explicit overflow checks in `settle_reward` for the calculation of `user_amount_gain` will help mitigate this risk.
### Code Snippet
### Remedia... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Floating pragma
### Description
**Severity** - Informational
**Status** - Resolved
**Description**
The contract uses pragma solidity ^0.8.27.
This may result in the contracts being deployed using the wrong pragma version, which is different from the one they were tested with.
**Recommendation**
It is rec... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redundant require/revert
### Description
In `SignatureValidator.recoverAddrImpl()` it is first checked that `require(modeRaw < uint8(SignatureMode.LastUnused), 'SV_SIGMODE');` (`SignatureValidator.sol#L49`). This ensures that `SignatureMode mode = SignatureMode(modeRaw);` will be one of the available signature... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Stakers can actively abuse rate changes to maximize rewards unfairly
### Description
_Acknowledged_
The global `rate` variable can be changed by the owner, but stakers can actively abuse this by timing their reward claims strategically around rate changes. When calculating rewards, the current rate applies 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 | true | false | ## Low: The `purchase()` function uses an additional parameter
### Description
**Severity**: Informational
**Status**: Acknowledged
**Location**: LiquidityFreeLaunch.sol
**Description**:
The function `purchase()` function uses `_amountIn` parameter to specify the amount of ETH to send via the function. But this ca... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: Fee-On-Transfer Tokens Are Not Supported
### Description
Description
Certain tokens are not supported in WrappedERC20Asset.sol , for example fee-on-transfer tokens, since the deposit()
function does not check balance before and after the transfer to ensure the amount received is not reduced.
Recommendations
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 | overflow | true | false | ## Low: User deposits can be burned
### Description
The `burn` function has the potential to burn tokens deposited by users into the "depository" address. This unintended behavior can result in the loss of user funds, undermining trust and integrity in the contract.
Besides, if tokens are burned incorrectly, the user... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Risk of silent overflow in reserves update
### Description
### Vulnerability details
The [`buy()`](https://github.com/code-423n4/2023-04-caviar/blob/main/src/PrivatePool.sol#L211) and [`sell()`](https://github.com/code-423n4/2023-04-caviar/blob/main/src/PrivatePool.sol#L301) functions update the `virtualBase... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: More rewards than it should be when MONT price is low
### Description
The MONT rewards are calculated given this formula:
```solidity
function transferPlayerRewards(...) external returns (uint256 reward) {
...
uint256 price = getMontPrice();
uint256 houseFeeFixedPoint = houseFee * 1e18;
reward = ((... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect refund address during repay
### Description
The [`repay` function](https://gitlab.com/aave-tech/dlp/contracts/blob/1f8e5e65a99a887a5a13ad9af6486ebf93f57d02/contracts/lendingpool/LendingPool.sol#L329) allows repayment of a loan on behalf of other accounts. In a scenario where the caller overpays Et... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing checks allow strategists to steal all fund via tailOff
### Description
## Lines of code
https://github.com/code-423n4/2022-05-rubicon/blob/8c312a63a91193c6a192a9aab44ff980fbfd7741/contracts/rubiconPools/BathPair.sol#L533-L563
https://github.com/code-423n4/2022-05-rubicon/blob/8c312a63a91193c6a192a9... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Stakers lose their commission if they unstake as they cannot claim their pending rewards anymore after unstaking
### Description
Once a staker unstakes or gets removed, they permanently lose access to all their accrued commissions.
This is a problem as it can either happen mistakenly or if the staker gets ... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.