prompt listlengths 2 2 | source stringclasses 3
values | severity stringclasses 5
values | category stringclasses 186
values | has_code bool 2
classes | has_poc bool 2
classes | reference_response stringlengths 23 5k | firm stringclasses 26
values | quality_score float64 0 5 | protocol stringclasses 398
values |
|---|---|---|---|---|---|---|---|---|---|
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Offer with incorrect `offerType` is treated as sell offer
### Description
There are no checks on `offerType` the during offer creation. So if user mistakenly sets an incorrect `offerType` to an arbitrarily value, it's treated as a sell offer:
It is recommended to add sanity check: | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Comparisons with zero for unsigned integers
### Description
### PROBLEM
`>0` is less gas efficient than `!0` if you enable the optimizer at 10k AND you’re in a require statement.
Detailed explanation with the opcodes [here](https://twitter.com/gzeon/status/1485428085885640706)
### PROOF OF CONCEPT
Instances... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Parameter mismatch in `IdEnforcer::beforeHook()` event emission
### Description
**Description:** There's a parameter ordering mismatch in the IdEnforcer contract when emitting the `UsedId` event in the `beforeHook()` function. The event declaration and the actual emission use different parameter orders for 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 | access-control | true | true | ## Medium: Unrestricted proposal cancellation allows governance process manipulation
### Description
The `Governance::cancel` function in the contract is overly permissive, allowing proposals to be canceled in all states except `Executed`. Currently, both proposers and non-proposers (if the proposer's voting power fal... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | true | ## High: Groupbuy:` _verifyUnsuccessfulState` and `_verifySuccessfulState` both can return true when block.timestamp == pool.terminationPeriod
### Description
### Impact
The functions `_verifyUnsuccessfulState` and `_verifySuccessfulState` should always have a differing behavior with regards to reversion, i.e. when 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 | high | oracle | true | false | ## High: The `redeemDyad()` Function Does Not Adjust Decimals Properly
### Description
The `redeemDyad()` function can be called to burn up DYAD tokens to free up collateral, and then pay out that collateral to the owner.
```solidity
burnDyad(id, amount);
Vault _vault = Vault(vault);
uint asset = amount
* 10**_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 | low | overflow | true | true | ## Low: Potential over�low in transactionId allowing arbitrary execution of transactions by a malicious owner
### Description
The MultiSigWallet does not use SafeMath, resulting in the potential for overflow and underflow of numeric values. This allows a malicious owner to overflow transactionId through the use of sub... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lines are too long
### Description
Maximum suggested line length is 120 characters according to the [documentation](https://docs.soliditylang.org/en/latest/style-guide.html#maximum-line-length).
*There are 346 instances of this issue.*
--- | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: Reliance on Application-Level Logic in Chain State Transition Proof
### Description
The public input to the proof includes [`finalizationData.l1RollingHash`, `finalizationData.l1RollingHashMessageNumber`, and `finalizationData.l2MerkleRoots`](https://github.com/Consensys/linea-contracts-audit/blob/bb6eb7284d1a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | false | false | ## Low: Validate ProductId
### Description
## Code Review: Clearinghouse.sol
In the functions `withdrawCollateral` and `depositCollateral` in the `Clearinghouse.sol` contract, it is better to validate if the `txn.productId` is in the spot engine or not, before depositing or withdrawing.
### Remediation
Add checks t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | false | false | ## Medium: Possible Denial-of-Service attack
### Description
**Description**
OwnerProxy_V1.sol: function depositOnBehalf().
Function deposits provided an amount of tokens to the vault, which are transferred from the
caller of function(Line 178). At the end of function, balance is checked to be zero.
In case, some amo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The EXPIRED judgment does not include the current block
### Description
The EXPIRED judgment does not include the current block, fp can still be unbonded after Delegation EXPIRED.
### Impact
When the unbonded event is executed after the EXPIRED event, a painc occurs and the chain is halted.
Or it will result... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | reentrancy | false | false | ## Medium: Malicious Router can steal NFTs via Re-Entrancy attack
### Description
If the factory owner approves a malicious `_router`, it is possible for the malicious router to call functions like `swapTokenForAnyNFTs()` and set `is-Router` to true. Once that function reaches `router.pairTransferERC20From()` in `vali... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | false | false | ## Low: Inconsistent milestone defaults can lead to rejected transactions Difficulty: Low
### Description
Pantheon's **MainnetTransactionValidator** will raise a `REPLAY_PROTECTED_SIGNATURES_NOT_SUPPORTED` exception if a transaction does have an explicit `chainId`. With a custom genesis file and chain ID, any transact... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unexpected Panic In EVM Contract Runtime
### Description
## Se i EVM Audit 04 — Vulnerabilities
Panic within EVM contract runtime are treated as simple implementation bugs. The panics are silently recovered, and users will not be charged for transactions. However, this also implies that user-triggerable pani... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Soft Restricted Staker Role can withdraw stUSDe for USDe
### Description
The Ethena readme has the following decription of legal requirements for the Soft Restricted Staker Role:
Due to legal requirements, there's a `SOFT_RESTRICTED_STAKER_ROLE` and `FULL_RESTRICTED_STAKER_ROLE`.
The former is for ad... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | high | token | true | true | ## High: Attacker can bypass token sale `maxAllocationPerUser` restriction to buy out the entire tier
### Description
An attacker can bypass the token sale `maxAllocationPerUser` restriction to buy out the entire tier by doing multiple small buys under this limit.
### Impact
Permanent grief for other users who are un... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Deprecated Function
### Description
**Update**
`_setupRole()` was replaced with `_grantRole()`. Addressed in: `fda2f7389ce13248680fcf538bbf5ad7e1975f70`.
The client provided the following explanation:
> _Fixed it together with [SF-10](https://certificate.quantstamp.com/full/secured-finance/20cad24f-5901-4107... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Function `canWithdraw()` in VotiumStrategy doesn't check if withdrawal has been already executed
### Description
https://github.com/code-423n4/2023-09-asymmetry/blob/main/contracts/strategies/votium/VotiumStrategy.sol#L155
The implementation of `canWithdraw()` in the VotiumStrategy contract just checks 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... | solodit_api | high | Deposit/Reward tokens | true | false | Source: https://github.com/sherlock-audit/2023-02-blueberry-judging/issues/319
## Found by
berndartmueller, 0x52
## Summary
The `burn` function in the `WIchiFarm` contract transfers too few `ICHI` **v2** farming reward tokens to the caller due to using 9 decimals instead of 18 decimals for the `ICHI` **v2** token.... | Sherlock | 5 | Blueberry |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Empty arrays of staking targets and incentives should not be sent to deposit processors
### Description
In the `_distributeStakingIncentivesBatch()` function, after filtering out staking targets with zero incentives, the resulting `updatedStakingTargets` and `updatedStakingAmounts` arrays may end up being empt... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 The Expiry Parameter
### Description
The issue arises within the [`placeOrder`](https://github.com/longgammalabs/hanji-contracts/blob/09b6188e028650b9c1758010846080c5f8c80f8e/src/OnchainLOB.sol#L199) function of the `LOB` contract.
There is an issue due to the absence of an expiration parameter for... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Distinguish Q-numbers
### Description
The codebase uses Q-numbers and performs mathematical operations on them. To make it
easier to distinguish variables holding Q-numbers from other variables, consider adding
suffixed to variables with Q-numbers. For example, the pool’s **sqrtInterestRate** (which stores
a Q... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | reentrancy | false | false | ## High: Reentrancy in main functions.
### Description
**Description**
LockToken.sol:
1. withdraw Tokens(). External calls of .safeTransferFrom() on line 345, .transfer() on line 364, .burn() on lines 349 and 367 before writing of the nftMinted[_id] state variable with the false value on lines 350 and 368 respective... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | input-validation | false | false | ## Low: Missing validations when initializing CasimirRegistry
### Description
During Beacon Proxy deployment, CasimirRegistry can be deployed with 0 cluster size and 0 collateral.
### Recommendation
Consider validating inputs for cluster size and collateral. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Blocked accounts keep earning interest contrary to the WhitePaper
### Description
### Lines of code
### Proof of Concept
Lenders might be flagged as sanctioned by the ChainAnalysis oracle and these lenders can be blocked with the `nukeFromOrbit()` function or during a withdrawal execution. Both of these ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: [27] Superfluous event fields
### Description
`block.timestamp` and `block.number` are added to event information by default so adding them manually wastes gas
*There are 8 instances of this issue:* | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | liquidation | true | false | ## Gas: Fail fast in `LiquidationBranch::liquidateAccounts`
### Description
**Description:** In `LiquidationBranch::liquidateAccounts` there is no point calling `GlobalConfiguration::load` if the function is going to exit early because `accountsIds.length == 0`. Hence only load global config if this isn't the case.
*... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [12] `supportsInterface` Implementation Non-Compliant with ERC-165
### Description
**Contract Name:** `DefaultAdapter.sol`
**Function Name:** `supportsInterface`
**Description:**
The `supportsInterface` function does not return `true` for the ERC-165 interface ID (`0x01ffc9a7`), violating the standard and po... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inflation of ggAVAX share price by first depositor
### Description
Inflation of `ggAVAX` share price can be done by depositing as soon as the vault is created.
Impact:
1. Early depositor will be able steal other depositors funds
2. Exchange rate is inflated. As a result depositors are not able to deposit ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Pull tokens rather than pushing them
### Description
It wastes gas to push tokens to `saleRecipient` every time there is a buy.
### Examples
#### 1. [TokenSaleUpgradeable.sol:L183](https://github.com/code-423n4/2022-02-badger-citadel/blob/84596551d62f243d13fcb2d486346dde08002f7b/contracts/TokenSaleUpgradeabl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | reentrancy | false | false | ## High: Liquidations are impossible for some Curve pools
### Description
Some curve pools have implementations such that Notional liquidations always revert.
### Impact
Liquidations are not possible, users can go into bad debt and there is no way to recover the lost funds.
### Recommendation
Use the `claim_admin_fe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: BathPair.sol#rebalancePair() can be front run to steal the pending rebalancing amount
### Description
## Lines of code
https://github.com/code-423n4/2022-05-rubicon/blob/8c312a63a91193c6a192a9aab44ff980fbfd7741/contracts/rubiconPools/BathToken.sol#L756-L759
## Vulnerability details
https://github.com/code... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: _availableCredits does not get updated when a receivable is burnt or transfered
### Description
1. In `_approveReceivable`, the following invariant is enforced:
- `availableCredit <= cc.creditLimit` // per borrower
- `0 ≤ X` approver_i adv ai ≤ `X` drawdown_bj ≤ clim
2. In `_prepareForDrawdown`, the follow... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Reentrancy | true | false | ## Vulnerability Report
## Severity
**High Risk**
## Context
`SeaDrop.sol#L586`
## Description
In case of a `mintPublic` call, the function `_checkMintQuantity` checks whether the minter has exceeded the parameter `maxMintsPerWallet`, among other things. However, re-entrancy in the above fee dispersal mechanism can ... | Spearbit | 5 | SeaDrop |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Calling `contains` before `insert`
### Description
**Severity**: Low
**Status**: Acknowledged
**File**: token-locker/src/lib.rs
**Function**: Contract::record_proof
**Details**:
The `UnorderedSet::insert` function returns false if the element already exists in the set. While the `contains` call requires ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Batch Hashes Due to Memory Corruption
### Description
When committing a new batch, the `ScrollChain` contract calls the [`_commitChunk`](https://github.com/scroll-tech/scroll/blob/3bc8a3f5c6ac816ddffadca41024331dcf4d3064/contracts/src/L1/rollup/ScrollChain.sol#L394) function to compute a hash for 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 | low | other | false | false | ## Low: TypeScript Inconsistency
### Description
The codebase makes extensive use of TypeScript types to validate consistency and improve code clarity. Here are some instances that could benefit from more consistent types:
* [`renderCommonData`](https://github.com/latticexyz/mud/blob/f6133591a86eb169a7b1b2b8d342733a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: pairTransferERC20From() only supports ERC721 NFTs
### Description
The function `pairTransferERC20From()` is present in both `LSSVMRouter` and `VeryFastRouter`, but it only checks for `ERC721_ERC20`. This means that ERC1155 NFTs are not supported by the routers.
The following code is present in both `LSSVMRou... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Refactor `configToken` function to fail early and `saves 1 external call` on failing
### Description
To refactor the `configToken` function to fail early and save one external call on failing condition. You can move the check for `config.isActive` and the subsequent check for `config.token0TriggerTick >= confi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `veRAACToken::_updateBoostState` function sets individual user voting power instead of system-wide totals
### Description
the `_updateBoostState` function incorrectly assigns an individual user’s voting power to a global state variable, leading to erroneous boost calculations. This misassignment affects 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 | gas | initialization | false | false | ## Gas: Decorate constructor with payable to save gas
### Description
Having a constructor without `payable` introduces additional checks, thus increasing gas overhead on deployment.
### Recommendation
If the contract has the ability to withdraw native tokens, it is deemed safe to add `payable` to the constructor to ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | false | false | ## Medium: Insecure storage of session data in local storage
### Description
HTML5 local storage is used to hold session data, including keychain values. Because there are no access controls on modifying and retrieving this data using JavaScript, data in local storage is vulnerable to XSS attacks.
**Figure 4.1:** Key... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `rebalancePosition()` transaction is susceptible to frontrunning
### Description
Position collaterals are rebalanced to align with a desired ratio specified by the `GammaVault` manager when the manager calls `rebalancePosition`. The steps performed during the rebalancing process include:
1. Collecting fees... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Lack of input validation
### Description
Although most of the functions throughout the codebase properly validate function inputs, there are some instances of functions that do not. For example:
* [`verifyConstructorParams`](https://github.com/ribbon-finance/ribbon-v2/blob/3fa3bec15ad1e2b18ad87f979b87a683684... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incomplete Documentation for Function `placeOrder`
### Description
The documentation for the [`placeOrder`](https://github.com/longgammalabs/hanji-contracts/blob/09b6188e028650b9c1758010846080c5f8c80f8e/src/OnchainLOB.sol#L193) function is missing important information regarding the `quantity` parameter. Speci... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Permission-granting is too simplistic and not flexible enough
### Description
The Yield Protocol contracts implement an oversimplified permission system that can be abused by the administrator.
The Yield Protocol implements several contracts that need to call privileged functions from each other. For instance... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Protocol Fees Can Block Withdrawals
### Description
It is possible for the payment of accrued fees to cause withdrawals on the same vault to fail. When processing withdrawals in `AcrossWithdraw`, the withdrawal amount is set using `sharesBefore`, which is recorded prior to the removal of accrued fees. This me... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: MerkleReserveMinter minting methodology is incompatible with current governance structure and can lead to migrated DAOs being hijacked immediately
### Description
MerkleReserveMinter allows large number of tokens to be minted instantaneously which is incompatible with the current governance structure which ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Prevent token claims if the minimum threshold is not surpassed
### Description
Allowing users to either **claim tokens** or **withdraw payment tokens** when the `min_threshold` is not met can result in locked funds. If some users claim their tokens while others withdraw, this creates a scenario where uncoll... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Backrun of partly set constraints
### Description
The current version of `borgCore.updatePolicy(_contracts, _methodNames...)` doesn't allow setting up all constraints in one call because it doesn't support constraints for `UINT` and some constraints with multiple exact matches for one parameter. So, multipl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unbounded group array growth causes gas limit exceeded
### Description
The contract’s group array management system can cause gas limit issues when users have many token purchases with different expiration times. Each token purchase creates a new Group in the `_group[account][tokenId]` array, and functions ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Extra debug events are present in PrivateDistribution smart contract
### Description
**Description**
Typo in error message in PrivateDistribution smart contract.
**Snippet**:
**Recommendation**:
Make `withdrawl` to become `withdrawal`. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [ACKNOWLEDGED] Cross-token limit works correctly only with stablecoins in `TopUpAllowedRecipients`
### Description
In the function [`_validateSpendableBalance`](https://github.com/lidofinance/easy-track/tree/425f4a254ceb2be389f669580b9dc76618e92756/contracts/EVMScriptFactories/TopUpAllowedRecipients.sol#L152) ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Non-whitelisted reward tokens may be accepted by bribe voting reward vaults
### Description
The `createBribeVault()` function does not check if the reward tokens being used during vault creation have been whitelisted by Infrared. While `BribeVotingReward.notifyRewardAmount()` performs a reverting `!IVoter(vote... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `constant`s should be defined rather than using magic numbers
### Description
Even [assembly](https://github.com/code-423n4/2022-05-opensea-seaport/blob/9d7ce4d08bf3c3010304a0476a785c70c0e90ae7/contracts/lib/TokenTransferrer.sol#L35-L39) can benefit from using readable constants instead of hex/numeric literals... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistency Between Accounts
### Description
## Authority and Payer Accounts Distinction
Despite the clear distinction between the two roles, several parts of the code handle the authority and payer accounts as the same entity. For instance, in the `InitializeProof` instruction, the rent payer for the Proof... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unchecked return value for IWETH.transfer call
### Description
In `EthUniswapPCVController`, there is a call to `IWETH.transfer` that does not check the return value:
**code/contracts/pcv/EthUniswapPCVController.sol:L122**
```
weth.transfer(address(pair), amount);
```
It is usually good to add a requir... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## Low: Transcoders with low bonded stake can avoid slashing penalties
### Description
When a transcoder is slashed, the Job Manager sets a percentage of the bonded delegated stake to burn as a penalty. This is passed into `slashTranscoder` as `_slashAmount`. Based on this parameter, there will always be a maximum `n`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Failure to Check for Negative Multiplier
### Description
## MsgUpsertFeeDenom Validation
In `MsgUpsertFeeDenom`, while `Validate` checks for several conditions related to the multiplier, it does not check whether the multiplier is negative. A negative multiplier may result in incorrect or illogical fee calcul... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [07] Sale Tokens with transfer callbacks can be used to launch refundable pools
### Description
The `ILOPOOL` contract doesn't follow the Checks-Effects-Interactions pattern, and this could be abused by a pool creator.
1. Call `launch()` with a Sale Token with callback.
2. This will call `_refundProject()` 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 | reentrancy | false | false | ## Low: Potential reentry
### Description
**Description**
The place looks potentially dangerous for reentry.
- TransferHelper.safeTransferFrom(token,_from,_pool,_amount) (contracts/Cohort.sol#160)
- IRiskPool(_pool).enter(_from,_amount) (contracts/Cohort.sol#161)
State variables written after the call(s):
- poolCapit... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | false | false | ## High: Incorrect `last_tvl` state after price pair removal
### Description
- https://github.com/defidotmoney/dfm-core/blob/0bde9fb784400d73f434d585aab7d9dd0ad1c679/contracts/cdp/oracles/AggregateStablePrice.vy#L90-L100
The `AggregateStablePrice` contract doesn't remove the corresponding entry in the `last_tvl` arra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: user.creation is updated incorrectly when the user tries to extend membership
### Description
## Handle
WatchPug
## Vulnerability details
https://github.com/code-423n4/2021-11-fairside/blob/20c68793f48ee2678508b9d3a1bae917c007b712/contracts/network/FSDNetwork.sol#L274-L291
### PoC
1. Alice calls `fun... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 contract existence checks by using low level calls
### Description
Prior to 0.8.10 the compiler inserted extra code, including `EXTCODESIZE` (**100 gas**), to check for contract existence for external function calls. In more recent solidity versions, the compiler will not insert these checks if the exter... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: Possible Address Collision
### Description
## Handle Initiate Transfer Token
In `handle_initiate_transfer_token`, a check exists while bridging Terra CW20 tokens, which requires the asset’s address not to resemble a specific native address format, represented by an array starting with `[1, 0, 0, ...]` (eleven... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: GoBoolExpressions
### Description
**Severity**: Low
**Status**: Acknowledged
**Description:**
The codebase contains multiple instances of boolean expressions that are always true or false. These do not pose a security risk but can impact code readability and maintainability.
**Files:**
app/ante/cosmos/set... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: DEFAULTREVENUESPLIT LACKS INPUT VALIDATION
### Description
The `defaultRevenueSplit` parameter lacks input validation in the `SpigotedLoan` contract.`defaultRevenueSplit``SpigotedLoan`
Code Location
-------------
### Recommendation
**SOLVED:** The `Debt DAO team` solved this issue in commit
[760c5bfb9c352fb6... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [12] Use a more recent version of solidity
### Description
Use a solidity version of at least 0.8.2 to get simple compiler automatic inlining
Use a solidity version of at least 0.8.3 to get better struct packing and cheaper multiple storage reads
Use a solidity version of at least 0.8.4 to get custom errors, w... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Consolidate Token Metadata
### Description
## Token Pair Metadata
Information for a token pair is stored in two separate metadata structs:
## MOVE
### `TokenPairMetadata`
Stores the metadata required for the token pairs.
- **creator**: `address`
The admin of the token pair.
- **fee_amount**: `coin:... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Use of Compiler Version with Known Bugs
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `c1189e4c7a3c72d9d5443db9e7814b90e5ea71da`.
**File(s) affected:**`BountyV1.sol`
**Description:** The `BountyV1` contract is compiled using Solidity `v0.8.11` (according to the Hardhat configurati... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Staking Bonus Is Not Ensured
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> The reward bonus is first come first serve and we don't want to make it mandatory for that. Our UI/Any UI should track the reward amount available for the recipients... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 validation on ProtectStrategy
### Description
It has been observed that no parameter passed into the constructor was properly validated.
```
constructor(
IERC20 baseAsset_,
address feeRecipient_,
address owner_,
uint256 rewardFee_,
address claimRouter_,
address vault_
) {
IERC20Metadat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users can MAKE EMA-Oracle price outdated with direct transfers to StableSwap
### Description
The EMA oracle, designed to utilize HydraDX's Omnipools and StableSwap for exchange rate information, operates by monitoring activities within these liquidity pools. It looks for specific operations like exchanges, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User's might be able to claim their prizes even after shutdown
### Description
User's might be able to claim their prizes even after shutdown due to `lastObservationAt` and draw period difference
### Impact
User's can double claim assets when vault shutdowns eventually
### Recommendation
Add a notShutdown... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | rounding | true | false | ## Medium: Inconsistency between precision factors / dimensional analysis
### Description
The precision/dimensional analysis for `rewardsRate` and `dahliaRate` are matching:
```
1018[I]
[T][L]
```
In this case where `[I] = [L]` simplifies to:
```
[T]
```
The discrepancy arises when one looks at the code in `VaultM... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | true | ## High: The Users who voted for collection shutdown will lose their collection tokens by cancelling the shutdown
### Description
When a user votes for collection shutdown, the `CollectionShutdown` contract gathers the whole balance from the user. However, when cancelling the shutdown process, the contract doesn't ref... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 inflate their funding wallet balance by sending an expired Swap message to the settlement contract
### Description
Users can inflate their funding wallet balance of any token by sending a **Swap** message that will trigger a failure reply message from the **PixelswapStreamPool** contract. Users can u... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | initialization | true | false | ## Gas: Using XOR (`^`) and AND (`&`) bitwise equivalents for gas optimizations
### Description
Given 4 variables a, b, c and d represented as such:
To have a == b means that every 0 and 1 match on both variables. Meaning that a XOR (operator ^) would evaluate to 0 ((a ^ b) == 0), as it excludes by definition any equ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unused event `OwnershipTransferRequested` in `MTokenMessagerLZ`
### Description
**Description:** The `MTokenMessagerLZ` contract declares an `OwnershipTransferRequested` event but never emits it anywhere in the contract. This suggests there might have been plans to implement a timelock mechanism for ownership ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 update when modifying pool fee
### Description
The `FeeManager` contract allows the master address to modify the pool fee. This can be done to a single pool using the [`setPoolFee`](https://github.com/code-423n4/2024-02-wise-lending/blob/79186b243d8553e66358c05497e5ccfd9488b5e2/contracts/FeeManager/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Input Validation
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `ffbcc0aa297894d489fe6754073b55dea83edd81`, `1d3577960d7cb47d41d48c3d843851f81a781c73`. The client provided the following explanation:
> Added all recommended validations. The second commit removes 1.3 checks, s... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Deceptive inline comment in Escrow contract
### Description
Considering the issue “*The Escrow’s owner can arbitrarily increase the balance of any job without spending RNDR tokens*” above, the comment in [`Escrow.sol`](https://github.com/jeualvarez/Token-Audit/blob/e946177747e57312690775204834b8fca1bbb0d5/cont... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | true | false | ## Low: Lack of zero check
### Description
Consider the following scenarios:
### Recommendation
1. Check that the sequencer address is not zero before adding it.
```solidity
function addSequencer(address _sequencer) external onlyOwnerOrAdmin {
require(_sequencer != address(0), "sequencer with zero 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 | medium | oracle | false | false | ## Medium: Potential arbitrage opportunity in the rsETH price calculation for the unpriveleged users
### Description
Due to the nature of the Chainlink price oracles, the upcoming price updates are predictable. Additionally, the predictable price update can be forced by an attacker by calling the updateRSETHPrice func... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Admin Can Exceed Max Rate Limit Points
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `9b3b94261c783dbfd378285bbc8950bb4f84fd18`.
**File(s) affected:**`rell/src/lib/ft4/external/admin/operations.rell,`, `rell/src/lib/ft4/core/prioritization/default/module.rell`, `rell/src/lib/ft4/co... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | true | false | ## Low: Code Maturity
### Description
## Code Review Recommendations
1. The hardcoded `VERSION` in OneSig differs from the value utilized in the domain separator. To ensure consistency, it is recommended to utilize the same value in both.
2. It is recommended to add validation in `verifyNSignatures` to disallow a 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 | gas | storage | true | false | ## Gas: Optimize names to save gas
### Description
`public`/`external` function names and `public` member variable names can be optimized to save gas. See [this](https://gist.github.com/IllIllI000/a5d8b486a8259f9f77891a919febd1a9) link for an example of how it works. Below are the interfaces/abstract contracts that ca... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | true | true | ## Low: _onFetchDataFromResolver does not return an error
### Description
The `_onFetchDataFromResolver` function does not return an error if the sender does not have reading rights; instead, it silently returns empty bytes.
```solidity
function _onFetchDataFromResolver(bytes32 key, bool hash)
internal
view
vir... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Mechanism to Prevent Owner From Bidding in Their Own Auction Can Be Easily Bypassed
### Description
**Update**
Marked as "Mitigated" by the client. Addressed in: `714cdb08c6616c64ca26c30b3c10d6ac37054b70`. The client provided the following explanation:
> As noted, we have added checks to NFTMarketOffers.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 | token | true | false | ## Low: Pre and post balance checks on msg.sender is not needed
### Description
**Severity**: Informational
**Status**: Resolved
**Location**: BandoRouterV1.sol
**Description**
In the requestERC20Service() function, the additional safety checks on the pre and post balance of msg.sender are not needed, and a gas sp... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | false | false | ## Low: `paymasterAndData` v0.6 Encoding Not Supported
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `e4fc8f911190473ffc55f7b1d8b290cb709d6a92`.
**File(s) affected:**`ERC20PaymasterV06.sol`
**Description:** When a user operation is encoded, a `paymasterAndData` field is added to it that 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 | oracle | false | false | ## Low: Swap conversion is susceptible to MEV flashbots
### Description
## Handle
hickuphh3
## Vulnerability details
### Impact
In `veCVXStrategy`, the `cvxCRV -> ETH -> CVX` conversion via sushiswap is done with 0 minAmountOut, making it susceptible to sandwich attacks / MEV flashbots. This is also true for `Uni... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ReaperBaseStrategyv4.harvest() might revert in an emergency.
### Description
## Lines of code
https://github.com/code-423n4/2023-02-ethos/blob/73687f32b934c9d697b97745356cdf8a1f264955/Ethos-Vault/contracts/abstract/ReaperBaseStrategyv4.sol#L109
https://github.com/code-423n4/2023-02-ethos/blob/73687f32b934c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unbound recursive function call can use unlimited gas and break hats operation
### Description
some of the functions in the Hats and HatsIdUtilities contracts has recursive logics without limiting the number of iteration, this can cause unlimited gas usage if hat trees has huge depth and it won't be possibl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | flash-loan | true | false | ## Low: In `_withdrawAaveCollateral` fetch `aTokenAddress` from Aave instead of receiving as input in `refinance` as passing it to morpho and back again
### Description
Aave's `aTokenAddress` is only required when withdrawing collateral in `_withdrawAaveCollateral`, but currently it is:
* passed in as input to `refina... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Price impact miscalculation on partial closures
### Description
When closing a trade via closeTradeMarketCallback, the contract allows a user to specify a percentage of the position to close. The callback correctly applies this percentage when calculating collateral to close, profit/loss, and trade value.
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Scope 2 - initialCutHash May Go out of Sync With protocolVersion
### Description
When creating a new chain through the `StateTransitionManager`, its [protocol version](https://github.com/matter-labs/era-contracts/blob/189a7feeb7490597d64971052e26b7c6e918af0d/l1-contracts/contracts/state-transition/StateTransit... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing DelegateCall Check
### Description
`executeComposableDelegateCall` is a function that allows accounts with the `ComposableExecutionModule` installed to use this functionality via `execute` with `CALLTYPE_DELEGATECALL`.
```solidity
/// @notice It doesn't require access control as it is expected to 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 | token | false | false | ## Medium: If Approved Token Is A Fee-On-Transfer Token Then The Refund/Distribution Would Be Broken
### Description
**Severity** - Medium
**Status** - Resolved
**Description**
Let’s consider the example for Bullseye →
User makes a deposit using the play function and with the depositAmount , if this amount is 100... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.