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 | gas | other | true | false | ## Gas: `x += y` costs more gas than `x = x + y` for state variables
### Description
https://github.com/code-423n4/2023-01-astaria/blob/1bfc58b42109b839528ab1c21dc9803d663df898/src/VaultImplementation.sol#L69 | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect update for state variable `sharesSinceLastUpdate` in contract `PriorityPool`
### Description
In flow of deposit queued tokens into staking pool, the state variable `sharesSinceLastUpdate` is improperly updated due to wrong implementation
### Impact
Offchain calculation for the distributions can be 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 | other | true | false | ## Low: If `aprChange = 0`, `rebase()` will always revert
### Description
_Resolved_
In `rebase()`, `aprThresholdBps` is checked when `aprChange > 0`, and `slashThresholdBps` is checked when `aprChange =` for the `aprThresholdBps` check, or set `slashThresholdBps` to a nonzero 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 | high | initialization | false | false | ## High: Custom unprotected initializer in upgradeable token.
### Description
**Description**
Being upgrabeable, the token utilizes the init() custom initializer and not the recommended, more common initialize()) with no restrictions for admins-only calls. This fact and the absence of deployment scripts makes it impo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `ExcessMTokenSent` event logs `messageSequence_` as `0` incorrectly
### Description
**Description:** When calling [`SpokeVault::transferExcessM`](https://github.com/m0-foundation/m-portal/blob/8f909076f4fc1f22028cabd6df8a9e6b5be4b078/src/SpokeVault.sol#L69-L89) to transfer excess M tokens from `SpokeVault`, 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 | high | storage | true | false | ## High: Incorrect storage slot derivation breaks authorization
### Description
The derivation for the emissary configuration storage slot fails to include the sponsor, which is necessary for authorization. As a result, attackers can arbitrarily set the emissaries of users, allowing them to steal funds from their reso... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: _validateDeploymentConfig function in NFTCollection.sol doesn't check all conditions
### Description
Due to not thoroughly checking all conditions of the deployment config, users might not be able to mint certain amount of tokens.
### Impact
1. Dissatisfaction and Frustration of the user along with loss 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 | false | false | ## Low: Unlocked Pragma
### Description
**Update**
The client acknowledged the issue.
**Description:** Every Solidity file specifies in the header a version number of the format `pragma solidity (^)0.8.*`. The caret (`^`) before the version number implies an unlocked pragma, meaning that the compiler will use the spe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Borrower will unfairly lose his stables if the collateral goes into recovery mode during sunset period
### Description
The PositionController contract utilizes an escrow mechanism to temporarily hold a borrower's stablecoins before they can be claimed. However, an edge case exists where the borrower may los... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Burn Batch Allows Duplicates
### Description
Each vault allows duplicate products to appear in the array `products` in the function `burnBatch()`.
The following function is taken from `LeverageDNTVault.sol`, however, similar code is present in all vaults.
There are no checks in `_burnBatch()` to ensure dup... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A malicious user can abuse the approvals granted to StakingContract
### Description
Users typically approve contracts in which they have to deposit ERC20 tokens for the uint256 max amount, so they only have to approve the contract once. It is highly possible that when users want to interact with the `StakingCo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `_disableInitializers()` can be used
### Description
All initialize calls in the implementation contract should be blocked to protect against various attacks. This can be done by calling initialize in the constructor (as currently implemented), but the most efficient method is to use the `_disableInitializers(... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Division before multiplication incurs unnecessary precision loss
### Description
[src/core/Pair.sol#L56](https://github.com/code-423n4/2023-01-numoen/blob/2ad9a73d793ea23a25a381faadc86ae0c8cb5913/src/core/Pair.sol#L56)
[src/core/Pair.sol#L57](https://github.com/code-423n4/2023-01-numoen/blob/2ad9a73d793ea23... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `liquidate` does not allow the liquidator to liquidate a user if the liquidator HF < 1
### Description
The `liquidate` function does not allow the `liquidator` to liquidate the borrower if the `liquidatorHF < 1`.
By liquidating a user, the liquidator is using his own funds that do not impact the liquidato... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: SOA record check on the wrong domain ✓ Fixed
### Description
The SOA record check in `Root.getAddress` is meant to happen on the root TLD, but in the version of the code audited, it is performed instead on `_ens.nic.`.
### Recommendation
During the audit, this issue was discovered by the client development 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 | gas | initialization | true | false | ## Gas: parsePaymasterAndData function can be set to internal to save gas
### Description
The `parsePaymasterAndData` function is only utilized from within the contract itself, although it is set with a public visibility specifier. It's a pure function and performs some elementary operations that could easily be reimp... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: P[urchase tak](https://github.com/Crelde/IOTA-Heroes-Contracts/blob/3e345747f723637c0a1ce884d1ae0e1584015e98/contracts/HeroMarketplace.sol#L153)es more than what is needed.
### Description
**Description:**
To purchase the token,use can call the purcha[se.](https://github.com/Crelde/IOTA-Heroes-Contracts/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 | high | front-running | true | false | ## High: KangarooVault `QueuedWithdraw` Denial of Service
### Description
When the `KangarooVault` has an open position, any withdrawals that are initiated, are queued.
`QueuedWithdrawals` work in two steps.
1. A user initialtes the Withdrawal via `initiateWithdrawal` (`KangarooVault.sol#L215`). This burns the `Vau... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Clarify Possible Discrepancies Between underlyingAmount and loanAmount
### Description
The `underlyingAmount` provided when a loan is created should not be trusted. This is a user input that can be an extremely high or low number and does not necessarily correspond to the resulting loan amount after the swap. ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Slippage on `MetapoolRouter.addLiquidityOneETHKeepYt`
### Description
As a user, I don't want to mint liquidity at a lower LP price and receive the manipulated / hugely changed YT price/amount.
A user can call `MetapoolRouter.addLiquidityOneETHKeepYt` to add liquidity (only PT) to metaPool (PT -tricrypto) ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | dos | true | false | ## High: Precompiles fail to charge gas in case of an error leading to a DOS vector
### Description
### Finding description and impact
The custom precompiles in `minievm` are called via `ExtendedRun(..)` from the EVM.
Gas is charged based on the `input` length and a constant `GAS_PER_BYTE`. However, if either no ABI... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | token | true | false | ## Gas: State variables can be packed into fewer storage slot
### Description
Total Gas Saved: `2000 GAS, 1 SLOT`.
If variables occupying the same slot are both written the same function or by the constructor, avoids a separate Gsset (20000 gas). Reads of the variables can also be cheaper when accessed in same transa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: VoteMachine - Cancelling vote does not increase the nonce ✓ Fixed
### Description
A vote can be cancelled by calling `cancelVoteByRelayer` with the proposal ID, nonce, voter’s address, signature and a hash of the sent params.
The parameters are hashed and checked against the signature correctly.
The nonce ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Cache result of identical external calls when the result can't change
### Description
**Description:** Cache result of identical external calls when the result can't change.
* `contracts/service/ServiceConsumer.sol`
* `contracts/swap/SecuritizeSwap.sol`
* `contracts/compliance/ComplianceServiceRegulated.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... | cyfrin_structured | low | token | false | false | ## Low: `RegistryService::addWallet` should revert if the wallet being added has positive balance of `DSToken`
### Description
`RegistryService::addWallet` doesn't update investor wallet or total balances if it is used to add a wallet that already has a positive `DSToken` balance.
Using it to add a wallet with a posi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Solidity compiler optimizations can be problematic
### Description
The DeGate protocol has enabled optional compiler optimizations in Solidity. There have been several optimization bugs with security implications. Moreover, optimizations are actively being developed. Solidity compiler optimizations are disable... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: When a D3MM pool repays all of the borrowed funds to vault using `D3Funding.sol repayAll`, an attacker can steal double the amount of those funds from vault
### Description
When a D3MM pool repays all of the borrowed funds to vault using [D3Funding.sol repayAll](https://github.com/sherlock-audit/2023-06-dodo/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: getusdprice will revert when access to chainlink oracle data feed is blocked
### Description
The `getUSDPrice` function in the BPTOracle contract directly calls `latestRoundData()` on Chainlink price feeds. This direct call could potentially revert, leading to a Denial-of-Service (DoS) scenario, as Chainlin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A malicious market owner/protocol owner can front-run calls to lenderAcceptBid and change the marketplace fee to steal lender funds
### Description
Malicious market owners and protocol owners can arbitrary set fees to extraordinary rates to steal all of the lenders funds.
### Impact
Lender loses all their ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: \_curveSwap: getDpxEthPrice and getEthPrice is in wrong order
### Description
When `_curveSwap` is called with `minAmount = 0` (upperDepeg/lowerDepeg use the default slippage 0.5%), the `minOut` will be a wrong value which leads to slippage protect failure.
### Proof of Concept
In `_curveSwap`, the getDpx... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: VaultsRegistry Allows Owner to Bypass VaultFactory Acknowledged
### Description
Creating a Vault with an approved VaultFactory ensures that only approved implementations of Vaults can be registered with the system. For example, when a Vault Owner creates a new Vault via `VaultFactory.createVault()` the 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 | high | reentrancy | true | false | ## High: Delegated votes are locked when owner lock is expired
### Description
In `delegate()` of VoteEscrow\.sol, a user is able to delegate their locked votes to someone else, and undelegate (i.e. delegate back to themselves). When the user tries to re-delegate, either to someone else or themselves, the lock must no... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | dos | false | false | ## High: An inflated fee in the AMM leads to a partial AMM DOS
### Description
The `admin_fees_x` variable is not divided by `BORROWED_PRECISION` in AMM `withdraw()`:
```
### Recommendation
We recommend adding the missing division by the `BORROWED_PRECISION`:
```
self.admin_fees_x += unsafe_div(x, BORROWED_PRECISION... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users should check that test mode is disabled before interacting with the Lending Pool
### Description
Users should always check that test mode in the LendingPoolCore is disabled before interacting with the contracts.
The LendingPoolCore contract defines a special mode called "test mode," which allows any us... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [09] Use of insecure gas price calculation method
### Description
The method `updateGasPriceV3` calculates the gas price based on the 25th percentile of priority fees added to the base fee. However, rounding up the calculated gas price before adjusting it with the resolution might lead to predictable gas price... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `emergencyEnd` can be used with a player that has no game
### Description
`emergencyEnd` function can be used with a player who has no game.
The function must check that the player is currently in a game. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Miscellaneous General Comments
### Description
Description
This section details miscellaneous findings discovered by the testing team that do not have direct security implications.
1.safeMint Consider using safeMint() rather than mint() for minting SubAccount NFTs.
2.Code Comments
(a) Incorrect comments 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 | overflow | false | false | ## Medium: borrowRate values in the new fixed rate IRM could lead to user funds stuck in Morpho Blue markets
### Description
The `FixedRateIrm` allows anyone to set a custom fixed arbitrary `borrowRate` for a specified market. The current implementation of `setBorrowRate` reverts only if the specified `newBorrowRate` v... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | token | true | true | ## Low: Use `safeTransfer()` instead of `transfer()` for ERC20
### Description
Use `safeTransfer` instead of `transfer` for ERC20.
### Impact
INFO
### Proof of Concept
```solidity
File: gov/GovPool.sol
248: IERC20(token).transfer(address(_govUserKeeper), amount.from18(token.decimals()));
```
### Recom... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | reentrancy | false | false | ## Medium: Use of `payable.transfer()` Might Render ETH Impossible to Withdraw
### Description
### Impact
The protocol uses Solidity’s `transfer()` when transferring ETH to the recipients. This has some notable shortcomings when the recipient is a smart contract, which can render ETH impossible to transfer. Specifica... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | logic-error | true | true | ## Low: Temporary denial-of-service when in-flight messages are not executed before a deprecated Wormhole Guardian set expires
### Description
Wormhole exposes a governance action in [`Governance::submitNewGuardianSet`](https://github.com/wormhole-foundation/wormhole/blob/eee4641f55954d2d0db47831688a2e97eb20f7ee/ether... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | overflow | false | false | ## High: _getImpliedRate does not handle errors
### Description
The [`_getImpliedRate`](https://github.com/swapnet-protocol/swapnet-lite/blob/66ce8f3e529410a5272b7a57c8391fcb80a375fd/packages/contracts/contracts/FutureCash.sol#L985) function calls [`_getExchangeRate`](https://github.com/swapnet-protocol/swapnet-lite/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 | initialization | false | false | ## Low: Missing Input Validation
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `68a4b6754450d0e5da8c01a26e876ca513808554`, `90ef093c6b24496ccd1d552686d24d99a784a5d9`. The client provided the following explanation:
> Recommended changes have been added. For Transferer.multiTransferFrom(), 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 | medium | storage | true | false | ## Medium: `ZappingProxy` cannot receive ETH refunds resulting in failed zaps
### Description
`ZappingProxy` forwards `msg.value` to routers but has no payable receive/fallback, so router ETH refunds to the proxy will revert. This causes failed zaps for ETH paths that expect refunds.
### Impact
Because `ZappingProxy`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `xfeemarket` module is not wired up, resulting in non-working CLI commands, message server, genesis export
### Description
### Finding description and impact
A Cosmos SDK app is set up in `app/app.go`, where all modules are wired up. Some of the steps include:
* `module.NewManager(..)` initializes the mod... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Avoid Asymmetry in clearVote() function
### Description
The `clearVote()` function of the `LockToVotePlugin` contract resets the user's active voting power on the proposal to 0, but it does not reset the vote option back to None. Although this does not cause any immediate issue, code asymmetries such as this 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: Use solidity version 0.8.19 to gain some gas boost
### Description
Upgrade to the latest solidity version 0.8.19 to get additional gas savings.
See latest release for reference: https://blog.soliditylang.org/2023/02/22/solidity-0.8.19-release-announcement/
### Proof Of Concept
https://github.com/code-423n4/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | false | false | ## Low: Missing zero address validation for `setCollateralWallet` in SEuroOffering.
### Description
**Description**
SEuroOffering.sol, in setCollateralWallet(address): input address is not asserted to be non-zero address.
**Recommendation**
require statement
**Re-audit comment**
Unresolved | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Siphoning Attack Vector
### Description
In the [codebase](https://github.com/uncx-private-repos/liquidity-locker-univ3-contracts/blob/342c621cc93a13882601b30e547907877f3e3f86/), there is an auto-collector role ([`AUTO_COLLECT_ACCOUNT`](https://github.com/uncx-private-repos/liquidity-locker-univ3-contracts/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 | high | initialization | false | false | ## High: `paidOutReward` subtraction may lead to `unstake` and `unstakePrincipal` functions reverting
### Description
In the `DIAWhitelistedStaking` contract, when a user claims rewards for the first time, the `currentStore.reward` value is zeroed out after the rewards are paid out. If the user then initiates an unsta... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fix utilization rate computation and respect reserves when lending
### Description
The utilization rate `UR` of an asset forms the basis for interest calculations and is defined as `borrows / ( borrows + cash - reserves)`.
**code/contracts/InterestRateModel/InterestRateModel.sol:L72-L88**
```
/\*\*
\* ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | true | false | ## Low: Missing validation for zero `epochDuration` in AvalancheL1Middleware can break epoch based accounting
### Description
`AvalancheL1Middleware::EPOCH_DURATION` is an immutable parameter set in the constructor. The current implementation only checks that `slashingWindow` is not less than `epochDuration` but doesn... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Controller`'s core function of Rebalance will not rebalance when rebalance is needed in some cases, breaking core functionality
### Description
Source: https://github.com/sherlock-audit/2024-08-perennial-v2-update-3-judging/issues/20
## Found by
panprog
**Summary**
One of the main `Controller`'s functio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | storage | true | false | ## Medium: LACK OF PREVENTION AGAINST BRUTE FORCE MECHANISMS ON REGISTER
### Description
The authentication page of the web application features a registration form; however, it lacks a captcha validation mechanism. Consequently, this absence of captcha verification allowed users to submit an excessive number of reque... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Old contract versions can be mistakenly used
### Description
The [`syncAllContracts`](https://github.com/graphprotocol/contracts/blob/cab50f4975580d71cb43b5731a62b86d07d951bc/contracts/governance/Managed.sol#L154) function is in charge of updating the cached addresses with new values whenever needed. Howeve... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Typos and comments
### Description
## Code Review Notes
## Context
- InputStream.sol
- RouteProcessor4.sol
- [Line 26](RouteProcessor4.sol#L26)
- [Line 179](RouteProcessor4.sol#L179)
- [Line 180](RouteProcessor4.sol#L180)
- [Line 283](RouteProcessor4.sol#L283)
- [Line 332](RouteProcessor4.sol#L332)
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | Validation | false | false | ## Severity: Medium Risk
## Context
`ERC721SeaDrop.sol#L83`
## Description
The owner/creator can call the contract directly (skipping the use of the UI) and set the administrator as themselves or another address that they control. After creating a `PublicDrop` or `TokenGatedDrop`, they can call either `updatePublicDr... | 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: Use named function calls
### Description
Code base has an extensive use of named function calls, but it somehow missed one instance where this would be appropriate.
([addToBalanceOf](https://github.com/jbx-protocol/juice-contracts-v3/blob/main/contracts/abstract/JBPayoutRedemptionPaymentTerminal3_1.sol#L569-... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Token Existence | true | true | ## Lines of code
https://github.com/code-423n4/2022-03-rolla/blob/efe4a3c1af8d77c5dfb5ba110c3507e67a061bdd/quant-protocol/contracts/utils/OperateProxy.sol#L10-L19
## Vulnerability details
https://github.com/code-423n4/2022-03-rolla/blob/efe4a3c1af8d77c5dfb5ba110c3507e67a061bdd/quant-protocol/contracts/Controller.so... | Code4rena | 5 | Rolla |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Miscellaneous General Comments
### Description
This section details miscellaneous findings discovered by the testing team that do not have a direct security implication:
- The following functions can be made external for gas saving purposes:
- `currentInterestOnLoan()`
- `calculateMintingFee()`
- `accou... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: static_validate_system_transaction missing EIP-2 malleable signature validation
### Description
## Security Advisory
**Severity:** High Risk
**Context:** (No context files were provided by the reviewer)
**Description:**
`static_validate_system_transaction` is missing malleable signature validation. T... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Constant redefined elsewhere
### Description
Consider defining in only one contract so that values cannot become out of sync when only one location is updated. A [cheap way](https://medium.com/coinmonks/gas-cost-of-solidity-library-functions-dbe0cedd4678) to store constants in a single location is to create 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 | other | false | false | ## Low: The minted amount can be 0 using the `mint(...)` method
### Description
**Severity**: Low
**Status**: Resolved
**Description**
In Contract DevvE.sol, the method mint(...) does not validate if the amount of tokens to mint is 0 or not.
**Recommendation**:
Add a check to ensure users don’t mint 0 tokens 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 | access-control | false | false | ## Low: `reportELRewardsStealingPenalty` can be called with `amount` set to `0`
### Description
The issue is identified within the [reportELRewardsStealingPenalty](https://github.com/lidofinance/community-staking-module/blob/a898d045b63303294752d1a60ad9dfe8d8ba69ca/src/CSModule.sol#L1014) function of the `CSModule` co... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: BlobSidecars data availability race condition
### Description
During the `FinalizeBlock()` call from CometBFT, Beacon-Kit will begin processing on two different event handlers at `abci.go#L345-L356`, namely `async.FinalBeaconBlockReceived` and `async.FinalSidecarsReceived`. These calls handle `handleBeaconB... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Flawed Logic in `ShareManager` Inverts Transfer Whitelist Behavior
### Description
The `updateChecks` function in `ShareManager.sol:L139` contains flawed logic that inverts the intended behavior of the transfer whitelist feature. Instead of allowing transfers from whitelisted accounts, the code incorrectly ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary storage reads in _lastTimeRewardApplicable
### Description
## Analysis of `fatBERA.sol`
## Context
Lines: `fatBERA.sol#L558-L575`
## Description/Recommendation
Since `_lastTimeRewardApplicable` is only used in `_updateReward` and both functions read `rewardData[token]`, it would make more sense ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Faulty Vote History Retrieval
### Description
## Checkpoint Issue with Vote Ledgers
The `checkpoint` inherently assumes that the `vote_ledgers` vector is sorted, as it relies on this to efficiently locate relevant checkpoints utilizing binary search. However, `add_vote_ledger` appends new entries to the `v... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ethers crate is deprecated
### Description
The `ethers` crate is deprecated. This is indicated on the [crates/ethers webpage](https://crates.io/crates/ethers). It is linked to the [gakonst/ethers-rs repository](https://github.com/gakonst/ethers-rs) which has been archived on October 19, 2024. The deprecation 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... | solodit_api | medium | other | false | true |
_Submitted by JMukesh, also found by certora_
#### Impact
The return value of the low-level call is not checked, so if the call fails, the Ether will be locked in the contract. If the low level is used to prevent blocking operations, consider logging failed calls.
#### Proof of Concept
<https://github.com/code-423... | Code4rena | 5 | Amun |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | rounding | true | true | ## High: Strict Equality Causes Token Purchase Failure
### Description
The `purchased()` function in `TokenRoyaltiesHandler.sol` splits the payment made from an NFT sale and divides it amongst the entities according to the percentages allocated in `royaltiesBPS`. Under certain circumstances, it is possible for users 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... | solodit_api | medium | initialization | true | true |
<https://github.com/code-423n4/2022-12-escher/blob/5d8be6aa0e8634fdb2f328b99076b0d05fefab73/src/minters/FixedPriceFactory.sol#L29>
<https://github.com/code-423n4/2022-12-escher/blob/5d8be6aa0e8634fdb2f328b99076b0d05fefab73/src/minters/LPDAFactory.sol#L29>
<https://github.com/code-423n4/2022-12-escher/blob/5d8be6aa0e... | Code4rena | 4 | Escher |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | ERC4626 | true | false | Source: https://github.com/sherlock-audit/2022-08-sentiment-judging/tree/main/025-H
## Found by
Lambda, JohnSmith, WATCHPUG, 0x52, berndartmueller, Bahurum
## Summary
EIP-4626 does not require the decimals must be the same as the underlying tokens' decimals, and when it's not, `ERC4626Oracle` will malfunction.
## ... | Sherlock | 5 | Sentiment |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Merkle roots are not cleared when unregistering hooks in SuperGovernor
### Description
In SuperGovernor, when `unregisterHook()` is called to unregister a hook, the data stored for that hook in `superBankHooksMerkleRoots` and `vaultBankHooksMerkleRoots` are not cleared. This creates a potential footgun where 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 | front-running | false | false | ## Medium: The lack of a WETH-Profits Token pair upon calling sellProfits can expose it to malicious pool creation
### Description
Some tokens do not have Uniswap V3 pools with WETH, which allows a bad actor to frontrun the transaction and create a pool with an offset liquidity ratio and subsequently steal the funds.
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Chainlink may report erroneous prices when unfrozen
### Description
When the PriceFeed is in the `usingTellorChainlinkFrozen` state (Case 4), if it detects that Chainlink has started working again, it will report that price without validating that it is in the expected range; it will then move the system 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 | low | other | true | false | ## Low: Use of selfdestruct Deprecated in VotingVault ✓ Fixed
### Description
The `VotingVault.withdrawTokens` function invokes the `selfdestruct` operation when the vault is empty so that it can’t be used again.
The use of`selfdestruct` [has been deprecated](https://eips.ethereum.org/EIPS/eip-6049) and a breaking 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 | cross-chain | false | false | ## Low: Potential Loss of Ownership During Transfers
### Description
The [`BitVMBridge` contract](https://github.com/fiamma-chain/bitvm-bridge-contracts/blob/935e2cbd1b5d1060439045b74ace6b2f506a25ad/src/BitVMBridge.sol) inherits the [`OwnableUpgradeable`](https://github.com/fiamma-chain/bitvm-bridge-contracts/blob/935... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users claim excess rewards using post-incentive in-range time
### Description
_Acknowledged_
When users stake their UniV3 positions in the `UniswapV3Staker` contract to earn some rewards. The owner creates incentives with a certain tick range and a vesting period, where the pool's price needs to stay in the 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 | high | cross-chain | true | false | ## High: Large Validator Sets/Rapid Validator Set Updates May Freeze the Bridge or Relayers
### Description
_Submitted by nascent_
In a similar vein to "Freeze The Bridge Via Large ERC20 Names/Symbols/Denoms", a sufficiently large validator set or sufficiently rapid validator update, could cause both the `eth_oracle_... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Failures in processReceipt may DoS the entire processing
### Description
During `processBatch`, if there are any errors encountered in `processReceipt`, then `len(receipts) - receiptSucessCount` will be greater than 0. This will cause the error to bubble up after the end of the batch to `processUnstakeNotar... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | false | false | ## Low: Unstake operations can revert on specific conditions
### Description
During the assessment of the `VeQoda.sol` contract, it was identified that in certain edge cases, the `unstake` operation of the mentioned contract would revert because of a panic state induced by arithmetic underflow.
Especifically, the `ve... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No enforcement of callback gas limit for on-chain queries
### Description
For on-chain queries, `sendQuery()` and `sendQueryWithIpfsData()` take in a `uint32 callbackGasLimit` input, which is the gas limit the payee wishes the callback to be called with. However, there isn't an enforcement of the callback gas ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: **Pool may not be able to withdraw bwTokens**
### Description
**Description**
In the `SecondaryCollateralizationBWT.sol` file, there is a delegate function that moves `bw` and
collateral tokens. But black and white tokens are left in the first pool.
So, in the first pool, function `withdraw` will revert du... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unconditional rounding up pulls in 1 wei more for divisible USDS amounts
### Description
The conversion from USDS to USDC unconditionally adds 1 after division. This means that even when the USDS amount is perfectly divisible by the conversion rate, the contract will still pull 1 extra wei of USDC, leading 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 | dos | true | false | ## Medium: [High] Function MigrateWithdrawal() may set gas limit so high for old withdrawals when migrating them by mistake and they can't be relayed in the L1 and users funds would be lost
### Description
Function `MigrateWithdrawal()` in migrate.go will turn a LegacyWithdrawal into a bedrock style Withdrawal. it sho... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Custom error conditionals can be re-written for better readability
### Description
**Description:** In numerous instances throughout the contracts, the `!(... ...)` pattern is used when reverting with custom errors. By De Morgan's Laws, such conditionals can be re-written for better readability.
**Recommende... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A user can withdraw prizes immediately after winning tickets drawn, bypassing the intended 'next draw period' delay stated by Doc
### Description
### Instances(1)
In Thruster [Doc](https://docs.thruster.finance/docs/products/thruster-treasure/overview), there is a mention of the timing of winner claim prizes ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users can avoid paying fees if they manage to update their accrued fees periodically
### Description
[DBR.sol#L287](https://github.com/code-423n4/2022-10-inverse/blob/main/src/DBR.sol#L287)
While a user borrows DOLA, his debt position in the DBR contract accrues more debt over time. However, Solidity contr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | dos | false | false | ## High: Exceeding of gas limit
### Description
**Description**
Deploying TokenFactory requires 17,158,715 gas, since ethereum mainnet gas limit is 15
million it will be reverted. Theoretically it can be executed because when contracts are
deploying blockchain provides a separate block for each contract with their ow... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: USING ++I CONSUMES LESS GAS THAN I+=1 IN LOOPS
### Description
In the loop below, the variable `i` is incremented using `i+=`. It is known that, in loops, using `++i` costs less gas per iteration than `i+=1`.
Code Location
-------------
```
TokenSaleDistributor.sol::31 => for (uint i; i for (uint i; i fo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Invalidating users orders
### Description
1inch team has implemented a more streamlined version of the order book that is called `OrderRFQMixin`. This version has no hooks and is meant to be more straightforward than the main order book contract.
One significant difference between those contracts is that ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential issues of determining if a transaction is sent by the paymaster
### Description
The `createStream()` and `createBatchStream()` functions in `StreamingNFT`, as well as the `claim()` function in `Distributor1`, use `tx.origin != onbehalfOf` to determine if the transaction is sent by the paymaster. T... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | true | false | ## Low: `__NoncesUpgradeable_init` is not invoked
### Description
**Description:** The `__NoncesUpgradeable_init` function from the `NoncesUpgradeable` contract is not being called during the initialization of the `VotingPowerProvider` abstract contract. Since `VotingPowerProvider` inherits from `NoncesUpgradeable`, f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | access-control | false | false | ## High: Unauthorized Access To UpdateStates
### Description
## Spot and Perp Engines: State Update Functions
In both spot and perp engines, the `updateStates` functions update their respective states based on changes in the market and changes in time (`dt`). These functions should only be called from **EndPoint**, a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | false | ## High: Partner Can Receive Zero Share Despite Surplus
### Description
The contract calculates `partnerShare` based on the `partnerSurplusShare` and `partnerSlippageShare` percentages provided in the `desc` struct. However, it does not enforce a minimum threshold for these shares, allowing them to be set to zero or a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | false | ## High: _releaseSolverLock() doesn't undo all the actions of _trySolverLock()
### Description
## Severity: High Risk
**Context:**
GasAccounting.sol#L208-L246, GasAccounting.sol#L129-L134
**Description:**
The function `_releaseSolverLock()` doesn't undo all the actions of `_trySolverLock()`.
Function `_release... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Value Can Be Extracted From The Pool By Combining The Burning of `bToken` and the Buying/Selling of Portal Energy
### Description
Value can be extracted from the pool by combining the burning of `bToken` and the buying/selling of portal energy.
### Impact
Users can profit from the liquidity in the pool.
###... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | dos | false | false | ## High: Protection buyer may buy multiple protections for same goldfinch NFT
### Description
The Carapace protocol checks that a protection buyer does not buy a protection for an
amount greater than the remainingPrincipal in the corresponding loan.
However it possible for the buyer to buy multiple different protect... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect comment
### Description
We have the following comment in `putBet` method in `BetExpress.sol`:
The right interface in this case is `IBet.sol` instead of `IBetEngine.sol`
Also in `putBet` method in `IBet.sol`, the `@return` field is missing. Consider adding one. | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.