prompt listlengths 2 2 | source stringclasses 3
values | severity stringclasses 5
values | category stringclasses 186
values | has_code bool 2
classes | has_poc bool 2
classes | reference_response stringlengths 23 5k | firm stringclasses 26
values | quality_score float64 0 5 | protocol stringclasses 398
values |
|---|---|---|---|---|---|---|---|---|---|
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Unused Return Value from `mint()` Function
### Description
**Severity**: Low
**Status**: Resolved
**Location**: Airdrops.sol
**Description**
In the `claim()` function of Airdrops.sol, the return value from the `mint()` function is not being used or captured for processing, potentially leading to unintended... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Missing Check When Transferring Tokens Out For A Given Promotion
### Description
_Submitted by leastwood_
#### Impact
The `claimRewards` function is called upon by ticket holders who parse a set of `_epochIds` they wish to claim rewards on. An internal call is made to `_calculateRewardAmount` to calculate... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Use assembly in place of `abi.decode` to extract calldata values more efficiently
### Description
Instead of using `abi.decode`, we can use assembly to decode our desired calldata values directly. This will allow us to avoid decoding calldata values that we will not use.
Total Instances: `3`
https://github.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 | token | true | false | ## Low: 12. REDUNDANT IMPORTS
### Description
**Severity:** Informational
**Path:** PolygonZkEVM.sol
**Description:**
The imports for ERC20BurnableUpgradeable.sol and Initializable.sol are redundant as they are either not used or already imported recursively.
**Remediation:** Remove the redundant imports.
**St... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ODSafeManager.enterSystem - Transfer wrong amount of collateral, debt
### Description
If src has less lockedCollateral and generatedDebt than safeHandler, `enterSystem` cannot succeed.
The `enterSystem` function is behaving differently than intended.
### Proof of Concept
The `ODSafeManager.enterSystem` 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 | medium | token | false | false | ## Medium: WalletImpl cannot receive NFTs as intended
### Description
WalletImpl is intended to turn pass through wallets into generalizable wallets that can be used for any purpose, including receiving NFTs. However, because it does not implement the `onERC721Received()` and `onERC1155Received()` functions, it will 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 | overflow | true | true | ## Low: Router.fullfilRedeemRequest() Rounds in Favor of the User
### Description
The following logic can be found in `ERC4626Router.fullfilRedeemRequest()`:
```solidity
if (assetsReturned < assetsRequested) {
uint256 percentReturned = MathLib.mulDiv(assetsReturned, WAD, assetsRequested);
sharesPending = MathLib.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Invalid Threshold range
### Description
## Multisig Implementation and Validation
The threshold represents the minimum number of signatures required for authenticating a transaction. The Aptos multisig implementation validates that the threshold is not zero.
## Code Snippet
The following Rust implementation... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | true | false | ## Medium: Lenders lose interests and pay deposit fees due to no slippage control
### Description
When a lender deposits quote tokens below the minimum of LUP(Lowest Utilization Price) and HTP(Highest Threshold Price), the deposits will not earn interest and will also be charged deposit fees, according to [docs](https... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Increase disallowlist for approvers
### Description
The function `onboard()` checks that the approver isn't one of the disallowed addresses. This list could be expanded with the following addresses to prevent mistakes and to maximize separation of duties:
- `owner`
- `msg.sender` (e.g., the Gnosis Safe)
```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 | liquidation | true | false | ## Low: [03] Adversary can game the flashAuction feature to block further flashAuction after trading collateral token and make liquidatorNFTClaim function revert and block liquidation if the NFT is Moonbird
### Description
In the current implementation, according to https://docs.astaria.xyz/docs/protocol-mechanics/fla... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `connect()` can be called externally in `AdminStrategy` causing DoS
### Description
The `connect()` function in the `AdminStrategy` contract is externally callable and lacks access control, which allows any address to call it before the official initialization via `AdminOperationalTreasury`. Once called, 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 | false | false | ## Low: Unlocked Pragma Compiler
### Description
The files in scope currently use floating pragma version `^0.8.0`, which means that the code can be compiled by any compiler version that is greater than or equal to `0.8.0`, and less than `0.9.0`. It is recommended that contracts should be deployed with the same compil... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 NatSpec Documentation
### Description
The `B14G` project lacks comprehensive NatSpec comments for functions, state variables, and contracts. NatSpec is a widely adopted standard for documenting Solidity contracts, providing clear and structured explanations for developers, auditors, and end-users.
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Trade fees can be avoided in limit orders
### Description
On limit order announcement the trade fee is calculated based on the current size of the position and its value is used on the execution of the limit order. However, it is not taken into account that the value of `additionalSize` in the position can ha... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Employ constants to mitigate unnecessary recomputation
### Description
In the `get_unlock_amount` function within the `mkl_token` module, there is an unnecessary computation of one month's duration in seconds as `DAY_SECONDS * 365 / 12` each time the function is called.
Code Location
-------------
The `get_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 | low | other | true | false | ## Low: Upgradeability is malfunctioning due to false gap placement
### Description
**Severity**: Low
**Status**: Acknowledged
**Description**
VodkaV2GMXHandler.sol - In that contract __gaps is not placed as the last variable of the declared variables which leads to having the storage mixed up with the upgraded ver... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: CEXes should work with shares
### Description
CEXes should fetch the token rate from the specific chain for deposits/withdrawals https://github.com/lidofinance/lido-l2-with-steth/blob/792071cdeaf61de927cc144e8c1c02d5f5996a01/contracts/optimism/TokenRateOracle.sol#L121. If a CEX uses the token rate from L1 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 | signature | false | false | ## Low: Unclear why operatorData.length is checked in _transferByPartition ✓ Fixed
### Description
It’s unclear why `operatorData.length` is being checked here:
**code/contracts/token/ERC1410/ERC1410.sol:L263-L264**
```
if(operatorData.length != 0 && data.length != 0) {
toPartition = \_getDestinationPartition(fr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Uncontrolled Gas Consumption When Sending ETH in Cross-Chain Messages - Phase 1
### Description
Cross-chain messages can be sent through the `Bridge` contract by calling the [`sendMessage`](https://github.com/taikoxyz/taiko-mono/blob/b47fc34cb0e7fe9b7ebd9416b3051a067483b860/packages/protocol/contracts/bridge/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 | low | oracle | true | false | ## Low: VaultAdapter’s setSlopes function permits zero or maximum kink values that cause division by zero
### Description
The `setSlopes` function in `VaultAdapter.sol` allows admin to set a kink value without any validation. If kink is set to 0 or 1e27, the interest rate calculation will revert due to division by 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 | medium | other | false | false | ## Medium: | Denial-of-Service With Failed Call
### Description
**Description**
`publicMint` relies on multiple external calls which can fail accidentally or deliberately. If just one consistently fails, users will not be able to mint.
**Recommendation**
Isolate external calls to another transaction(s). `wFTM` allo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Changing treasury , protocol or creator doesn't add to _exemptFees
### Description
The treasury address is added to `_exemptFees` mapping when initializing. To maintain the consistency of updating the address of the treasury, the older address can be removed and the newer address can be added to `_exemptFees` ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: MISSING ADDRESS CHECK ON THE FEEADDR AND CONSENSUSADDR
### Description
Both of the variables are missing address check. Every address should be validated and checked that it is different from zero.
Code Location
-------------
[CandidateHub.sol#L213](https://github.com/coredao-org/core-genesis-contract/blob/a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | false | ## Medium: Oracle Data Corruption via Storage Key Collision
### Description
The `Oracle` extension uses a storage key derivation scheme that allows collisions between the `Counts` struct of one token and the `Snapshot` structs of another token. This permits an attacker to corrupt the oracle data (price and liquidity h... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Lack of Events for State Changes
### Description
Important state-changing functions such as `setAddress`, `setUint`, `setString`, etc., do not emit events. This can make it challenging to track changes and debug issues.
### Recommendation
Consider emitting events in all state-changing functions.
```
event 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... | skyward_49k | medium | dos | true | false | ## Medium: Controller Can Indefinitely Lock Users’ Tokens
### Description
The `release()` function is affected by a denial of service (DoS) vulnerability, which allows the controller (or an attacker who owns the controller account) to permanently prevent users from withdrawing their deposited tokens.
This vulnerabili... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The opponent has a higher probability of winning than the initiator of the game.
### Description
**Severity**: High
**Status**: Resolved
**Description**
The `OneVsOneExactPrice.sol` smart contract allows creating games where the exact result of an asset should be guessed. The game is played by the initiat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | true | false | ## Medium: Users can easily obtain new collateral by leveraging sunsetted collateral
### Description
Certain collaterals may be sunsetted by the owner. After 180 days, these sunsetted collaterals can be replaced by newly added ones. Users can claim the new collateral using the gains from their old sunsetted 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 | high | cross-chain | false | false | ## High: Prover can lock user funds by including ill-formed BigInts in public key commitment
### Description
The Rotate circuit does not check for the validity of BigInts included in `pubkeysBigIntY`. A malicious prover can lock user funds by carefully selecting malformed public keys and using the Rotate function, whi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | Allowance | true | false | ## Vulnerability Report
## Severity
**High Risk**
## Context
`Executor.sol#L142-L243`
## Description
An attacker can Denial of Service (DOS) the executor contract by giving infinite allowance to normal users. Since the executor increases allowance before triggering an external call, the transaction will always rever... | Spearbit | 5 | Connext |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | signature | true | false | ## High: Invalid notarizations cause the validator to skip block validation Difficulty: High
### Description
When the `Validator::validate_blocks` function validates a block proposal, it first checks the unvalidated pool for a valid notarization for the block. If it finds a valid notarization, it moves both the block 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 | initialization | true | false | ## Low: Hardcoded Address in `_unstake` Function
### Description
**Severity** - Informational
**Status** - Acknowledged
**Location** - PoolBase.sol
**Description**
The `_unstake` function in the `PoolBase` contract contains a hardcoded address for burning tokens. Hardcoding addresses can lead to issues when deploy... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Flash Loan | true | false | Source: https://github.com/sherlock-audit/2022-09-notional-judging/issues/83
## Found by
xiaoming90
## Summary
The BPT gain (rewards) of the vault can be stolen by an attacker.
## Vulnerability Detail
At T0 (Time 0), assume that the state of the WETH/wstETH MetaPool Vault is as follows:
- totalBPTHeld = 1000 BP... | Sherlock | 5 | Notional |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | front-running | true | false | ## High: First vault depositor can steal other's assets
### Description
The first depositor can be front run by an attacker and as a result will lose a considerable part of the assets provided.
The vault calculates the amount of shares to be minted upon deposit to every user via the `convertToShares()` function:
Wh... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Absence of `CI/CD` Pipeline Scripts in Repository
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `7d4f2cf92191e7c7603df5cec6ca5c20c51a359d`. The client provided the following explanation:
> Fix TypeScript compilation errors across multiple files
**Description:** The repository 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... | cyfrin_structured | low | other | true | false | ## Low: Unused cached value of `getStorageId(msg.sender, id)`
### Description
`createAutomation()` calls `getStorageId(msg.sender, id)` twice—once for `automationSID` and again when assigning `_newAutomation`. This duplicates the same keccak 256 computation and extra stack writes.
### Recommendation
Store the first r... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | true | true | ## Low: Likely Gas Savings When Setting RocketStorage Values
### Description
The `RocketStorage.onlyLatestRocketNetworkContract()` modifier can be implemented in a more gas-efficient manner, resulting in widespread gas savings. The `RocketStorage` contract is used for centralized data storage, allowing other contracts... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Should change types of decimal to uint8
### Description
**Description:**
The decimal of Token struct used uint256 but usually it is used the type of uint8 for the decimal
[https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ER C20.sol#L87-L89](https://github.com/OpenZepp... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 `Sender` of an outbound cctx originating from the zEVM is potentially set to an incorrect sender address resulting in lost assets during a refund
### Description
Using an intermediary contract on the zEVM that interacts with the `ZetaConnectorZEVM` contract causes refund issues and access protection iss... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `UniswapV3Staker` contract exceeds the size limit for mainnet deployment
### Description
_Resolved_
The `UniswapV3Staker` contract exceeds the size limit for mainnet deployment. Even when setting the optimizer runs to 1, the runtime size is 24.05 KiB, while the limit is 24 KiB.
It is required to reduce the ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | signature | true | false | ## High: Migrating the existing locks for an investor when is resolved can be gamed causing the existing locks to last longer than they should
### Description
**Description:** When resolving an investor, the existing locks on the `oldAddress` are migrated to the `newAddress` by appending the locks from the `oldAddress... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | rounding | true | false | Source: https://github.com/sherlock-audit/2023-02-blueberry-judging/issues/254
## Found by
sakshamguruji, tives, peanuts
## Summary
`IchiLpOracle` returns inflated price due to invalid calculation
## Vulnerability Detail
If you run the tests, then you can see that IchiLpOracle returns inflated price for the ICHI... | 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 | high | other | false | false | ## High: Refund mechanism doesn't make sure that there is a fee granter
### Description
There is currently a refund logic that transfers the funds to a fee payer.
### Impact
Loss of funds for a fee granter.
### Recommendation
Check out the Celestia solution for this issue:
https://github.com/rootulp/celestia-app/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 | true | false | ## Medium: Consistent use of SafeERC20 for external tokens ✓ Addressed
### Description
Use `SafeERC20` features to interact with potentially broken tokens used in the system. E.g. `TokenGrant.receiveApproval()` is using `safeTransferFrom` while other contracts aren’t.
### Recommendation
Addressed with 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 | high | initialization | false | false | ## High: Malicious archiver can overwtite account data on any active archiver.
### Description
Report type: Websites and Applications
Target: https://github.com/shardeum/archive-server/tree/dev
Impacts:
- Taking state-modifying authenticated actions (with or without blockchain state interaction) on behalf of other ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: OverlayToken.burn function could burn tokens of any user
### Description
_Submitted by xYrYuYx_
#### Impact
The burner could burn any amount of tokens of any user.
This is not good solution of burn
#### Tools Used
Manual
#### Recommended Mitigation Steps
Update burn function for only owner can burn h... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | false | false | ## Medium: LiquidationSequencer is not synchronizing the platform when calculating the list of CDP
### Description
The current implementation of `LiquidationSequencer` is not executing the `syncGlobalAccountingAndGracePeriod`, which would:
- Update the stETH indexes.
- Claim the splitting fees if needed (and remove 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... | cyfrin_structured | medium | upgrade | true | true | ## Medium: Tier restrictions for `SPONSORED` DAOs can be bypassed by calling `MembershipFactory::upgradeTier`
### Description
If the DAO specified by the `daoMembershipAddress` parameter in a call to `MembershipFactory::upgradeTier` is registered as [`SPONSORED`](https://github.com/OneWpOrg/audit-2024-10-oneworld/blob... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Protocol withdrawals of collateral can be unexpectedly locked if governance sets the `collateralFactorBps` to 0
### Description
The FiRM `Marketplace` contract contains multiple governance functions for setting important values for a given debt market. Many of these are numeric values that affect ratios/lev... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improper access control of `claimAllForMember` allows anyone to reduce the weight of a member
### Description
_Submitted by shw, also found by 0xRajeev_
The `claimAllForMember` function of `Dao` is permissionless, allowing anyone to claim the unlocked bonded LP tokens for any member. However, claiming a 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 | storage | true | false | ## Medium: Malicious adapter pool can censor fixed investors or overcollateralize
### Description
The protocol currently lacks an upper bound check on the actual liquidity provided by Fixed Side investors during capital deployment. In the `deployCapital()` process, token amounts (amount0, amount1) are calculated using... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Withdrawal Initiators Suffer Partial Loss When Share Price Increases
### Description
The vulnerability manifests in the interaction between `initiateWithdrawal()` and `withdraw()`. When share prices increase after initiation but before execution, the proportional calculation in `_withdraw()` divides the ori... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unneeded explicit return
### Description
The explicit return can be omitted, as the function is using named return variables.
*Instances (1)*:
- https://github.com/code-423n4/2023-05-particle/blob/main/contracts/libraries/math/MathUtils.sol#L26 | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong comment in getFee
### Description
## Handle
cmichel
## Vulnerability details
The `ThreePieceWiseLinearPriceCurve.getFee` comment states that the total + the input must be less than the cap:
> If dollarCap == 0, then it is not capped. Otherwise, **then the total + the total input** must be less th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | false | false | ## Gas: Optimize invariant check iterations in `TransceiverRegistry::_checkTransceiversInvariants`
### Description
The first loop over all enabled transceivers in [`TransceiverRegistry::_checkTransceiversInvariants`](https://github.com/wormhole-foundation/example-native-token-transfers/blob/f4e2277b358349dbfb8a654d19a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | true | false | ## Low: Recursive QuickSort will always fail for some worst-case scenarios
### Description
The protocol implements a recursive version of QuickSort algorithm. While, the recursion depth for the average case is estimated to `log(n)`, for some edge cases, the depth will be close to `n`. Those cases occurs when pivot is ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | reentrancy | true | false | ## High: Rebase rewards cannot be claimed after a veNFT expires
### Description
> Note: This issue affects both the `RewardsDistributor.claim` and `RewardsDistributor.claimMany` functions.
A user will claim their rebase rewards via the `RewardsDistributor.claim` function, which will trigger the `VotingEscrow.depositF... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Messages sent from L2 to L1 does not constrain the receiver chain which can lead to replaying in L1 and GW
### Description
Sending messages from an L2 when it is settled to the GW can be proven in the GW and L1 which can lead to message double spending
### Impact
High, users can prove the inclusion of the sam... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Same wallet can be added multiple times to an investor, artificially increasing their wallet count causing adding new wallets to revert
### Description
**Description:** `GlobalRegistryService::_updateInvestor` calls `_addWallet` when the wallet being added is already registered to this investor:
`GlobalRe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [15] `NewURI` EVENT CAN BE MOVED TO `IDAO` INTERFACE
### Description
Because all other events of the `DAO` contract are included in the `IDAO` interface, the following `NewURI` event can be moved from the `DAO` contract to the `IDAO` interface for better code organization.
https://github.com/code-423n4/2023-0... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Releasable Funds Can Be Revoked
### Description
The DIMOVesting contract handles vesting of tokens in order to guarantee release after a certain period of time has expired. Tokens can be released after the cliff period, with all tokens becoming redeemable after the vesting duration has expired.
Vesting contra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Call to validateUserOp() won't work
### Description
## Medium Risk Report
**Severity:** Medium Risk
**Context:** AtlasVerification.sol#L532-L575
**Description:**
The function `_verifyUser()` uses the ERC4337 function `validateUserOp()` to validate smart contract wallets. There are several reasons wh... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Chainlink oracle data feed is not sufficiently validated and can return stale `price`
### Description
Calling the `Oracle` contract's `viewPrice` or `getPrice` function executes `uint price = feeds[token].feed.latestAnswer()` and `require(price > 0, "Invalid feed price")`. Besides that Chainlink's `latestAn... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Useless input parameters
### Description
**Update:** *Fixed in [pull request #66](https://github.com/endaoment/endaoment-contracts/pull/66).*
In the [`claimRequest`](https://github.com/endaoment/endaoment-contracts/blob/f60aa253d3d869ad6460877f23e6092acb313add/contracts/Org.sol#L58) function of the `Org` con... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | flash-loan | true | false | ## High: `Flashlender.sol#flashLoan()` should use `mintProfit()` to mint fees, as the current implementation may lead to locked up WETH in PoolV3
### Description
When using flashlender to create loans, there is small amount of fees. The fees are sent to PoolV3 and is spread out to the lpETH stakers.
The issue is, the... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | false | false | ## Medium: [Deployment Audit] the Access Control Mechanism Is Unclear and Has Implicit Implications, making It Prone to Errors
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation: We have a robust backend system with real-time alerts on all edge cases revolv... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Various typographical errors should be fixed
### Description
**Description:** The following is a list of typographical errors in both the code and documentation that should be fixed.
**Recommended Mitigation:** * `FullRangeHook`:
* `MultiRangeHook`:
* `ValkyrieHooklet`:
* `BaseIncentiveLogic`:
* `Basi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | reentrancy | true | false | ## Medium: User can lose the right to claim tokens when calling `claim`
### Description
In case of emergency the `DEFAULT_ADMIN_ROLE` can withdraw `BIO_TOKEN` balance from the contract. At the same time there are no restrictions for users to try `claim` tokens.
Since the `_safeClaimTransfer` can transfer the actual ba... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | front-running | true | false | ## High: Owner of a bad ShortRecord can front-run flagShort calls AND liquidateSecondary and prevent liquidation
### Description
A shorter can keep a unhealthy short position open by minting an NFT of it and front-running attempts to liquidate it with a transfer of this NFT (which transfers the short position to the 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 | storage | true | false | ## Low: Off-by-One Error on Max Rules
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `95b7b140e6fe509a3c823fb4177dfa9154a0d299`.
**File(s) affected:**`rell/src/lib/ft4/core/accounts/auth_descriptor_rule_validation.rell`
**Description:** In `validate_auth_descriptor_rules()`, the length of ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: [01] Allowing DSSes that do not implement `ERC165.supportsInterface` function to be registered is problematic
### Description
https://github.com/code-423n4/2024-07-karak?tab=readme-ov-file#eip-compliance-checklist states that `DSS contract should comply with ERC-165`. Therefore, the protocol requires that each... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [09] An attacker can potentially brick interchain transfers for as little as spending 1 wei in each epoch
### Description
First note that from the readMe, any type of ERC20 token is intended to be integrated.
Now protocol integrates a flow limiting logic and in order for [interchain transfers](https://github.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: WStable mint/burn misused ERC4626 preview functions
### Description
_Resolved_
The `WStable` contract misuses ERC4626's `previewMint()` and `previewWithdraw()` functions for conversions in `mint()` and `burn()` when interacting with the `_savingAccount`. These preview functions round up to protect the origin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | front-running | false | false | ## Low: Multiple Execution of Mev Control Functions
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> This is intended functionality as it provides increased flexibility for any MEV prevention tool later added.
**File(s) affected:**`OasisSwapRouter.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 | false | false | ## Low: Unused errors can be removed
### Description
**Description:** The `BunniHub__InvalidReferrer()` and `BunniToken__ReferrerAddressIsZero()` errors declared in `Errors.sol` are unused.
**Bacon Labs:** Fixed in [PR \#108](https://github.com/timeless-fi/bunni-v2/pull/108).
**Cyfrin:** Verified, the unused errors ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | overflow | true | false | ## Medium: Explicate Overflow Boundaries
### Description
## Phoenix Numerical Calculation in the Matching Engine
Throughout Phoenix, the largest numerical calculation occurs in the matching engine when calculating adjusted quote lots.
## Code Snippet
**Note:** Adjusted quote lots are declared as a `basic_u64_struc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | true | false | ## Low: Irrecoverable dust amounts can accumulate in Reward due to precision loss
### Description
The `Reward._notifyRewardAmount()` function manages incoming reward amounts for the current epoch by updating the `tokenRewardsPerEpoch` mapping associated with each token. This process is essential for distributing rewar... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Immediately expired bid will replace good bid
### Description
For listings of type `BUY_IT_NOW_WITH_BIDS`, the bidder bids with an `expiryTimestamp`, and when the bid expires, the bid will not be accepted. Since the protocol does not limit the minimum valid time, a bidder can offer a higher bid with a 1-sec... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `FeeRefund.tokenGasPriceFactor` is not included in signed transaction data allowing the submitter to steal funds
### Description
[contracts/smart-contract-wallet/SmartAccount.sol#L288](https://github.com/code-423n4/2023-01-biconomy/blob/main/scw-contracts/contracts/smart-contract-wallet/SmartAccount.sol#L288)... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | access-control | true | false | ## Gas: 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 | other | false | false | ## Low: Duplicate functions
### Description
The functions `getExpireList`and `getExpireInfo`in the **PledgeAgent** contract produce the same information by returning the `agentAddrList`from `round2expireInfoMap`. This redundancy introduces unnecessary code duplication, making the contract less maintainable and potenti... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Misleading Payment Hook Naming in RequestOracle
### Description
The payment hook in the RequestOracle contract is named `merkleTree`, which is semantically incorrect and misleading. Currently, there is no actual implementation or logic related to Merkle trees associated with this hook.
### Recommendation
We r... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Marketplace cannot be Paused
### Description
In the event of malicious activity or required upgrade, there is currently no way to pause the Marketplace contract.
### Recommendation
Ensure the Marketplace can be paused safely in the event of malicious activity or a required upgrade. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Chainlink Price Floor NFT feeds require special attention
### Description
Chainlink provides a categorization of the security of all their feeds. As we can see on the [NFT Floor Price Feed](https://docs.chain.link/data-feeds/nft-floor-price/addresses?network=ethereum&page=1) page, each of the NFT Floor feeds i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | false | false | ## Low: No way to modify oracle in the AMM
### Description
- https://github.com/curvefi/curve-stablecoin/blob/c3f7040960627f023a2098232658c49e74400d03/contracts/AMM.vy#L127
There is currently no way to change `price_oracle` in the AMM.
```
price_oracle_contract: public(immutable(PriceOracle))
```
### Recommendation... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 with access control cheaper if payable
### Description
A function with access control marked as payable will be cheaper for legitimate callers: the compiler removes checks for `msg.value`, saving approximately `20` gas per function call.
### Proof of Concept
Instances:
##### src/FERC1155.sol
###... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Edge case breaks APR cap calculation and leads to excessive fee extraction from the pool
### Description
In the fee vault’s `update_rate` function, there’s an edge case that affects the calculation of target growth rate when the product of `100_000 * target_apr * time_elapsed` is less than `SECONDS_PER_YEAR... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Anyone can steal protocol 's llido assets and ether balance using its distributive functions
### Description
Due to lack of access control on the following functions, anyone can call these functions and steal the LLido reserves (which is converted to ether balance mostly) and the smart contract's Ether balanc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | logic | true | false | ## Medium: Unclaimed rewards handling issue in `AuraVault` contract functions (`AuraVault::deposit`, `AuraVault::mint`, `AuraVault::withdraw` and `AuraVault::redeem`)
### Description
The `AuraVault` contract is designed to manage assets and distribute rewards from an Aura `RewardsPool`. The primary functions involved ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential Denial Of Service In Pool
### Description
## Delegation Service Vulnerability
In `delegation_service`, there is a hard limit on the number of direct delegators a pool may have:
**MAX_NUMBER_OF_DELEGATIONS**, which currently equals **100**.
A malicious user may fill the delegator list with fak... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | true | false | ## Medium: The range of `iteratePRNG` limits the number of Zalgo distortions
### Description
Only a tiny fraction of all Zalgo distortions are accessible.
### Proof of Concept
In [`characterToUnicodeBytes`, for font class `7` (i.e. Zalgo)](https://github.com/code-423n4/2023-03-canto-identity/blob/077372297fc419ea768... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Transfer to zero address
### Description
`to` can be equal to zero address:
https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/credit/CreditManager.sol#L338
### Recommendation
We recommend adding a check that `to != address(0)`. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | overflow | false | false | ## Medium: M03] Returning the incorrect buffer
### Description
###### Medium
The `innerModExp` function in the `BigNumber` contract has [an assembly loop](https://github.com/BeamNetwork/currency/blob/de81d9bad4195e03f07aedd2a6817f0cb04a8c8d/contracts/VDF/BigNumber.sol#L601-L608) that removes leading zero words in 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 | front-running | true | false | ## Medium: Squeezing drips from a sender can be front-run and prevented by the sender
### Description
Squeezing drips from a sender requires providing the sequence of drips configurations (see NatSpec description in [L337-L338](https://github.com/code-423n4/2023-01-drips/blob/9fd776b50f4be23ca038b1d0426e63a69c7a511d/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 | gas | other | true | false | ## Gas: Order read twice in `Manager::executeOrder`
### Description
**Description:** In [`Manager::executeOrder`](https://github.com/YieldFiLabs/contracts/blob/40caad6c60625d750cc5c3a5a7df92b96a93a2fb/contracts/core/Manager.sol#L207-L214) the order data is fetched from the Receipt:
Then order is read again in both [`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `GaugeController::_calculateReward` implementation will cause smaller shares to be allocated to every gauge
### Description
The `GaugeController::_calculateReward` function incorrectly calculates rewards by using the combined total weight of all gauge types instead of calculating rewards relative to the total... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Extra parameter in function checker() atencodeWithSelector()
### Description
The function `checker()` sets up the parameters to call the function `sendMessage()`. However, it adds an extra parameter `outboundRoot`, which isn't necessary.
```solidity
function sendMessage() external {
...
}
function checker(... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of Upper Bound on Price Update Interval Can Freeze Oracle Updates
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `be530818b4274e2a558ce98012b4e3a761a72aa4`. The client provided the following explanation:
> Fixed
**File(s) affected:**`src/ParamRegistry.sol`
**Description:** In... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unsound crank mechanism
### Description
## GooseFX SSL Audit 04 | Vulnerabilities
## File Information
**File Path:** `gfx-ssl/src/states/pair/swap.rs`
**Language:** RUST
## Code Snippet
## Patch Information
**Fixed in commits:**
- 69c0513
- 303bd06
- 1f24518
© TODO OtterSec LLC. All Rights Rese... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.