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 | false | false | ## Low: Changes to protocol fees may affect unclaimed but finalized fees
### Description
Changing the protocol fee will affect all past unclaimed fees, including those already finalized, not only the fees accrued after the change. Consider the following example:
1. The protocol fee is set to 10%. The accountant submi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Accessible Token Snapshot Functions
### Description
**Update**
The client fixed the issue in `8c333777b1cbde71916d9b78084c88c4ca62de03` by reverting in `balanceOfAt()` and `totalSupplyAt()`.
**File(s) affected:**`MeowToken.sol`
**Description:** Although the new implementation contract has removed snapshot 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 | low | liquidation | true | false | ## Low: `claimUnassigned` may result in a slight difference between debt and coll percentages being claimed due to rounding errors
### Description
**Impact**
Slight difference in debt and coll claimed due to rounding error
May be abused to get free coll due to coll rounding up to a unit or more and debts rounding do... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Solmate safetransfer and safetransferfrom does not check the code size of the token address, which may lead to funding loss
### Description
Source: https://github.com/sherlock-audit/2022-11-bond-judging/issues/8
## Found by
Bnke0x0, 8olidity
## Summary
## Vulnerability Detail
## Impact
the 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 | medium | token | false | false | ## Medium: Use of Transfer event to log token creation
### Description
The crowdsale contract [uses the Transfer event](https://github.com/brave-intl/basic-attention-token-crowdsale/blob/17a5f8440a256a6dc5d8dd894b9615182c2901b2/contracts/BAToken.sol#L58) to log the creation of tokens, with a *from* field set to the ze... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: More documentation is preferred
### Description
Code base needs more Natspec comments. Documentation should be consistent and clear for the auditors and devs.
### Impact
Documentation should be consistent and clear for the auditors and devs. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Nested if is cheaper than single statement
### Description
https://github.com/nounsDAO/nouns-monorepo/blob/718211e063d511eeda1084710f6a682955e80dcb/packages/nouns-contracts/contracts/base/ERC721Checkpointable.sol#L243-L245
https://github.com/nounsDAO/nouns-monorepo/blob/718211e063d511eeda1084710f6a682955e80d... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## High: Tokens in Segregated mode cannot be fully repaid by borrowers
### Description
Tokens that have the Segregated mode activated possess a designated `MarketV2.currentDebt` value. This value is prevented from surpassing the `debtCeiling` through borrow functions. Notably, the `ControllerV2ExtraExplicit.afterRepay... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use `Ownable2StepUpgradeable` instead of `OwnableUpgradeable`, `Ownable2Step` instead of `Ownable`
### Description
**Description:** `StratFeeManagerInitializable` and `BeefyVaultConcLiq` should use `Ownable2StepUpgradeable` instead of `OwnableUpgradeable`.
`StrategyFactory` should use `Ownable2Step` instead 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 | medium | other | false | false | ## Medium: exchangeRate is not up to date in case if vault that is off is changed to on
### Description
`exchangeRate` is not up to date in case if vault that is off is changed to on. Depositors and withdrawers will use old `exchangeRate` that will be less than in reality.
### Impact
Incorrect shares calculation
###... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Code would behave unexpectedly if the price reaches 0
### Description
The operator can update the share price value by calling `rebaseSub()`. If for some reason protocol loses all its deposits (for example in early deployments) then after the operator calls to `rebaseSub()` the `_balancePerShare` value will 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 | token | true | false | ## Low: Instead of passing an empty string for the data parameter in NFT vaults on token transfers, allow users to supply data
### Description
Allow users to supply the data parameter when transferring tokens from vault to them to ensure any off-chain compatibility/functionality can be built. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: anchor\_basset\_hub contract :: execute\_register\_validator function
### Description
Function: execute\_register\_validator
Contract:
Problem: If a Validator is already registered there is no need of further processing. Check for same is missing
Recommendation: Add a check to verify if the given validator... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Owner Account Can Be Overwritten Due to Missing Validation
### Description
The contract allows ownership assignment via two functions: `set_owner_account_request` and `set_owner_account`. While the former checks that `owner_account` is unset (`assert(position.get_owner_account().is_none())`), the latter **lack... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potentially Misleading Verifier Event
### Description
The `MultipleVersionRollupVerifier` contract maps the batch index to the address of the verifier that was used. The owner of this contract can call the [`updateVerifier`](https://github.com/scroll-tech/scroll/blob/2eb458cf4224d82fc56254e91e297a9ed261cefb/co... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: `calculateSwapImpactFee` Will Give Incorrect Result For An Edge Case
### Description
**Severity** - Medium
**Status** - Resolved
**Description**
The function `calculateSwapImpactFee` inside GlmVault.sol calculates the swap fee for a swap . A user directly interacting with this function (or a protocol 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... | skyward_49k | high | reentrancy | true | false | ## High: Malicious users could deposit normal NFTs to a managed NFT on behalf of others without their permission
### Description
The `VotingEscrow.depositManaged` function did not verify that the caller (`msg.sender`) is the owner of the `_tokenId`. As a result, a malicious user can deposit normal NFTs to a managed NF... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | true | false | ## Medium: Denial Of Service Via Teleport Hash Tracking
### Description
## Teleport Function Overview
The function `teleport::teleport_from_flow` enables teleport administrators to create tokens for a particular account by requesting a `flow_addr` and `flow_tx_hash`. This ensures that the transaction hash has not bee... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Outdated precompile data might cause miscalculation of total supply
### Description
`Overseer.rebase()` calls the `getNewSupply()` function to determine the total supply of HYPE owned by the protocol. In this calculation, different precompiles are used to get the balances of different addresses in the L1. I... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | cross-chain | false | false | ## High: | Duplicate Dividends
### Description
**Description**
In the `mint` function, the only precondition for adding an address to the `users` list is if the balance of the address is 0. Additionally, an address is not removed from the `users` list if it transfers it’s balance of the BridgesPair token.
This way an... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Events. ✓ Fixed
### Description
In a few cases in the Lybra Protocol system, there are contracts that are missing events in significant scenarios, such as important configuration changes like a price oracle change. Consider implementing more events in the below examples.
### Recommendation
Fixed in [c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Arbitrary controller addresses can be passed to `DistributionManager::setModuleForController` without validation of the corresponding gauge addresses
### Description
**Description:** The DAO can currently pass any arbitrary controller address in calls to `DistributionManager::setModuleForController`; however, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | overflow | true | false | ## Medium: Unsafe casting within _purchase function can result in overflow
### Description
Unsafe casting within _purchase function can result in overflow
### Impact
IMPACT:
a) Loss of funds for buyer
### Recommendation
Consider simply switching to a uint256 approach, this should be adapted in the overall architect... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Liquidation fee is volatile and may be manipulated
### Description
The liquidation reward is intended to be 5% of the liquidity seized, but in actuality, it may range from close to 0% to close to 10%. The Salty.IO liquidation process is straightforward. When the loan-to-value (LTV) ratio of a loan drops bel... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User Can Potentially Get More than Whitelisted Allocations
### Description
**Update**
The client added new code change in `63c8831e8386d12a465255849cea28be5f530b3e` to ensure that the `allocation` variable will only be changed if the whitelisted allocation is larger than the `publicAllocation`. In other words,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bad actor can block Lido deposit function
### Description
**Severity:** High
**Path:** Lido.sol:deposit (L696-730), StakingRouter.sol:receive#L153-L155
**Description:**
Using the `Lido:deposit` (L696-730), the Lido protocol makes deposits to the Ethereum 2.0 `DepositContract` using the `StakingRouter` 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... | solodit_api | medium | Missing-Logic | true | true |
<https://github.com/code-423n4/2023-06-stader/blob/main/contracts/SocializingPool.sol#L21> <br><https://github.com/code-423n4/2023-06-stader/blob/main/contracts/Auction.sol#L14> <br><https://github.com/code-423n4/2023-06-stader/blob/main/contracts/StaderOracle.sol#L17><br><https://github.com/code-423n4/2023-06-stader/... | Code4rena | 4.998689 | Stader Labs |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | other | true | false | ## Severity: High Risk
**Context:** Space.sol#L148-223
**Recommendation:** In the ifpart, add something like the following before the call to `_cacheReserves()`:
```
reserves[_targeti] += reqAmountsIn[_targeti];
```
**Sense:** Addressed in #1.
**Spearbit:** Acknowledged. | Spearbit | 5 | Sense |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: liquidationTarget is not set when removing pool.
### Description
Source: https://github.com/sherlock-audit/2023-06-dodo-judging/issues/246
## Found by
Protocol Team
Remove pool has 3 steps:
1. call removeD3Pool(address) and force the pool into liquidation state. However, the vault call ID3MM(pool).startL... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | true | false | ## Medium: Lack of two-step process for critical operations
### Description
When called, the `transferOwnership` function immediately sets the contract owner to the provided address. The use of a single step to make such a critical change is error-prone; if the function is called with erroneous input, the results coul... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect listing type validation bypasses enforcement of minimum purchase amount
### Description
Incorrect validation of the listing type allows bypassing the enforcement of `_minPurchaseAmt` being within the range of `0` to `_amount`.
### Proof of Concept
A listing can have two types: `Single` or `Parti... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unchecked Fee Sum
### Description
## Operator and Minter Fee Management
Operators are permitted to set the fees collected by the operator and minter during remints. The current implementation checks that each individual fee does not exceed 100% of the reminted token amount but fails to verify the total sum 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 | initialization | true | false | ## Low: Constructor function does not check for zero address
### Description
The constructor function does not check if the addresses passed in are zero addresses. This check can guard against errors during deployment of the contract.
### Recommendation
Require checks should be added to ensure that the addresses pass... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Avoid writing to state if amount is zero
### Description
### Instances
1. ### Refactor `OLAS.decreaseAllowance()` to avoid writing to state if `amount` is zero
- https://github.com/code-423n4/2023-12-autonolas/blob/main/governance/contracts/OLAS.sol#L132-#L133
In the `OLAS.decreaseAllowance()` function as sho... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | reentrancy | true | false | ## Low: The unstake() function can be re-entered
### Description
Here is the order of operations:
`safeTransferFrom()` will call the `onERC721Received()` function on `msg.sender` if `msg.sender` is a contract.
At this point, since `stakes[noteId]` has not yet been deleted, the user can transfer the NFT back to the `... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | signature | true | false | ## Medium: Wrong `DOMAIN_TYPEHASH` definition
### Description
_Submitted by rotcivegaf_
Broke the [EIP 712](https://eips.ethereum.org/EIPS/eip-712), and the `delegateBySig` function.
### Proof of Concept
In the build of the `DOMAIN TYPEHASH` the `string version` is forgotten, but the `delegateBySig` function, build... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Balance Deduction in Unstaking Functions Allows Contract Drainage and Lock Period Bypass
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `4a45a4a`.
**Update**
Marked as "Fixed" by the client. Addressed in: `f647099b7988fa4d01fac6a9f3481d25e748527a`. The client provided 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 | rounding | true | false | ## High: LP fees are in WAD instead of token decimal units
### Description
## Severity: Critical Risk
**Context:** Portfolio.sol#L485
**Description:**
When swapping, `deltaInput` is in WAD (not token decimals) units. Therefore, `feeAmount` is also in WAD as a percentage of `deltaInput`. When calling `_feeSavingEff... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Prefix internal and private function names with `_` character
### Description
**Description:** It is considered good practice in Solidity to prefix internal and private function names with `_` character. This is done sometimes but not other times; ideally apply this consistently:
**Strata:** Fixed in commit ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | reentrancy | true | false | ## Low: Missing read-only reentrancy protection in `TokiHook.getTotalBalances()`
### Description
_Resolved_
The `TokiHook.getTotalBalances()` is widely used in `TokiQuoter` `StateView`, `TWAPPrice`, `TokiPoolRouter`, and `TokiSwapBinSearch`, but may return inconsistent state when called during `addLiquidity()` or `re... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | signature | true | false | ## High: Gateway.updateKeys() signatures can be replayed
### Description
In the `Gateway` contract, the `updateKeys()` function is used to register shard public keys that then can be used to sign and send GMP messages:
```
function updateKeys(Signature calldata signature, UpdateKeysMessage memory message) public {
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: All Cross-Chain operations can be DOS
### Description
-
### Impact
Loss of assets and core feature broken. It can lead to the loss of assets because if liquidation can be blocked or delayed, it will result in a loss for the protocol. If repayment cannot be performed or delayed by malicious user, users cann... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Constants not declared or clearly named
### Description
In the [`FixedRateSwap`](https://github.com/1inch/fixed-rate-swap/blob/b1600f61b77b6051388e6fb2cb0be776c5bcf2d1/contracts/FixedRateSwap.sol) contract, the literal values `998`, `1000`, and `1002`, which are used to step through fees in the [`_getRealAmoun... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ValidationData not always intersected properly
### Description
Throughout the codebase, there are calls to multiple policy contracts, and the `ValidationData` return values from these calls are intended to be combined using the `intersectValidationData()` function. However, there are currently two locations i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: Implement `sweep()` for ETH
### Description
The [`sweep()`](https://github.com/BarterLab/argon/blob/f653d58132124854db42d2bd93d0c6b91da2c398/contracts/InchFusionBarterResolver.sol#L125-L133) function in the `InchFusionBarterResolver` contract only handles ERC20 tokens but does not provide functionality to swee... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Multiple `address` mappings can be combined into a single mapping of an `address` to a `struct`, where appropriate
### Description
```solidity
File: src/Staking.sol
19: mapping(address => uint256) public supplyIndex;
22: mapping(address => uint256) public balances;
24: mapping(address => uint256) public cl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Never used storage
### Description
**Description**
PropertyDraw._start
CityWL._avatars
MetropolisWorldPassport._wilds
Unused storage removal will decrease gas usage during the deployment and will increase the code quality.
**Recommendation**
remove unused storage.
**Re-audit comment**
Resolved | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [02]
### Description
Line 161 in `VTVLVesting._baseVestedAmount()` function should not get executed when `cliffAmount` is 0. In the case of no cliff amount, i.e. where `cliffReleaseTimestamp` and `cliffAmount` are both set as 0, the program execution should not enter the `if` block. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Token withdrawals from GTranche are sent to the incorrect address
### Description
The `GTranche` withdrawal function takes in a `_recipient` address to send the G3CRV shares to, but instead sends those shares to `msg.sender` (figure 15.1).
```solidity
function withdraw (
uint256 _amount,
uint256 _index,
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Code Maturity
### Description
## Code Review Suggestions
## 1. Avoid Redundant Function Calls
In the `godmode::remove_ephemeral_multiplier`, avoid calling `update_points` twice because it is already called inside `reclaim_rent`.
## 2. Optimize Initialization Logic
In `initialize`, remove the unnecessary `... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [13] Protocol does not consider EIP-4844 and still assumes more than one batch can be committed
### Description
### Proof of Concept
Take a look at https://github.com/code-423n4/2024-03-zksync/blob/4f0ba34f34a864c354c7e8c47643ed8f4a250e13/code/contracts/ethereum/contracts/state-transition/chain-deps/facets/Ex... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TRST-H-1 createUniswapRangeOrder() charges manager instead of pool
### Description
**Description:**
**_createUniswapRangeOrder()** can be called either from manager flow, with **createUniswapRangeOrder()**, or pool-induced from **hedgeDelta()**. The issue is that the
function assumes the sender is the parent... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: MISSING ONLY INIT MODIFIER
### Description
The `onlyInit` modifier throws an error If the source contract is not initialized. In the **SystemReward** contract, **receiveRewards** function is missing **onlyInit** modifier. If the function is called without initialization, all address balance will be burned i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | reentrancy | true | false | ## Medium: Collision between rebalance order consideration tokens and am-AMM fees for Bunni pools using Bunni tokens
### Description
**Description:** `AmAmm` rent for a given Bunni pool is paid and stored in the `BunniHook` as the ERC-20 representation of its corresponding Bunni token. For pools comprised of at least ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | front-running | true | false | ## High: User-supplied AMM pools and no input validation allows stealing of stEth protocol fees
### Description
Some of the protocols `lend` methods take as user input the *underlying asset* and the *pool to swap on.*
They do not check that they match.
**Therefore a user can supply to `Lender` DAI underlying,
instruct... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: There are some known bugs in the older versions of solidity that have been fixed in the most recent one, , it’s part of best practices to always use the most recent updated version.
### Description
https://docs.soliditylang.org/en/latest/bugs.html
**Recommendation**:
Set the solidity pragma to the most recen... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improper Paramater Sanitization in fetchAllTicketCommentsCount(), updateTicket(), and parseTicketComments() ✓ Fixed
### Description
Currently, if the Snap’s state is empty or undefined, `fetchAllTicketCommentsCount()` tries to fetch tickets for the key corresponding to the hash of the empty string `""`. 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 | medium | other | false | false | ## Medium: Late Reserve Index Update Causes Stale Interest Accrual
### Description
The reserve indices are updated too late (after liquidity or debt changes occur) resulting in stale interest accrual. This mis-sequencing leads to inaccurate interest rate computations and may distort economic incentives.
### Impact
* ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 newly minted amount not considered for the treasury
### Description
When `getTotalUnderlyingClaims` is called, it will first call `alculateRewardAndDebtDistribution` to get `totalSupplyFactorIncrease` and calculate the total underlying amount considering this new `totalSupplyFactorIncrease`.
However, 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 | low | other | false | false | ## Low: Unused field `MarketResolution.resolved`
### Description
**Description:** The `MarketResolution` struct includes a [`resolved`](http://github.com/Polkamarkets/polkamarkets-js/blob/24f1394be94d27433d2e3a7370442126e1c1e5ba/contracts/PredictionMarketV3_4.sol#L160) field, but it is not used anywhere in the current... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `transferShortRecord`: Can transfer a newly created `ShortRecord` using a previously minted NFT
### Description
Can move the newly created `ShortRecord` using the NFT that was minted in the past.
### Proof of Concept
Even if the `ShortRecord` is closed, the previously minted NFT is not burnt. The `s.nftMa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | false | false | ## Gas: Use local variables to cache results of storage reads
### Description
Reading from storage is expensive whereas reading from the stack is cheap. If the result of a storage read in required multiple times, the code should cache the value in a local variable, and read from that variable, rather than fetching fro... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | front-running | false | false | ## Low: Frontrunning distribute functions
### Description
## Handle
pauliax
## Vulnerability details
## Impact
distribute and distributeOther can be frontrunned. Anyone can call these functions and receive callIncentive. A frontrunner can watch the mempool and copy the calldata to replicate the same tx. For exampl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Removal of Redundant console.log Statements from Codebase
### Description
The codebase currently contains several instances of `console.log` statements. While these logging statements can be invaluable during development and debugging phases, leaving them in the production code can lead to unnecessary clutter.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary gas consumption from public visibility.
### Description
**Description**
The following functions are not called internally but have public visibility.
• CloneRewarderTime.sol: init(), setReward PerSecond(), reclaim Tokens(), transferLocks().
• MiniChefV2.sol: poolLength(), add(), set(), setSushi Pe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | false | false | ## High: Deposit manipulation [core]
### Description
The `addStakeTo` function of the `StakeManager` contract allows an attacker to update the deposit record associated with another `account`, and manipulate it in two significant ways.
Firstly, the new funds [are added to the caller’s current balance](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 | oracle | true | false | ## Low: Missing the `lookback` parameter when invoking the `getWstethUsdPrice()` in the `getTokenPrice` function
### Description
The `getWstethUsdPrice()` function is being called without using the `lookback` parameter if it's the WSTETH token.
The function uses a constant value of `0` for the `lookback` parameter whe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: There is no reason for mint(), burn(), and burnFrom() functions to be payable - can lead to fund loss
### Description
**Severity**: Informational
**Status**: Resolved
**Location**: Token.sol
**Description**
In the current implementation, the mint(), burn(), and burnFrom() functions are payable, which means... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | overflow | true | false | ## Medium: “Uplift Fee” Incorrectly Falls Back to Minimum Fee Due to Integer Division
### Description
A critical arithmetic error in the `onAfterRemoveLiquidity` function causes a protocol pool’s “uplift” fee calculation to zero out whenever the pool’s value grows less than 100%. Instead of charging an uplift fee, the... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | false | false | ## Medium: Borrower can lose partial fund during minting of Power Token as excess ETH are not refunded automatically
### Description
[src/periphery/LendgineRouter.sol#L142](https://github.com/code-423n4/2023-01-numoen/blob/main/src/periphery/LendgineRouter.sol#L142)
[src/periphery/LendgineRouter.sol#L87-L124](https://... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: TimelockControllerEmergency could be used to allow anyone to execute proposals
### Description
The timelock contract can be configured to use open roles, which allow any user to run proposals.
The `TimelockControllerEmergency` contract is implemented using OpenZeppelin’s `TimelockController` contract to add 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 | logic | false | false | ## High: Claiming time.
### Description
**Severity**: High
**Status**: Resolved
**Description**
PROPCStakingV2.sol: _pending RewardsForStake().
The function for counting rewards uses logic to check how long a user has been in the pool since their last output in the loop. A comment in the code describes that if 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: Add an identifier or descriptor to `PriceStorage` which indicates what token or other entity is being priced
### Description
**Description:** The `PriceStorage` contract contains no identifier or descriptor that would readily indicate what is being priced.
Consider adding an identifier or a descriptor such as... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Consider burning `ERC-6909` claim tokens within `AngstromL2::withdrawProtocolRevenue` and transferring the underlying asset instead
### Description
**Description:** `AngstromL2::withdrawProtocolRevenue` currently transfers `ERC-6909` balance to the recipient; however, this address may lack the capability to ea... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Balance not checked
### Description
Balance of `creditAccount` is not checked:
https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/adapters/YearnV2.sol#L83
### Recommendation
We recommend adding a check that `balanceBefore > 0`. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent Error Reporting in Require Statements.
### Description
**Description**
Throughout the provided smart contracts ChainportSideBridge and ChainportMainBridge, there is an observed inconsistency in the format of error messages used within require' statements. Some contracts use short, code-based erro... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Proposals which intend to send native tokens to target addresses can't be executed
### Description
* In `TemporalGovernor` contract: any verified action approval (VAA)/proposal can be executed by anyone if it has been queued and passed the time delay.
* But if the proposal is intended to send native token... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | oracle-manipulation | true | true | ## Medium: Front-running attack on yield distribution allows potential theft of accumulated rewards
### Description
Current yield distribution has following properties:
1. Periodic distribution - yield is calculated and distributed once every `yieldDuration` seconds. [Onchain contracts](https://etherscan.io/address/0... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Estimation Can Fail in finalizeWithdrawalTransaction
### Description
The `finalizeWithdrawalTransaction` [function](https://github.com/mantlenetworkio/mantle-v2/blob/e29d360904db5e5ec81888885f7b7250f8255895/packages/contracts-bedrock/contracts/L1/OptimismPortal.sol#L336) of the `OptimismPortal` contract has... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 named imports to improve readability of the code and avoid polluting the global namespace | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The incentive contracts are not compatible with rebasing/deflationary/inflationary tokens
### Description
The protocol wants to work with all kind of tokens including rebasing tokens. From
[weirdERC20](https://github.com/d-xo/weird-erc20/tree/main) we can read more about Balance Modfications Outisde of Tra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential DoS Issue in `ProtocolShareReserve`'s `addOrUpdateDistributionConfigs()`
### Description
**Update**
The issue has been partially mitigated by the added logic in `_releaseFund()` to skip token transfers and `updateAssetsState()` calls when the `transferAmount` is `0`. Mitigated in commit `65c4f91f239a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [M-01] Incorrect refund of execution fee to user
### Description
During execution of Deposits, Withdrawals and Orders, users are refunded part of the `executionFee` after accounting for `gasUsed` during the transaction. In the codebase, an incorrect value of `startingGas` is used to calculate the `gasUsed`,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | false | false | ## Medium: System Supports Withdrawal but Does Not Support Deposit of Native Token
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `40fcdb40ba46889c6bc4ddcd554637e98bde2f8b`. The client provided the following explanation:
> Added receive()
**File(s) affected:**`EthenaMinting.sol`
**Descrip... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | front-running | false | false | ## Low: Vulnerability to frontrunning due to interplay between claim() and takeUSDCRaised()
### Description
**Severity**: Low
**Status**: Resolved
**Location**: TokenSale.sol
**Description**
The smart contract includes two distinct functions, `claim()` and `takeUSDCRaised()`, each serving specific purposes within... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Owner can finalize crowdsale before it has ended
### Description
`finalize` function from `FinalizableCrowdsale` is overriden by `MANACrowdsale` in [line 115](https://github.com/decentraland/mana/blob/a13905356378cc0153dd3c2153c8ceae6400970d/contracts/MANACrowdsale.sol#L115). The modified version removes the ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | rounding | false | false | ## Medium: dust amounts will be removed in OFT tokens
### Description
Source: https://github.com/sherlock-audit/2024-11-autonomint-judging/issues/786
## Found by
pashap9990
### Root Cause
dust amounts will be removed in OFT tokens
https://github.com/sherlock-audit/2024-11-autonomint/blob/main/Blockchain/Blockchi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | true | false | ## Medium: The assignTeam modifier does not revert on a mismatching team
### Description
The `assignTeam` modifier does not revert when a user specifies a `different_team` than the one they were initially assigned to. This can lead to incorrect deposit accounting in the `createYeet` method, where `teamDeposits` is cre... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## High: Parameter misordering in fee collection function causes denial of service and fee loss
### Description
### Impact
A critical bug has been identified in the `collect_protocol_7540_F_A_9_F` function of the Seawater Automated Market Maker (AMM) protocol. This vulnerability affects the core functionality of fee ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Disabled receiver can lose tokens that were allocated for past weeks if not regularly claiming emissions
### Description
**Description:** When a receiver is disabled by `Vault::setReceiverIsActive`, they can lose tokens which they were eligible to receive in past weeks if they have not been regularly claimi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | false | false | ## Medium: Extensive permissions for owner
### Description
[contracts/RuniverseLandMinter.sol#L358](https://github.com/code-423n4/2022-12-forgotten-runiverse/blob/00a247e70de35d7a96d0ce03d66c0206b62e2f65/contracts/RuniverseLandMinter.sol#L358)
[contracts/RuniverseLand.sol#L195](https://github.com/code-423n4/2022-12-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... | cyfrin_structured | medium | access-control | true | true | ## Medium: Vault initialization allows deposit whitelist with no management capability
### Description
The `VaultTokenized` contract can be initialized with deposit whitelist enabled but without any ability to add addresses to the whitelist. This creates a state where deposits are restricted to whitelisted addresses, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
### Description
The `OperationNotSupported` error is defined but never used in the contract.
### Recommendation
Remove the unused error declaration. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | true | ## Low: Repricing with small rewards results in an invalid state where `ETH` reserves increase, `swETH to ETH` exchange rate increases, but no rewards are paid out to operators or treasury
### Description
Invariant fuzzing used repricings with small rewards to reach an invalid state where `ETH` reserves increase, `swE... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Deposit Accounting Issue
### Description
## Issue Summary
The field `walletInfo.amountDeposited` is not reset after bridging, leading to discrepancies in withdrawal amounts. When a user performs a sequence of deposit → bridge → deposit → withdraw, the system fails with an underflow error, preventing correct 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 | initialization | true | false | ## High: Incorrect index reset in `Fenwick tree` after full withdrawal
### Description
When a user adds liquidity to the pool, the system triggers the `_updateLockData` function, which in turn calls the `Fenwicks._deposit` function to record the deposit amount and its associated lock duration (e.g., 7 days). The `Fenw... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users Can Lose Refund by Default
### Description
In the `L1ScrollMessenger`, the `sendMessage` functions allow a user to initiate a transaction on L2 from L1. There are two `sendMessage` implementations, with and without a refund address parameter. For the function without the parameter, the refund address 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 | access-control | false | false | ## Low: Missing and / or incomplete docstrings
### Description
Some contracts and functions in the code base lack documentation or include incomplete descriptions. This hinders reviewers’ understanding of the code’s intention, which is fundamental to correctly assess not only security, but also correctness. Additional... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | cross-chain | true | false | ## Medium: `onlyCentrifugeChainOrigin()` can't require `msg.sender` equal `axelarGateway`
### Description
In `AxelarRouter.sol`, we need to ensure the legitimacy of the `execute()` method execution, mainly through two methods:
1. `axelarGateway.validateContractCall ()` to validate if the `command` is approved or not... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | front-running | false | false | ## Low: Front-running opportunities
### Description
Several interactions between the vault and strategies create opportunities for transaction front-running.
Consider the following scenario: A vault user withdraws shares before some strategy reports a loss. The user may be penalized if that strategy appears earlier i... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.