prompt listlengths 2 2 | source stringclasses 3
values | severity stringclasses 5
values | category stringclasses 186
values | has_code bool 2
classes | has_poc bool 2
classes | reference_response stringlengths 23 5k | firm stringclasses 26
values | quality_score float64 0 5 | protocol stringclasses 398
values |
|---|---|---|---|---|---|---|---|---|---|
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Inability to remove and redeem from vaults with withdrawal issues could result in a bank-run
### Description
**Description:** When deposits are made to the `pUSDeVault`, `depositedBase` is incremented based on the previewed quote amount of USDe underlying the external ERC-4626 vaults; however, these instantane... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing KYC and NFT Ownership Verification for Ecosystem Access
### Description
The lack of contract-level KYC and NFT verification allows unverified users to interact with restricted features, bypassing the platform’s intended access controls. Adding these verifications at the contract level would reinforce ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent NatSpec Documentation and Insufficient Test Coverage
### Description
Several instances in the codebase exhibit inconsistencies in NatSpec documentation and demonstrate incomplete test coverage. Accurate NatSpec comments are critical for clear and precise contract documentation, aiding developers a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Early Return Prevents Stake
### Description
## Security Vulnerability Report
## Issue Overview
The early return condition in `native_pool::stake_pool` may be exploited to withhold the staking of pending funds by retaining the `UnstakeTicket` objects.
## Remediation
The Volo team’s response clarifies 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 | gas | other | true | false | ## Gas: Bounty can use `lastKnownMultiplier` instead of `multiplier()` to save gas
### Description
When `fulfillBounty()` is called, we update the inflation of the vault and then get the tracked multiplier:
This `multiplier()` function performs a lot of work to generate the returned value. However, because `tryInflat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Base rate may decay at a slower rate than expected
### Description
The base rate is used to calculate fees for redemptions and new issuances of debt, and its value decays over time and increases based on redemption volume.
On redemption, the decay on the base rate is calculated based on the number of minut... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Rename functions ✓ Addressed
### Description
The naming of the functions should reflect their nature, such as functions starting with “get” should be only getters and do not change state. This will result in confusion developments and the implicit state changes might not be noticed.
Other than getters, 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 | initialization | false | false | ## Low: Lack of Input Validation
### Description
**Update**
Marked as "Fixed" by the client. The problem is fixed by following the recommendation. Addressed in: `8ccb7b223ccb7828d6071eff27bf55bdfc029df0`.
**File(s) affected:**`FundLock.sol`, `FundLockGateway.sol`, `FundLockExecutable.sol`, `TokenValidator.sol`, `Axel... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 input validation could result in an insolvent vesting plan
### Description
During the creation of a vesting plan, the `create` function, which can be called by anyone, currently lacks validation for the accuracy of the following arguments: `_start_at_sec`, `_end_at_sec`, `_initial_amount` and `_total_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: The `dispatch` function of the `VaultRouter`, does not work as intended, with `PULL_TOKEN` action
### Description
### Finding description and impact
The `dispatch` function of the `VaultRouter` contract handles the execution of actions from the `MultiCommand.execute` call.
Actions are encoded as follows (R... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Prefer`Ownable2Step` instead of `Ownable`
### Description
**Description:** Prefer [Ownable2Step](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable2Step.sol) instead of `Ownable` for [safer ownership transfer](https://www.rareskills.io/post/openzeppelin-ownable2step).
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | true | false | ## Medium: When a private vault offers a loan in ERC777 tokens, the private vault can refuse to receive repayment in the safeTransferFrom callback to force liquidation of the borrower's collateral
### Description
When the borrower calls LienToken.makePayment to repay the loan, safeTransferFrom is used to send tokens 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 | storage | true | false | ## Low: Missing checks for `address(0x0)` when assigning values to `address` state variables
### Description
*There are 5 instances of this issue:*
https://github.com/code-423n4/2022-08-nounsdao/blob/45411325ec14c6d747b999a40367d3c5109b5a89/contracts/governance/NounsDAOLogicV1.sol#L605
https://github.com/code-423n4... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Remove deprecated collision hash and proof hash from function calls
### Description
**Description:** Colllision hash when registering users and proof hash when registering attributes have been deprecated; remove them from function interfaces.
Also in `RegistryServiceDataStore` add comments alongside `Attribut... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | false | false | ## Low: Outdated Solidity version.
### Description
**Description**
Currently the protocol utilizes Solidity version 0.5.17, 0.6.7, . It works well, though the general
auditors security checklist recommends to utilize the newest stable version of Solidity which is
0.8.11. The newest version of Solidity includes last o... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | Validation | true | false | ## Severity: Medium Risk
## Context
- MarketsManagerForAave.sol#L125-L130
- PositionsManagerForAaveLogic.sol#L24-L42
- RewardsManagerForAave.sol#L63-L66
- SwapManagerUniV2.sol#L54-L70
- SwapManagerUniV3.sol#L58-L85
- SwapManagerUniV3OnEth.sol#L65-L87
## Description
Contract initialize/constructor input parameters sho... | Spearbit | 4.5 | Morpho |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Merk trunk splitting can lead to panics on degenerate trees
### Description
If the Merk AVL tree becomes extremely skewed, all nodes attempting to use state sync to synchronize with the blockchain will panic.
Merk restores its AVL Merkle tree from a snapshot in two steps. The first chunk of the snapshot is 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 | high | oracle | true | false | ## High: Users' funds could be stolen or locked by malicious or rouge owners
### Description
Users' funds could be stolen or locked by malicious or rouge owners.
### Impact
Users' funds could be stolen or locked by malicious or rouge owners.
### Recommendation
Consider implementing the following measures to reduce 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 | dos | false | false | ## Low: Insufficiently bounded loop when repricing swETH
### Description
There is a loop in the function `reprice()` that does not have sufficient bounds check and may cause an out of gas revert. When `swETH.reprice()` is called, it loops through all registered validators in `nodeOperatorRegistry` and mints rewards 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... | cyfrin_structured | low | other | false | false | ## Low: Cooldown contracts underreport the real balance of users because they only consider the balance of requests whose cooldown period is over
### Description
Cooldown contracts underreport the real balance of users because not all active requests are accounted for; only those requests whose cooldown period has exp... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary event emission after replay of reporter invalidation
### Description
The sole reporter of the `UniswapAnchoredView` contract can be permanently invalidated calling the [`invalidateReporter` function](https://github.com/compound-finance/open-oracle/blob/d0a0d0301bff08457d9dfc5861080d3124d079cd/contr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: tracking introduces resource consumption related DOS
### Description
Blast introduces gas tracking so that developers have new ways to capture revenue. There are two forms of DOS that this might introduce:
1. **Gas Consumption**: This is mentioned in the notion document provided by the blast team.
2. **Node ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Account creation spam
### Description
Hermez has a limit of `2**MAX_NLEVELS` accounts. There is no fee on account creation, so an attacker can spam the network with account creation to fill the tree. An account can be created with either an L1 user transaction or an L1 coordinator transaction. The number of L1... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unclear variable names
### Description
The variable name `guy` is used frequently throughout the code. To favor explicitness and readability, we suggest renaming all instances of the variable `guy` to `trader` in [`Collateral.sol`](https://github.com/mcdexio/mai-protocol-v2/blob/4b198083ec4ae2d6851e101fc44ea33... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Cosigner can prematurely decay the order 's Dutch auction
### Description
The consigner fully controls the `decayStartBlock` variable, and its value can be set to a block in the past. This may lead to the filler matching the order at a worse price immediately, as the decay has already started. In the worst cas... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [08] Extreme edge case error results in user paying more fees than usual when user decides to mint little shTokens with low decimals tokens
### Description
*Note: At the judge's request [here](https://github.com/code-423n4/2023-11-shellprotocol-findings/issues/236#issuecomment-1858762123), this downgraded issu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: PaymentForwarder can be unhalted
### Description
The [Haltable contract](https://github.com/Storj/storj-contracts/blob/2bdeb27c0216d2f0889b6e7363d8a84b54cd7f39/contracts/Haltable.sol) is designed for the use case of halting a working contract in case of an emergency. This can be used, for example, to fix 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... | solodit_api | medium | Refund Ether | false | true |
<https://github.com/code-423n4/2022-11-stakehouse/blob/4b6828e9c807f2f7c569e6d721ca1289f7cf7112/contracts/liquid-staking/GiantSavETHVaultPool.sol#L137><br>
<https://github.com/code-423n4/2022-11-stakehouse/blob/4b6828e9c807f2f7c569e6d721ca1289f7cf7112/contracts/liquid-staking/GiantMevAndFeesPool.sol#L126>
Both giant ... | Code4rena | 4 | Stakehouse Protocol |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | true | false | ## Low: k-dss is out of sync with other repositories
### Description
k-dss provides klab specifications for an unspecified version of MCD. It is out of sync with the master branches of the repositories it verifies. The klab specification for `Flapper.kick` provided by the k-dss repo references a new version of the dss... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Consider removing redundant self transfer
### Description
The code snippet below can be removed from function `createAgent()` as it is self transferring the 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 | low | other | true | false | ## Low: [08] `ChangeAdmin` Does Not Check if `newAdmin` is the Same as the Current Admin
### Description
The ChangeAdmin function is used to change the administrator of a specific token denomination (denom).
However, this function does not verify whether the newAdmin is different from the current admin.
[ChangeAdmin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insufficient Logging Of Withdrawn Amount
### Description
## Milestone Withdrawal Issues and Remediation
In `VestingMilestone` and `SimpleMilestone`, the `withdraw` function enables the recipient to withdraw all remaining claimable amounts from their active milestone. The issue arises due to how the functio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | false | false | ## Low: Vaults that are over-collateralised after partial liquidation are possibly subject to further liquidations
### Description
If a vault becomes over-collateralised after a partial liquidation, it is still subject to further liquidation as the auction isn’t closed. The vault owner has to call `cancel()` himself, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | oracle-manipulation | true | false | ## Low: Signatures used in `PublicStockOnRamp` and `PublicStockOffRamp` lack investor-specified deadline and nonce parameters so can be used multiple times by operators
### Description
Both `PublicStockOnRamp` and `PublicStockOffRamp` contracts use EIP-712 signatures to authorize investor transactions. However, these ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TOFTOptionsReceiverModule will have the user lose the whole output TAP when requested to exercise all eligible options
### Description
TOFTOptionsReceiverModule's `exerciseOptionsReceiver()` will execute successfully, but lose (freeze permanently) all the output TAP amount of the user if being run with zero 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: No uint value input validation applied on methods
### Description
**Severity**: Low
**Status**: Resolved
**Description**
dpnm_sc.sol - in selldPNM No assurance that the value of BUSDamount should be non-zero value. Also, it will be safer to assure that dPNMprice is non-zero. Also, same applies to:
function... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | reentrancy | true | false | Source: https://github.com/sherlock-audit/2024-01-napier-judging/issues/83
## Found by
KingNFT, xiaoming90
## Summary
Anyone can convert someone's unclaimed yield to PT + YT, leading to a loss of assets for the victim.
## Vulnerability Detail
Assume that Alice has accumulated 100 Target Tokens in her account's un... | Sherlock | 5 | Napier |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: M05] Lack of event emission in the updateTo function
### Description
###### Medium
The function [`updateTo`](https://github.com/BeamNetwork/currency/blob/c0d8477866a8667a37f45c85378c5938c84569cd/contracts/currency/BeamBalanceStore.sol#L293) in the `BeamBalanceStore` contract can be called by any user to 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 | flash-loan | false | false | ## Medium: Flashloan users can be forced to pay higher fees than expected
### Description
[AlgebraPool.sol#L891-L949](https://github.com/code-423n4/2022-09-quickswap/blob/15ea643c85ed936a92d2676a7aabf739b210af39/src/core/contracts/AlgebraPool.sol#L891-L949)
The first swap of the block sets the fee that will apply 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 | storage | true | false | ## Low: Missing contract size check on implementation can result in _doProxyCall and _resolveImplemen-
### Description
When using `delegatecall`, account existence must be checked prior to calling; otherwise, the outer call will succeed while the target implementation contract's code was never executed. The function 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 | false | false | ## Medium: Asymmetric calculation of price difference
### Description
Price difference is calculated in 2 ways depending on whether `price > verified price` or not.
If `price > verified price`, this is the equation:
(price - verified price) / price
Otherwise price is calculated with this equation:
(verified pr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Inadequate handling of `BUIDL` redemption limit in `OUSG` instant manager
### Description
### Impact
The `OUSG` Instant Redemption Manager contract contains an oversight in its `redeem` function, specifically in the handling of `BUIDL` redemption limits. This oversight can potentially lead to failed redemp... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: implementation allows draining wallet funds by manipulating ownerIndex
### Description
Utilizing the ERC-6492 execution path where the signature initially fails, an attacker can drain any SmartWallet where this SpendPermissionManager contract is an owner.
### Recommendation
The most important component of 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 | signature | true | false | ## Low: Inconsistent handling of duplicate shares
### Description
The `utils::aggregate` function aggregates threshold and multisignature shares into combined signatures. The function groups artifact shares into a `BTreeMap` to map message content into a list of signature shares. For each message content, the function... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | Initialization | true | false | _Submitted by cmichel, also found by WatchPug_
Note that the `PoolTemplate.initialize` function, called when creating a market with `Factory.createMarket`, calls a vault function to transfer an initial deposit amount (`conditions[1]`) *from* the initial depositor (`_references[4]`):
```solidity
// PoolTemplate
functi... | Code4rena | 3 | InsureDAO |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Return values of `transfer()`/`transferFrom()` not checked and unsafe usage
### Description
*Note: This finding was reported via the winning [Automated Findings report](https://gist.github.com/code423n4/265e1707379b9a3f89cf18aa0bffcb7c). It was declared out of scope for the audit, but is being included here... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Controller: Strategy migration will fail
### Description
_Submitted by hickuphh3, also found by rayn_
[Controller.sol#L95](https://github.com/code-423n4/2022-04-jpegd/blob/main/contracts/vaults/yVault/Controller.sol#L95)
[StrategyPUSDConvex.sol#L266](https://github.com/code-423n4/2022-04-jpegd/blob/main/cont... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Use the `isETH` return value from `wfCashBase.getToken` instead of checking equality with `ETH_ADDRESS`
### Description
The `wfCashBase.getToken` returns `bool isETH` which can be used to figure out if the returned token is the native ETH token.
### Findings
[NotionalTradeModule.sol#L400-L403](https://github... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 spacing in comments
### Description
Some lines use `// x` and some use `//x`. The instances below point out the usages that don't follow the majority, within each file
*There are 27 instances of this issue:* | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | cross-chain | false | false | ## High: The Invariant `totalSlashableAmount < lockedAmountInBond` Is Not Enforced in the Code
### Description
**Update**
The client provided the following explanation:
I understand the risks involved, as we do not have a smart contract on L1, making it impossible to accurately manage and ensure that the trade amount... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Misleading error declaration
### Description
**Severity:** Informational
**Path:** bridgeConnectorRemoteSTG.sol
**Description:** The contract is declaring an error ZeroAddress() and using it in the function setAllocator()(L134-138), but that function doesn’t do a zero address check. Instead, it checks whethe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Refactor modifier to avoid two external calls when calling `setPublicSuffixList`
### Description
The `onlyOwner` modifier performs two external calls. In order to avoid these two calls everytime `setPublicSufficList` is called, we can perform these two calls in the constructor and create immutable variables fo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unbacked Deposits In Stake Pool
### Description
## Vulnerability in Deposit Instruction
The vulnerability in the deposit instruction occurs when the `deposit_sol` flag is false. When `deposit_sol` is false, the code does not execute any logic to transfer tokens from the staker’s account to the stake pool. De... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Code Refactoring
### Description
## Code Refactoring Proposal
## Changes
1. In the function `unstake_approx_n_sui_from_inactive_stake`, there is a condition that checks if the `staked_sui_amount` is less than or equal to the `target_unstake_sui_amount` plus a small buffer (`MIN_STAKE_THRESHOLD`). It is recom... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Smart contract owner is able to override CryptoBearWatchClub NFT reward amounts in the Smart contract Arkouda after their purchase.
### Description
**Description**
Arkouda.sol, setTokenIdReward
**Recommendation**:
Define rewards for NFT based on their tier level during purchase and revoke Smart contract
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 | initialization | false | false | ## Low: Inefficient Placement of amountSupply check
### Description
In the `LenderBlueprint` contract, the `_initialSupplyPrimitive` function performs a validation on `amountSupply_` only after several other checks and logic have been executed. The `amountSupply_` check verifies that the supplied amount is greater tha... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | logic-error | true | false | ## Medium: Shared configuration parameters across different asset types in vault deployers leads to incorrect pricing and fee calculations
### Description
The `VaultDeployer` and `SecuritizeVaultDeployer` contracts maintain shared configuration parameters (`navProvider`, `feeManager`, `redemptionAddress`) that are app... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TODO comments should be resolved
### Description
There are multiple TODO comments - https://github.com/cryptoalgebra/Algebra/blob/6f57b3e218630106a4d41aedefd38f9e83b41e2b/src/farming/contracts/farmings/AlgebraEternalFarming.sol#L169, https://github.com/cryptoalgebra/Algebra/blob/6f57b3e218630106a4d41aedefd38f9... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: State variables saleOpen & presaleOpen of Smart Contract CryptoBearWatchClub are allocated to regulate current state of contract.
### Description
**Description**
CryptoBearWatchClub.sol, saleOpen & presaleOpen
**Recommendation**:
use one state variable to indicate current phase, e.g. state variable with ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Queued transactions cannot be canceled
### Description
The Governor contract contains special functions to set it as the admin of the Timelock. Only the admin can call `Timelock.cancelTransaction`. There are no functions in Governor that call `Timelock.cancelTransaction`. This makes it impossible for `Timeloc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Risk of read-only reentrancy via Balancer pools
### Description
The internal `_withdraw` method passes execution control to an arbitrary user account while sending native tokens. Although all state-modifying methods of the SonicStaking contract feature robust reentrancy protection, the `getRate` method can 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 | medium | token | false | false | ## Medium: Protocol is completely incompatible with USDT due to lack of 0 approval
### Description
USDT will revert if the current allowance is greater than 0 and an non-zero approval is made. There are multiple instances throughout the contracts where this causes issues. In some places this can create scenarios where... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | token | true | true | ## High: Attackers can steal tokens and break the protocol's invariant
### Description
The protocol exposes an external function `Well::swapFrom()` which allows any caller to swap `fromToken` to `toToken`.
The function `Well::_getIJ()` is used to get the index of the `fromToken` and `toToken` in the Well's `tokens`.
B... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | false | false | ## Gas: Caching storage values in memory
### Description
The code can be optimized by minimizing the number of SLOADs.
SLOADs are expensive (100 gas after the 1st one) compared to MLOADs/MSTOREs (3 gas each). Storage values read multiple times should instead be cached in memory the first time (costing 1 SLOAD) and th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: xRex token is not added to rewards in GaugeV3.sol
### Description
xRex is a default reward token which is meant to be distributed via GaugeV3 along with Rex. However, the `GaugeV3.initialize()` function only adds pool tokens to rewards:
```solidity
rewards.push(token0); // «<
rewards.push(token1); // «<
(isRe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unprotected event emission functions
### Description
In the contract, we can see two functions that just emit `DepositClaimable` / `RedeemClaimable` events with parameters received from the call. By doing this, anyone can just emit fraudulent events or can DoS the off-chain infrastructure by emitting a very... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | token | true | false | ## High: `GovPool::delegateTreasury` does not verify transfer of tokens and NFTs to delegatee leading to potential voting manipulation
### Description
`GovPool::delegateTreasury` transfers ERC20 tokens & specific nfts from DAO treasury to `govUserKeeper`. Based on this transfer, the `tokenBalance` and `nftBalance` 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: Compute Budget Limit
### Description
## MerkleTree::verify Issue
The current implementation of `MerkleTree::verify` fails to account for the compute budget limit during loop execution.
## Code Snippet
## Remediation
Divide the proof verification into multiple calls, similar to the approach already used fo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Refund contribution and pending balance in the same call
### Description
[Link to code](https://github.com/code-423n4/2022-12-tessera/blob/f37a11407da2af844bbfe868e1422e3665a5f8e4/src/modules/GroupBuy.sol#L264-L268) | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | logic | true | true | ## Low: cumulativeAmount0 can be greater than the cumulative amount computed through inverse functionality for certain LDFs
### Description
The cumulative amount of token0, when computed through different methods, can vary for certain types of LDFs, leading to incorrect calculations of liquidity densities for token0. ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Consider inheritance of openzeppelin ERC20.sol contract on WERC721.sol
### Description
The WERC721.sol contract acts as an extended ERC20.sol contract. The basic functionalities have been implemented without using the current standard from OpenZeppelin. Although there has not been any security identified issue... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Cache array length outside of loop
### Description
If not cached, the solidity compiler will always read the length of the array during each iteration. That is, if it is a storage array, this is an extra sload operation (100 additional extra gas for each iteration except for the first) and if it is a memory ar... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | false | false | ## Low: Liquidation Price Viewer Stops Functioning for Deactivated Buckets
### Description
**Update**
The team clarified that the function we pointed out (`PrimexLens.getLiquidationPrice()` with 5 inputs) is only intended to be used _before_ opening a position. Once the position is opened, another function `getLiquida... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: price feed's sanity checks isn't correct in function `RewardsDistributor.amountToCompound`
### Description
Report type: Smart Contract
Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/RewardsDistributor.sol
Impacts:
- Protocol insolvency
## Description
## Brief/Intro
The timestamp ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Tautology and Boolean Equalities
### Description
In the contract `SPCTPool`, a tautology expression was detected because it is checking an unsigned integer (`uint256`) is greater than 0. Such expressions are of no use since they always evaluate to true regardless of the parameters they receive.
```
function r... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | false | false | ## Low: Upgradability
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> Will communicate to user in the future for any upgrades.
**File(s) affected:**`wstTAO.sol`, `wstTAOProxy/sol`
**Description:** While upgradability is not a vulnerability in itsel... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Using `> 0` costs more gas than `!= 0` when used on a `uint` in a `require()` statement
### Description
This change saves **[6 gas](https://aws1.discourse-cdn.com/business6/uploads/zeppelin/original/2X/3/363a367d6d68851f27d2679d10706cd16d788b96.png)** per instance. The optimization works until solidity version... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Beacon chain withdrawals that occur at lastwithdrawaltimestamp will be lost
### Description
ETH withdrawn from the Beacon Chain is retrieved from the EigenPod by calling the `withdrawBeforeRestaking` function before restaking is activated. To activate restaking, the `activateRestaking` function is called, whi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Make `MuteAmplifier` variables immutable when possible
### Description
Gas saved: up to 20K per tx
The following variables can be immutable:
* `lpToken`
* `muteToken`
* `dToken`
* `_stakeDivisor`
* `management_fee`
* `treasury` | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | true | false | ## Medium: Margin call uses stale edge price
### Description
**Description:** The `check_long_margin_call` and `check_short_margin_call` functions determine whether positions should be liquidated based on edge prices retrieved from the price trees before applying funding rate updates and rebalancing. This causes posit... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Missing Event Emission in setOperator
### Description
**Severity**: Low
**Status**: Resolved
**Description**
The setOperator function in ChestRewards allows the owner to change the operator address:
However, the function does not emit an event to log the change of the operator. Event emissions are crucial f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | signature | false | false | ## High: Signature Replay
### Description
**Update**
The client fixed the issue in commit `ca190112e3f1651680f8330f808100b95b11b239`. The functions `distribute()`, `agentDistribute()`, and `refund()` now all mark a digest as used. As these actions are processed, it is enforced that the hash of the parameters (e.g., `p... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Limits in `getMinimumEligibleReferralsFactorCalculation` should be inclusive
### Description
https://github.com/code-423n4/2023-03-wenwin/blob/main/src/ReferralSystem.sol#L111-L130
The [protocol documentation](https://docs.wenwin.com/wenwin-lottery/protocol-architecture/token/rewards/referrals#referrers-allo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Gas: Usage of `uints`/`ints` smaller than 32 bytes (256 bits) incurs overhead
### Description
> When using elements that are smaller than 32 bytes, your contract’s gas usage may be higher. This is because the EVM operates on 32 bytes at a time. Therefore, if the element is smaller than that, the EVM must use more o... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Unused Error Codes.
### Description
SocketErrors.sol has errors that are defined but are not used:
* `error RouteAlreadyExist();`
* `error ContractContainsNoCode();`
* `error ControllerAlreadyExist();`
* `error ControllerAddressIsZero();`
It seems that they were created as errors that may have been expecte... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of proper bound handling for solstat functions
### Description
The use of unchecked assembly across the system combined with a lack of data validation means that obscure bugs that are difficult to track down may be prevalent in the system. One example of unchecked assembly that could result in bugs is the `... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: Potential Blockage of Funds if Terminated Before Vesting Start
### Description
This issue has been identified in the `getVestedTokenAmount` function of the [RestrictedTokenAward](https://github.com/MetaLex-Tech/MetaVesT/blob/b614405e60bce8b852e46d06c03fd47b04d86dde/src/RestrictedTokenAllocation.sol#L201) cont... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Test Code Mixed with Production Code
### Description
**Update**
Fixed in commit [ef41230](https://github.com/blex-dex/contracts/commit/ef41230) by removing the test-related lines, as suggested.
**File(s) affected:**`./contracts/vault/CoreVault.sol`, `./contracts/vault/VaultReward.sol`
**Description:** For se... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Using unchecked blocks to save gas
### Description
Solidity version `0.8+` comes with implicit overflow and underflow checks on unsigned integers. When an overflow or an underflow isn’t possible (as an example, when a comparison is made before the arithmetic operation), some gas can be saved by using an unchec... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | token | true | false | ## Low: Refund address in `bridgeDSTokens` function should be configurable
### Description
In the `SecuritizeBridge::bridgeDSTokens` function, `msg.sender` is assigned as the refund address.
```solidity
// Send Relayer message
wormholeRelayer.sendPayloadToEvm{value: msg.value} (
targetChain... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | false | false | Source: https://github.com/sherlock-audit/2023-03-olympus-judging/issues/48
## Found by
chaduke, cducrest-brainbot
## Summary
The function `setLimit()` may not be able to sufficiently restrict mint ability of manager.
## Vulnerability Detail
The `setLimit()` function reverts when `newLimit_ < deployedOhm`, mintO... | Sherlock | 4 | Olympus Update |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The value from `storage` is used instead of `memory`
### Description
There is a place in the code where the value from `storage` is used instead of a copy of the exact same value in the `memory`: https://github.com/lidofinance/core/blob/efeff81c18f85451ebf98e8fd8bb78b8eb0095f6/contracts/0.8.9/sanity_checks/Ora... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Some functions of `Goldilend` will revert forever.
### Description
**Severity:** High
**Description:** `Goldilend.multisigInterestClaim()/apdaoInterestClaim()/sunsetProtocol()` will revert forever because they doesn't withdraw `ibgt` from `ibgtVault` before the transfer.
As `ibgtVault` has all `ibgt` of `G... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Define util functions to refactor logic
### Description
In the above context, initial and final balances of input and output tokens are calculated as:
```solidity
uint256 balanceInInitial = tokenIn == NATIVE_ADDRESS ? address(this).balance : IERC20(tokenIn).balanceOf(msg.sender);
```
```solidity
uint256 balan... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Business Logic | false | true |
In [contracts/HolographOperator.sol#crossChainMessage](https://github.com/code-423n4/2022-10-holograph/blob/main/contracts/HolographOperator.sol#L484-L539), each Operator is selected by:
* Generating a random number ([L499](https://github.com/code-423n4/2022-10-holograph/blob/main/contracts/HolographOperator.sol#L4... | 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 | low | other | true | false | ## Low: SEASONFACET.INCENTIVIZE EXPONENTIAL INCENTIVE LOGIC IS NOT WORKING
### Description
In the `SeasonFacet` contract, the `incentivize()` function is used to send some Beans to the user that successfully called `sunrise()` to start a new season:
### Recommendation
**SOLVED**: The `Beanstalk team` corrected the 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: Wrong bytes in comment
### Description
While declaring [`SafeHelper._FALLBACK_REMOVAL_CALLDATA_HASH`](https://github.com/code-423n4/2023-10-brahma/blob/main/contracts/src/libraries/SafeHelper.sol#L44):
This is not correct, `abi.encodeCall(IGnosisSafe.setFallbackHandler, (address(0)))` is in fact:
The hash ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## High: Migration will fail trying to swap 1 wei of tokens to reach the target price
### Description
When the code wants to migrate tokens to Uniswap V3 pool, first it tries to change the pool's price by adding temporary liquidity and performing a swap in `_adjustPoolPrice()`:
```solidity
uint256 tmpLPTokenId =
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 actor can prevent migration by calling a non-existing function in `OVM_L2ToL1MessagePasser` and making `ReadWitnessData` return an error
### Description
There is a mismatch between collected witness data in l2geth to the parsing of the collected data during migration.
The mismatch will return an 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: VaultV2 could end up minting shares > 0 that are not backed by MetaMorpho shares
### Description
The current implementation of the `MetaMorphoAdapter` adapter does not perform any slippage checks or revert when the underlying `MetaMorpho` (v1.0 or v1.1) vault mints zero shares upon depositing an amount > 0 of ... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.