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 | medium | signature | true | false | ## Medium: Domain separator in iExecMaintenanceDelegate has a wrong version field Acknowledged
### Description
The domain separator used to comply with the EIP712 standard in `iExecMaintenanceDelegate` has a wrong version field.
**code/poco-dev/contracts/modules/delegates/IexecMaintenanceDelegate.sol:L77-L86**
``... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `SDLVesting::stakeReleasableTokens` gas optimization by caching variables
### Description
**Description:**
Currently `lockTime` and `reSDLTokenIds[lockTime]` are read from storage for multiple times. Both variables should be cached to save gas:
**Stake.Link:** Fixed in commit [`128c335`](https://github.com... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | false | false | ## Low: `_maxWithdrawable()` and `_maxDepositable()` May Overflow
### Description
**Update**
Addressed in: `e272a7f252eac871e6422bf4dd5f75dc6898ea94`. The client provided the following explanation:
> I applied the recommendation, now the methods use OZ's Math.tryAdd and return either limit or type(uint256).max when a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | cross-chain | true | false | ## High: Cross-chain messaging via Multichain protocol will fail
### Description
## Security Assessment
## Severity:
**High Risk**
## Context:
`BaseMultichain.sol#L39-L47`
## Description:
Multichain v6 is supported by Connext for cross-chain messaging. The `_sendMessage` function of `BaseMultichain.sol` relies 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: `claimFromIndividualPlugin()` may endup claiming the reward from a different plugin with wrong `auxData` when the index as changed due to `removePlugin()`
### Description
When `removePlugin()` happens between the user sends the `claimFromIndividualPlugin()` transaction and before it gets minted, it may lead... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | storage | false | false | ## Medium: Token: Founder percentages not always respected
### Description
_Submitted by Lambda, also found by arcoun_
[Token.sol#L110](https://github.com/code-423n4/2022-09-nouns-builder/blob/debe9b792cc70510eadf9b3728cde5b0f2ec9a1f/src/token/Token.sol#L110)
Because of the "greedy" minting scheme for founders (toke... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Precision Loss | true | true |
[src/core/Pair.sol#L56](https://github.com/code-423n4/2023-01-numoen/blob/2ad9a73d793ea23a25a381faadc86ae0c8cb5913/src/core/Pair.sol#L56)<br>
[src/core/Pair.sol#L57](https://github.com/code-423n4/2023-01-numoen/blob/2ad9a73d793ea23a25a381faadc86ae0c8cb5913/src/core/Pair.sol#L57)<br>
[core/Lendgine.sol#L252](https://gi... | Code4rena | 5 | Numoen |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrectly set ```_maxTime``` to be in line with the locking ```maxTime``` of each veToken could render the ```deposit``` of this contract to be unfunctional or even freeze assets inside the contract
### Description
_Submitted by Kumpa, also found by SecureZeroX and unforgiven_
Since \_maxTime needs to 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 | overflow | false | false | ## Medium: Consensus on staking transaction status can be bricked in case of Bitcoin reorg greater then configurationDepth
### Description
Minor Bitcoin reorganizations (1-3 blocks) happen often, but major ones (> 20 blocks) are rare. It seems there were at least two major reorganizations in Bitcoin history, in 2010 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 | false | false | ## Low: Changes to the `wTAO` Address May Result in Faulty Accounting
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `8202a36473bca0c671c75893bca3a3664ec4f88d`, `6df2f5451c073a386a7aa1d8f9b7eb362b087842`. The client provided the following explanation:
> Added fix by adding wrappeedToken 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 | token | false | false | ## Low: Immutable addresses should be 0-checked
### Description
[L-02] Immutable addresses should be 0-checked
Consider adding an address(0) check here (see @audit):
contracts/farming/LPFarming.sol:
77: jpeg = IERC20(_jpeg); //@audit low: should be address(0) checked just like in yVaultLPFarming.sol and StrategyPUS... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 earliestCreatedRivalBlockNumber function can be optimized to reduce looping
### Description
The `earliestCreatedRivalBlockNumber` function can be optimized to avoid an additional loop. Given an edge, the `earliestCreatedRivalBlockNumber` function returns the creation block of the earliest created rival or ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Can Lead to Loss of Funds
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `9be0941`. The client provided the following explanation:
> Logic was simplified, no signature needed. We only emit the amount of credits bought. The balance is handled offchain with a listene... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: castVote can be called by anyone even those without votes
### Description
Governance#castVote can be called by anyone, even users that don't have any votes. Since the voting refund is per address, an adversary could use a large number of addresses to vote with zero votes to drain the vault.
### Impact
Vaul... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## High: Lost roles after the proxy upgrade
### Description
In the current implementation of the `GNSMultiCollatDiamond` contract, the `accessControl` mapping takes slot `2` in the proxy storage:
[Link](https://arbiscan.io/address/0x1b7aeaeab4ffd6b3070ae601a038146b80c6ea8a#code#F20#L20)
The first two slots are taken ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unstaking fails if contract lacks sufficient HYBUX balance, causing stuck NFTs
### Description
_Resolved_
The `_unstakeNFTs` function forces reward claiming before NFT withdrawal, which can cause NFTs to become permanently stuck if the contract doesn't have enough HYBUX tokens to pay accumulated rewards.
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... | solodit_api | high | token | true | true | Source: https://github.com/sherlock-audit/2023-02-notional-judging/issues/13
## Found by
xiaoming90
## Summary
Due to the lack of validation of the selling token within the Curve adaptors, there is a risk that the reward tokens or Convex deposit tokens of the vault being sold by malicious users under certain condi... | Sherlock | 5 | Notional Update #2 |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: Compromised Owner or Operators Can Steal All Users' Escrowed Funds
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> Owner and operators of the smart contract will be under a secure ownership of Zero and WilderWorld. Owner role will be assigned... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 custom errors
### Description
Throughout the code in scope, there are several custom errors that are declared but never used.
In `Errors.sol`:
* `error GroupingModule__InvalidGroupRewardPool(address rewardPool);`
* `error GroupingModule__CallerIsNotLicensingModule(address caller);`
* `error GroupI... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The owner can use the `burn` function to burn tokens from any address
### Description
**Severity**: High
**Status**: Resolved
**Location**: DegenERC20.sol
**Description**
The `burn()` function allows the owner to burn tokens from any account. This can lead to misuse by malicious owners and can lead to wip... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Input Validation
### Description
**Update**
The client added all input validations in `9f63e58273ffdb0faa59eed582e5771f8a328d30` as per recommendation.
**File(s) affected:**`MeowToken.sol`
**Description:** It is crucial to validate inputs, even if the inputs come from trusted addresses, to avoid huma... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Stars.sol no SafeMath applied
### Description
**Description**
There are several calculations in the code that potentially could lead to under or overflows.
**Examples**:
- remainingYearlyInflationAmt -= amount; [line 77]
- nextMintStartTime += mintLockPeriodSecs; [line 97]
- remainingYearlyInflationAmt = (... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Debt Celing Can Be Exceeded
### Description
**Update**
The Hifi team indicated that the purpose of the debt ceiling is to minimize risk. They have indicated that risk is not increased by minting HTokens in this way, since they are one-to-one with the underlying. From the team:
**File(s) affected:**`packag... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Maximum XVS Staked Does Not Match the Documentation
### Description
The documentation states:
> The maximum XVS cap taken into account when calculating the score of a user is 100,000 XVS.
However the constant `[MAXIMUM_XVS_CAP](https://github.com/VenusProtocol/venus-protocol/blob/f31a0543da039dab69112c6... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Project dependencies contain vulnerabilities
### Description
Although dependency scans did not yield a direct threat to the project under review, yarn audit identified dependencies with known vulnerabilities. Due to the sensitivity of the deployment code and its environment, it is important to ensure depend... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Application Monitoring Can Be Improved by Emitting More Events
### Description
**Update**
The client fixed the issue in commit `bf2731499bbf3f072bf5934b2f96ae32ed52d18e` and provided the following explanation:
> All recommended events have been added and recommended changes have been made to existing ones.
*... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Refactoring Constraints Using has_one Attribute
### Description
## Simplifying Constraints in Anchor
In many instructions, the constraints on accounts can be simplified by using the `has_one` attribute of Anchor.
## Example
These are constraints that can be refactored using `has_one`:
1. **UpdateDebtType ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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] Malicious owners can set the fee to 100%
### Description
Malicious owners can set the fee to 100% by triggering `execute.rs#set_fee_value()`, this will leave homeowners with zero revenue.
https://github.com/code-423n4/2024-10-coded-estate/tree/main/contracts/codedestate/src#L318-L323 | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 zero-copy feature in Anchor is experimental
### Description
Several structs for keeping state use Anchor’s zero-copy functionality. The Anchor documentation states that this is still an experimental feature that should be used only when Borsh serialization cannot be used without hitting the stack or heap l... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | false | false | ## Medium: depositAndFix can be made to fail
### Description
## Handle
cmichel
## Vulnerability details
There's a griefing attack where an attacker can make any user transaction for `TempusController.depositAndFix` fail.
In `_depositAndFix`, `swapAmount` many yield shares are swapped to principal where `swapAmount... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Weak Privacy Due to Hash-Only Identity Obfuscation
### Description
To preserve user privacy, the system obscures Ethereum addresses by storing only their Keccak-256 hashes. While in theory it is computationally infeasible to recover a random 160-bit address from its Keccak hash, this assumption overlooks a cri... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | false | false | ## Low: An unnecessary parameter
### Description
`_amountWithDecimals` is unnecessary in the `addDistributionAmount()` function.
https://github.com/FantiumAG/smart-contracts/blob/a2d126453c1105028f12277b8f342d2cdbf01a77/contracts/claiming/FantiumClaimingV1.sol#L262-L269
### Recommendation
We recommend using `distribu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Unnecessary checks can be removed, to enhance the code
### Description
https://github.com/code-423n4/2023-09-centrifuge/blob/512e7a71ebd9ae76384f837204216f26380c9f91/src/PoolManager.sol#L310
The `require` keyword can be removed in the function `deployLiquidityPool ()`, because the function `isAllowedAsPoolCur... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fees can be set greater than 100%
### Description
**Severity**: Low
**Status**: Acknowledged
**Description**
The variables managementFee and performanceFee can be updated using function setManagementFee() and setPerformanceFee() respectively. Although these functions have onlyRole(GOVERNANCE) function modif... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Nested Loop in `Redeemer._redeem`
### Description
The function `_redeem` iterates over all tokens. Moreover, the check `LibHelpers.checkList(tokens[i], forfeitTokens)` (which is linear in the length of `forfeitTokens`) is performed within loop iteration. Therefore if there are $n$ tokens and $m$ tokens to be 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 | gas | dos | true | false | ## Gas: _isComponent() isn't efficient
### Description
Function `_isComponent()` does a linear search and thus takes a relatively large amount of gas. Its main use is in the function `setLiquidationQueue()`. With a very large number of components, this could run out of gas.
### Recommendation
Estimate the expected maxi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The Maximum Allowed Widget Fee Rate May Be Too High
### Description
**Update**
Native team has indicated that they plan to set a maximum widget fee rate around `2000`.
**File(s) affected:**`src/NativeRouter.sol`
**Description:** The market makers facilitating trade on Native can charge a fee called the `w... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | access-control | true | false | ## High: `MixinTransfer.sol#transferFrom` Wrong implementation can potentially allows attackers to reverse transfer and cause fund loss to the users
### Description
_Submitted by WatchPug_
Based on the context, L131-136 seems to be the logic of handling the case of the recipient with no key, and L138-148 is handing ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Medium: `PositionAction4626::increaseLever` will always revert
### Description
Users can use `PositionAction::increaseLever` to increase their positions' leverage, i.e., increasing both the collateral and debt, by taking a flash loan and doing some swaps. At the end of the process, after swapping "borrow" tokens 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 | gas | token | false | false | ## Gas: `BasketLib.nextBasket()` refactoring
### Description
Gas saved: a few thousand
The following refactoring saves a few thousands of gas mostly by preventing:
1. Double call to `goodCollateral`
2. The second iteration over the whole `backup.erc20s` array | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Misleading revert message
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
In PairsStorage.sol - Modifier feedOk() contains a misleading revert message in
**Recommendation**
Change the error message returned to describe what actually went on in this faulty transaction.
**... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incomplete input validation in parameter updates
### Description
The `updateParam`function in the **SystemReward** contract does not validate the length of the `value` parameter for the `addWhiteList`and `modifyWhiteList`options. Unlike other options, such as `incentiveBalanceCap`and `removeWhiteList`, which 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 | initialization | false | false | ## Low: Redeemer Can only Redeem One Asset Ever
### Description
**Update**
The client fixed the issue in commit `730517d84c8dd0857ee92bd09ca27a772adff92c` and provided the following explanation:
> Modify the `RedeemAccount` contract proof to include the redeem asset in addition to the engine address and user address.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | access-control | false | false | ## Gas: Functions guaranteed to revert when called by normal users can be marked `payable`
### Description
If a function modifier such as `onlyOwner` is used, the function will revert if a normal user tries to pay the function. Marking the function as `payable` will lower the gas cost for legitimate callers because th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | true | false | ## Low: Some metrics counters are never updated
### Description
The metrics counters in figure 10.1 are never updated in the MobileCoin logic. These un-updated metrics counters may mislead users who want to see certain federated voting statistics associated with MobileCoin's SCP implementation.
- Previous slot number... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Changing treasury owner through `transferOwnership()` can break `Governer.sol` and `Auction.sol`
### Description
_Submitted by scaraven_
[Governor.sol#L21](https://github.com/code-423n4/2022-09-nouns-builder/blob/7e9fddbbacdd7d7812e912a369cfd862ee67dc03/src/governance/governor/Governor.sol#L21)
[Ownable.so... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: [08] Unused storage variable `_approvedSwapTokens` exists
### Description
### Finding description and impact
There is an unused storage variable.
### Proof of Concept
The `_approvedSwapTokens` variable in VaultRouter has no usage. This variable is presumably intended to hold information about swappable toke... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Depositor can bypass the `max deposit` limit
### Description
Depositors can easily bypass the maximum deposit limit by specifying another recipient address than the one they are depositing from
### Impact
Bypassing the deposit limit | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: In contract L2DominationToken, at line 12 variable l1Token_ is declared private and then at line 13 it’s value is returned using an external function, there is no need to do that, it can be simply declared public, it will automatically generate a public getter and private setter for it’s value.
### Description... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | access-control | false | false | ## High: treasury is vulnerable to sandwich attack
### Description
## Handle
jonah1005
## Vulnerability details
## treasury is vulnerable to sandwich attack.
## Impact
There's a permissionless function `veCRVlock` in MochiTreasury. Since everyone can trigger this function, the attacker can launch a sandwich atta... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Name and Symbol Do Not Reference Underlying LP Token
### Description
This issue has been identified in the constructor of `WLPToken.sol`. The default `name` and `symbol` (`"Wrapped LP Token"`, `"wlpToken"`) do not reference the name or symbol of the underlying `lpToken`, which can confuse users about the relat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of zero-value checks
### Description
Certain functions fail to validate incoming arguments, so callers of these functions could mistakenly set important state variables to a zero value, misconfiguring the system. For example, the constructor in the BunniHub contract sets the `poolManager`, `weth`, and `bu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of Input Validation
### Description
During the security assessment, it was found that critical parameters could be set to undesired values such as `address(0)` or unrealistic numbers. For instance:
1. **Constructor Zero Address Checks**: Some constructors of the project lack validation to ensure that zer... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | token | true | false | ## High: Controller and receiver cannot redeem shares after depositing fund to if receiver address differs
### Description
The ERC20 shares are minted to the receiver, but the `SuperVaultStrategy.state` is created (with relevant `accumulatorShares` and cost basis for shares) for the controller.
```solidity
strategy.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | First Depositor Issue | true | true | _Submitted by MiloTruck, also found by cccz, oyc_109, VAD37, PP1004, SmartSek, minhquanym, unforgiven, berndartmueller, WatchPug, CertoraInc, and sorrynotsorry_
The attack vector and impact is the same as [TOB-YEARN-003](https://github.com/yearn/yearn-security/blob/master/audits/20210719\_ToB_yearn_vaultsv2/ToB\_-\_Ye... | Code4rena | 3 | Rubicon |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | critical | token | false | false | ## Critical: Transferring mystery boxes bricks token redemption
### Description
`MysteryBox` is an `ERC1155` contract which users expect to be able to transfer to other addresses via the in-built transfer functions. But `MysteryBox::claimMysteryBoxes()` [reverts](https://github.com/Earnft/smart-contracts/blob/43d3a830... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | false | false | ## Medium: Redstone Oracle Adapter Is Flawed
### Description
The [Redstone adapter](https://github.com/euler-xyz/euler-price-oracle/blob/eeb1847df7d9d58029de37225dabf963bf1a65e6/src/adapter/redstone/RedstoneCoreOracle.sol) works by locally caching the prices received through the Redstone pull-based oracle. The user su... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Supply Chain Attack
### Description
## Dependency Management
If not pinned to a specific version, all dependencies will be updated to the latest version. Thus, the application is more prone to supply chain attacks.
## Remediation
Consider pinning all the dependencies to a specific version and updating them ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Presence of two equivalent functions
### Description
Both the `set_minter_allowed` and `update_minter_allowance` functions exhibit identical logic.
This redundancy contributes to an unnecessarily expanded contract size and increased gas consumption.
Code Location
-------------
The `set_minter_allowed` and `... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | false | ## Medium: `ChainlinkOracle` doesn't validate for minAnswer/maxAnswer
### Description
`ChainlinkOracle` doesn't validate for minAnswer/maxAnswer
### Impact
In the even of a flash crash, user's lenders will loose their assets
### Recommendation
If the price is outside the minPrice/maxPrice of the oracle, activate a 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 | medium | other | false | false | ## Medium: ## Auction can be ended with large limit order
### Description
Source: https://github.com/sherlock-audit/2022-09-knox-judging/issues/153
## Found by
ArbitraryExecution
In the function AuctionInternal._previewWithdraw, the number type(int128).max is used as a sentinel value for deciding whether the aucti... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Validation for Loan Owner
### Description
In the `ProtectionBlueprint` contract, the function `enableConcreteLite` does not validate if the `loanId_Owner` is set before proceeding. This missing validation could result in sending unnecessary cross-chain communication (CCCM) messages, which could impa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | front-running | true | false |
<https://github.com/rabbitholegg/quest-protocol/blob/8c4c1f71221570b14a0479c216583342bd652d8d/contracts/Quest.sol#L113>
Let us look closely into the `Quest.sol#claim` function
```solidity
/// @notice Allows user to claim the rewards entitled to them
/// @dev User can claim based on the (unclaimed) number of tokens t... | Code4rena | 5 | RabbitHole |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Function redeemFresh may not fail early
### Description
The `redeemFresh` function of the `CToken` contract has been modified to [inline a validation](https://github.com/compound-finance/compound-protocol-alpha/blob/1cf040412fc8a0cfd1187bb0d8a525c3ae2f78aa/contracts/CToken.sol#L699) previously done in the [`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 | other | true | false | ## High: Method `depositRequest(...)` allows the last deposit to be more than the set deposit cap
### Description
**Severity**: High
**Status**: Resolved
**Description**
In Contract Branch.sol, the method `depositRequest()` checks if the `depositCap` has been reached before processing any deposit.
However, the 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 | medium | storage | false | false | ## Medium: PRIVATE ACCESS TOKEN IN URL
### Description
Sensitive information within URLs may be logged in various locations, including the user's browser, the web server and any forward or reverse proxy servers between the two endpoints. URLs may also be displayed on-screen, bookmarked or emailed around by users. Plac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TRST-M-6 option board will be settled with incorrect prices when settled after a delay
### Description
**Description:**
`settleExpiredBoard()` runs after a board expires to perform accounting. It uses
`getSettlementPriceForMarket()` to get the settlement price, which simply returns the current
price. It ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: NatSpec comment on 255 owner limitation in `_addOwner()` being ambiguous
### Description
The discrepancy between the NatSpec comment in the `_addOwner` function of the MultiOwnable contract and its actual implementation could lead to misunderstandings about the contract's owner limit. The comment suggests a li... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: recover() inconsistently allows recovering tokens to the contract address
### Description
The `ERC20Wrapper.depositFor()` function does not allow minting tokens to `address(this)`. However, this check is not applied in the `recover()` function.
### Recommendation
Consider checking that `account` is not `addre... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: CORS - ACAO Header Reflects Origin Request Header
### Description
There is a CORS header misconfiguration on the main HTLC API. Currently, the server returns two CORS headers, so it's not vulnerable, but the first of these two headers is still reflected from the requesting domain's Origin request header.
### ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Dao.sol`: Insufficient validation for proposal creation
### Description
_Submitted by hickuphh3, 0xRajeev, also found by gpersoon and shw_
In general, creating invalid proposals is easy due to the lack of validation in the `new*Proposal()` functions.
- The `typeStr` is not validated at all. For example, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Input Validation
### Description
**Update**
Marked as "Mitigated" by the client. Addressed in: `6c2cd78ac298f52516c64d0d48e7db706d0cb12b`.
The client provided the following explanation:
Quantstamp correctly notes that some variables do not have validations for null checks or known erroneous values. W... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: DeBridgeValidator::validateTxData centralization risk, rescuer can steal user funds by patching order
### Description
When creating a DLN order on the destination chain while bridging liquidity with DeBridge, the `orderAuthorityDst` is granted to the address that has the `CORE_REGISTRY_RESCUER_ROLE` on the des... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 gauges can not be voted on
### Description
The governor can create arbitrary gauges, but these gauges cannot be used for voting because they do not have a fee distributor associated. The `_vote` function makes a call to the fee distributor:
```solidity
/// @dev deposit the votes to the FeeDistributo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 `owner` passed to `Manager::redeem` in YToken withdrawal flow
### Description
**Description:** YieldFi’s yield tokens (`YTokens`) implement a more complex withdrawal mechanism than a standard ERC-4626 vault. Instead of executing withdrawals immediately, they defer them to a central `Manager` contrac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | false | false | ## Low: Unnecessary use of SafeMath Library
### Description
The SafeMath library is imported and used in the MultiRewards contract. However, the compiler version specified in the contract is **0.8.22**, which includes built-in overflow and underflow checks for integer operations. Using SafeMath in this context is redu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Making `public` Functions `external`
### Description
Several functions in the [`LOB`](https://github.com/longgammalabs/hanji-contracts/blob/09b6188e028650b9c1758010846080c5f8c80f8e/src/OnchainLOB.sol) contract that are marked as `public` could be declared as `external` to save gas costs and improve 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 | medium | dos | false | false | ## Medium: Unbounded iteration in `NFTXEligiblityManager.distribute` over `_feeReceivers`
### Description
`NFTXEligiblityManager.distribute` iterates over all `_feeReceivers`. If the number of `_feeReceivers` gets too big, the transaction's gas cost could exceed the block gas limit and make it impossible to call `dist... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | false | ## High: Anyone Can Uninstall the Validator Module from Any Wallet
### Description
When uninstalling the module, there is no authentication made to the `msg.sender`, the sender parameter is extracted from the data, and we deal with it as if it is the actual sender.
This will allow anyone to call `CredibleAccountModul... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Pool IDs can just be incrementing integers ✓ Fixed
### Description
Pool IDs are currently `bytes32` values that increment by `2**128`. After discussion with the development team, it seems that this was in preparation for a feature that was ultimately not used. Pool IDs should instead just be incrementing integ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [04] Data corruption handled in different ways
### Description
The function `_whenSending()` sometimes returns an error string when it encounters corrupt data. Sometimes it reverts when the corruption is detected in `generateSentAssetKeys()`.
### Proof of Concept
[LSP1UniversalReceiverDelegateUP.sol#L201-L252... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Number of curated pools can only be 10 at any point
### Description
## Handle
0xRajeev
## Vulnerability details
## Impact
Without a setter for curatedPoolSize, the number of curated pools at any point can only be a max of 10 forever, and will require removing one to accommodate another one. It is unclear ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Prevent users from burning token via lsETH /wlsETH transfer ortransferFrom functions
### Description
The current implementation of both lsETH (SharesManager component of River contract) and wlsETH allows the user to "burn" tokens, sending them directly to the address(0) via the `transfer` and `transferFrom` 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 | other | false | false | ## Low: Using vulnerable dependency of OpenZeppelin
### Description
The package.json configuration file says that the project is using 4.5.0 of OZ which has a not last update version
**Recommendation:**
Use patched versions
Latest non vulnerable version 4.8.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... | cyfrin_structured | low | other | true | false | ## Low: Unnecessary `_msgSender()` call in `_resolveVaultId` when `caller` parameter is available
### Description
In `RWASegWrap::_resolveVaultId()`, the function receives a `caller` parameter representing the address for which a vault ID should be resolved, but when calling `_addVault()`, it uses `_msgSender()` inste... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unsold tokens from a FPAM auction, will be stuck in the protocol, after the auction concludes
### Description
The ``Axis-Finance`` protocol allows sellers to create two types of auctions: **FPAM** & **EMPAM**. An **FPAM** auction allows sellers to set a price, and a maxPayout, as well as create a prefunded ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Original Hot Signer that becomes Compromised or Malicious can take over all undeployed systems
### Description
**Impact**
The known issues specify:
https://github.com/solidity-labs-io/kleidi/blob/1a06ac16bc99d0b4081281329d03064c3737f5e4/docs/KNOWN_ISSUES.md#L5
This is correct, however, it's worth highlight... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unintentionally register a non-relevant DNS name owner
### Description
If a user proves and claims a DNS name using a wrong address format, it executes successfully without getting any error and the DNS name owner will be changed to a new unknown address.
I considered this as medium severity, as it is high... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | false | false | ## Low: Hardcoded Decimal Conversion May Not Support All Erc-20 Tokens
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> We dont care about ERC20 token that has decimal greater than 18.
**File(s) affected:**`Redeemer.sol, Minter.sol`
**Description:**... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Future depositors receive a portion of the reward that began to be distributed before their deposit
### Description
`sPinto` is an ERC4626 yield-bearing token. To avoid value extraction via flash loans, it implements a vesting mechanism. Once the reward is received, it is distributed within the next 2 hours... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users Cannot Rely on Their Ability to Transfer Tokens
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> This is the intended behavior.
**File(s) affected:**`MaviaToken.sol`
**Description:** Any Mavia token holder cannot rely on the ability... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Additional Safety Checks
### Description
## Light Protocol Audit 05 — General Findings
## Remediation
Add the missing validations mentioned above.
## Patch
1. **Issue #1** was resolved by removing the function.
2. **Issue #2** was resolved in commit `534d90f`.
3. **Issue #3** was resolved in commit `6accb2... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Low: Emergency period toggling can be used to selectively block transactions
### Description
The `EmergencyPeriod` contract allows the admin to repeatedly toggle the emergency period between active and inactive until the `_emergencyPeriodEndDate` has passed. As such, a malicious admin could cause transactions 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 | medium | other | false | false | ## Medium: Auction payout goes to `AuctionDemo` contract owner, not the token owner
### Description
At the end of an auction in `AuctionDemo`, the highest bidder claims the token, which transfers the token from the token owner to the auction winner. In the same transaction, the token owner should receive the auction 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 | reentrancy | true | false | ## Low: Reentrancy In AAVE Vaults
### Description
There is a reentrancy vector within the AAVE vaults when `supply()` is called. The issue exists within the vault’s `mint()` function, as the call to `POOL.supply()` will perform a transfer of the underlying token. If the underlying token is reenterable then it 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 | medium | other | false | false | ## Medium: Lack of Event Emission
### Description
None of the instructions in either program emit events upon execution. This omission hinders transparency and external observability. Without emitted events, off-chain consumers such as dashboards, indexers, and other smart contracts must rely on custom transaction-par... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Implementation Keeps Functionalities for Deprecated Variables
### Description
At line [82](https://github.com/scroll-tech/scroll/blob/45e1305de5f7a1dc5aadadd7d3bb6726a5dee949/contracts/src/L1/gateways/L1GatewayRouter.sol#L82) of `L1GatewayRouter.sol`, it is explained that the `ethGateway` parameter is no longe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Risk Of Double-Spending Due To Lack Of State Tracking
### Description
The `grabChestTreasury()` function from the ChestManager contract enables an admin to grab the treasury associated with a specific chest.
```
function grabChestTreasury(uint256 chestId) external onlyRole(DEFAULT_ADMIN_ROLE) {
uint256 amou... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: [07]
### Description
When a block is committed, its hash will be stored in `storedBlockHashes`:
[Executor.sol#L164](https://github.com/code-423n4/2022-10-zksync/blob/358f38736351a8a27e325dfcb665eeba5ec02bd5/ethereum/contracts/zksync/facets/Executor.sol#L164)
If this block is reverted, it is not removed from `... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Risk of locking jettons in the router contract with cross-router swaps
### Description
A cross-router swap operation can result in the middle jettons getting stuck in the second router because of insufficient gas checks.
The `pay_to` message handler of the `router` contract sets the `fwd_ton_amount` value ... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.