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 | initialization | false | false | ## Low: USE ++i INSTEAD OF i++
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
The post-increment operation, i++ , requires more gas compared to pre-increment (++i). Post-increment involves both incrementing the variable i and returning its initial value, which necessitates the 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 | medium | other | true | false | ## Medium: Memory corruption in getBytes32FromBytes() can likely lead to loss of funds
### Description
The `LibBytes` library is used to read and store `uint128` types compactly for Well functions. The function `getBytes32FromBytes()` will fetch a specific index as `bytes32`.
If the index is out of bounds in the da... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Absence of Version Update Functionality
### Description
## Configuration Update Limitation
In `config`, there is no mechanism to update the protocol’s version during package upgrades. This limitation will pose significant issues when deploying new versions of the protocol, especially if breaking changes are i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | true | false | ## Low: Bridge.sol is incompatible with multi-chain ERC-721 contracts
### Description
Bridging multi-chain NFTs, such as LayerZero ONFTs or other related NFTs, will not be compatible with the current implementation of the Sweep n' Flip bridge.
The current implementation of Bridge.sol maps a contract address to a wrap... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 payable definition
### Description
The `deploy` function in the `DeterministicDeployFactory` contract is responsible for deploying new contracts using the `create2` opcode. However, the current implementation does not include the `payable` modifier, which means that the function cannot receive any nati... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Prevent Blocklist Manager From Ejecting Them by Reverting on ETH Transfer Acknowledged
### Description
In the scenario where the Blocklist Manager intends to remove a user from the vault, particularly when the vault is not collateralized, the Blocklist Manager initiates the removal process by invo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Floating Pragma Statement Severity: Quality Assurance
### Description
**Description:**
The contract uses a floating pragma statement pragma solidity ^0.8.7;. This means that the contract can be compiled with any compiler version from 0.8.7 (inclusive) up to, but not including, version 0.9.0. This could poten... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `swingTraderManager.getTokenBalances` contains inactive swingTrader's balances
### Description
- https://github.com/code-423n4/2023-02-malt/blob/700f9b468f9cf8c9c5cffaa1eba1b8dea40503f9/contracts/StabilityPod/SwingTraderManager.sol#L322-L335
`swingTraderManager.getTokenBalances` doesn't check if swingTrader i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | false | ## Medium: Time-weighted Chainlink oracle can report inaccurate price
### Description
The Chainlink oracle used to price the value of ETH in USD is subject to a time-weighted average price that will over-represent or under-represent the true price in times of swift volatility. This can increase the likelihood of bad d... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary computation
### Description
Unnecessary stack variables can be removed to save gas.
### Proof of Concept
Instances:
#### ZcToken.sol
Both `allowed` are not necessary. They only save gas if the function reverts
### Recommended Mitigation Steps
Remove both `allowed` and read the storage variab... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `confirmUnderwriter()` need to recalculate `getMinTimeBetweenWithdrawalQueues`
### Description
`getMinTimeBetweenWithdrawalQueues` is very important for `Pool`. If `getMinTimeBetweenWithdrawalQueues` is too small, `pendingQueues` will be overwritten too early, and when `Loan` pays off, it won't be able to 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 | low | initialization | true | false | ## Low: Value Of Sparta Can Be Affected If Malicious User Directly Deposits Into The Pair
### Description
Between creating the contract and calling `init()`, anyone can directly deposit Hex into the UniswapV2 Pair.
The code mitigates this issue with `_fixV2PoolAndAddLiquidity()`, but note that if the Hex amount depos... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Emergency shutdown defined at the wrong level
### Description
The emergency shutdown functionality is defined in the [`PerpetualPositionManager` contract](https://github.com/UMAprotocol/protocol/blob/c452750a073488aa9b7caa86bb6206396412dcf9/packages/core/contracts/financial-templates/perpetual-multiparty/Perpe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | signature | true | false | ## Medium: Token retrieval not linked to signed transactions
### Description
There is no check done that `tokenAddress[]` is one of the `paymentTokens[]`. So this way you can steal tokens that happen to be left in the Organizer contract.
**Note:** Normally, there should not be any tokens left in the Organizer 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 | low | other | true | false | ## Low: Event is missing indexed fields
### Description
Index event fields make the field more quickly accessible to off-chain tools that parse events. However, note that each index field costs extra gas during emission, so it’s not necessarily best to index the maximum allowed per event (threefields). Each event shou... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Misuse of FinalizableCrowdsale
### Description
*(This was written for [a previous version](https://github.com/RenderToken/rendertoken/tree/fef74607fb78cdeb5e4e4eb735bccbbfe80853bd/contracts) that was audited, and it was later [fixed](https://github.com/kalinstoy/rendertoken/pull/1/commits/7dd53b9717b8a76278ef8... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing validation in `ProposalManager._slice()`
### Description
The `_slice()` function in the `ProposalManager` contract lacks proper validation of slice parameters:
```solidity
function _slice(
bytes memory data_,
uint256 start_,
uint256 length_
) private pure returns (bytes memory result_) {
if (... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | liquidation | false | false | ## High: | Bank Cannot Receive ETH
### Description
**Description - [PoC](https://github.com/GuardianAudits/GMX/blob/af740b1972788f429219d1381183c68b244e00d8/test/guardianTestSuite/testPOCS.js#L99)**
Bank.sol has no receive/fallback function defined to be able to accept ether, therefore it is impossible for the Bank to... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Don't compare boolean expressions to boolean literals
### Description
`if ( == true)` => `if ()`, `if ( == false)` => `if (!)`
*There is 1 instance of this issue:*
https://github.com/code-423n4/2022-10-thegraph/blob/48e7c7cf641847e07ba07e01176cb17ba8ad6432/contracts/gateway/L1GraphTokenGateway.sol#L214 | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Small issues in initializer methods
### Description
In `AzuroBet::initialize` the call to `__ERC165_init` is missing and should be added. Also `__Ownable_init_unchained` is called in `Access::initialize` which does not initialize call the `Context` initializer, call `__Ownable_init` instead. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Sensitive information exposed to 3rd Party SDK (Sentry)
### Description
The Sentry SDK on iOS and Android collects a substantial amount of, possibly, sensitive information about the user, the app, and their interactions with it. This may include Nonpublic Personal Information (NPI), Personally Identifiable ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [01]
### Description
Function releaseTokens uses weth, not eth when comparing against a native asset. if the token address is weth, it unwraps and sends the native asset to the user:
Releasing weth token should be left as a valid option if the user prefers wrapped ERC20 eth, and I think for this native purpo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redundant Timestamp Update Severity: Quality Assurance
### Description
**Description:**
The takeLoan function updates the timestamp field of a Loan struct twice with the same value (block.timestamp). This is redundant and increases the gas cost of the function.
**Recommendations:**
Remove one of the times... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong argument in `Transfer` event of `wrap()` function
### Description
https://github.com/code-423n4/2023-09-ondo/blob/main/contracts/usdy/rUSDY.sol#L438
The third argument to the `Transfer` event is expecting the amount of `rUSDY` tokens but it is wrongly called with `getRUSDYByShares(_USDYAmount)`, which l... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | true | false | ## Low: Insufficient validation in Minter.mintFrozen function can leads to escrowed token supply exceeding main token supply
### Description
**Severity**: Low
**Status**: Unresolved
**Description**
The mintFrozen function in Minter contract enables users with team privileges to mint arbitrary amounts of escrowed to... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | reentrancy | false | false | ## Low: Missing modifiers
### Description
**Description:** Despite the use of OpenZeppelin libraries for re-entrancy guards and pausable functionality, not all external functions have the `nonReentrant` and pausable modifiers applied, so cross-function re-entrancy may be possible and functions could be called when not... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Griefing attack is possible via TrueFi borrowing
### Description
As TrueFiStrategy net asset value reported with _balanceOf() depends on the TrueFi liquidity situation, which can be modified by any user eligible for TrueFi loans, a griefing attack of borrowing right ahead of Sherlock requesting NAV figure f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Function `pushBack` in `PriorityQueue.sol` can be optimized
### Description
[File: ethereum/contracts/zksync/libraries/PriorityQueue.sol](https://github.com/code-423n4/2023-10-zksync/blob/1fb4649b612fac7b4ee613df6f6b7d921ddd6b0d/code/contracts/ethereum/contracts/zksync/libraries/PriorityQueue.sol#L55-L61)
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 | high | initialization | true | false | ## High: `_vested()` claimable amount calculation error
### Description
The `Vesting._vested()` method is used to calculate the maximum claimable amount for the current user. The calculation formula is as follows: `(_totalAmount * (block.timestamp - _start)) / _duration`. If there is an `__initialUnlockTimeOffset`, 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 | medium | other | false | false | ## Medium: It should not submit a project with no total budget. Requires at least one task with cost > 0
### Description
_Submitted by cryptonue, also found by aez121, hansfriese, obront, rbserver, and saneryee_
[Community.sol#L206-L282](https://github.com/code-423n4/2022-08-rigor/blob/main/contracts/Community.sol#L2... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | true | false | ## Medium: Liquidation condition should not factor the liquidation reward into the premiums
### Description
The premiums used to determine the liquidation condition have the liquidation reward already discounted, potentially causing a lien to be considered underwater while technically it is not.
### Impact
Positions... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | reentrancy | true | false | ## Low: Improvising Validation Logic
### Description
## Code Review Notes
## 1. Vault::lock Reentrancy Scenario
Within `Vault::lock`, there is a potential reentrancy scenario. It is possible for the locker to execute a re-entrant call on `lock`, thus enabling the vault to become unlocked in the middle of the first lo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | liquidation | false | false | ## High: Interest rates are incorrect on Liquidation
### Description
The debt tokens are being transferred before calculating the interest rates. But the interest rate calculation function assumes that debt token has not yet been sent thus the outcome `currentLiquidityRate` will be incorrect
### Proof of Concept
1. ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Nesting `if`-statements is cheaper than using `andand`. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Temp Mail API Key Leaked
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation: We find this risk acceptable, as its a free-tier api key with no credit card attached used only for automated tests
**Description:** The API key for https://apilayer.com/m... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Misleading Comment.
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
PROPCStakingV2.sol: _pending Rewards ForStake, line 243.
Within the `_pendingRewardsForStake()`, there is a misleading comment associated with the `claimTimeLimit` that could cause confusion about its usage.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unprotected slippage tolerance can lead to user/protocol loss of funds
### Description
Slippage is the difference between the expected price of an order and the price when the order actually executes. If the slippage tolerance is set too low, a transaction will not execute. If the slippage tolerance is set ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | access-control | true | true |
<https://github.com/rabbitholegg/quest-protocol/blob/8c4c1f71221570b14a0479c216583342bd652d8d/contracts/Erc20Quest.sol#L102-L104><br>
<https://github.com/rabbitholegg/quest-protocol/blob/8c4c1f71221570b14a0479c216583342bd652d8d/contracts/Erc20Quest.sol#L81-L87>
The contract `ERC20Quest.sol` has two functions of inter... | Code4rena | 5 | RabbitHole |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Delegations might stuck in non-active validator Pending
### Description
If a validator does not get enough funds to run a node (`MSR - Minimum staking requirement`), all token holders that delegated tokens to the validator cannot switch to a different validator, and might result in funds getting stuck with... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrapper’s transferFrom function ignores the sender argument
### Description
Users calling `ERC20Wrapper.transferFrom(sender, receiver, amount)` can pass another user’s address as the sender argument; the function should transfer tokens from the sender. However, the function ignores the sender argument and ins... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Governance cannot be creator of the contract
### Description
At the line https://github.com/CoverProtocol/cover-core-v2/blob/513f5e502a8e8a623729c2c3480fca4e80fdef39/contracts/ClaimManagement.sol#L22 it's required that governance may not be creator of the contract. However it's not clear why.
### Recommendati... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Staking tokens can be stolen
### Description
The staking contract keeps track of *shares* of each user.
When withdrawing from the staking contract the `amount` parameter is converted to `shares` and this value is decreased (`shares = amount / total_balance * total_share`).
This shares calculation rounds dow... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Medium: Griefing Attack on Deployment of Factory and Deployer ✓ Fixed
### Description
While Uniswap V3 combines deployer and factory into a single (deployed) contract, due to code size increases and the contract size limit, Ramses V3 deploys deployer and factory separately. More precisely, the steps are as follows:... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Error handling for USDT transactions in TransferProxy
### Description
To handle edge cases where the receiver is blacklisted, `TransferProxy.tokenTransferFromWithErrorReceiver(...)` is designed to catch errors that may occur during the first transfer attempt and then proceed to send the tokens to the error rec... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | false | false | ## Low: Miscellaneous notes and comments.
### Description
This section details miscellaneous informational aspects found within the contract. Actions need not be taken; this is mainly for the author’s reference.
- **balanceOf Mapping ignores locked tokens**: Users will experience a discrepancy between the number of 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: Emit events without state change
### Description
In `changeHatMaxSupply()`, if the new **maxSupply** equals the previous **maxSupply**, the
function doesn't actually change anything yet emits a supply changed event. It is
recommended to validate the next supply is greater than the current one. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 version should be updated.
### Description
**Description**
Best practices for Solidity development and auditors standard checklist requires strict and
explicit usage of the latest stable version of Solidity.
**Recommendation**:
Consider updating to “pragma solidity 0.8.11;”. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: LPs can lose fees if fee growth accumulator overflows their checkpoint
### Description
Fees (that are not reinvested in the pool) are currently tracked through an accumulator value `pool.feeGrowthGlobalAsset` and `pool.feeGrowthGlobalQuote`, computed as asset or quote per liquidity. Each user providing liqu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: State variables only set in the constructor should be declared `immutable`
### Description
Avoids a Gsset (20000 gas) in the constructor, and replaces each Gwarmacces (100 gas) with a `PUSH32` (3 gas). If getters are still desired, '\_' can be added to the variable name and the getter can be added manually.
*... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Duplicated function
### Description
**Severity**: Low
**Status**: Resolved
**Description**
The function `claimable` in the `ViewFacet.sol` smart contract is a duplicate of the `getClaimableAmount` function in the `VaultFacet.sol` smart contract. There are some small variations between them and the `getCla... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [14]
### Description
In VTVLVesting contract, before revoking a claim the contract should transfer all the pending/partially vested rewards. Otherwise the entire vesting amount will get revoked.
It is at the discretion of protocol development team to decide whether the current behaviour is intended or not. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | false | false | ## Medium: Denial of service attack on LpWrapper 's deposit and withdraw functions
### Description
The Core contract allows any address to be set as the `CallbackParams.counter` address of a managed position. The `LpWrapper` also has its own `CallbackParams.counter` set in its managed position. The combination of the ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | signature | false | false | ## Medium: in3-server - should enforce safe settings for minBlockHeight Won't Fix
### Description
A node that is signing wrong blockhashes might get their deposit slashed from the registry. The entity that is convicting a node that signs a wrong blockhash is awarded half of the deposit.
A threat to this kind of sys... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of Timestamp Sanitization
### Description
## Sanity Check for set_price Protocol
The absence of a sanity check in `set_price` exposes the protocol to potential issues by permitting the insertion of invalid timestamps.
## Remediation
Implement a thorough sanity check for the input timestamp within 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: Use of outdated dependencies
### Description
We used `npm audit` and `lerna-audit` to detect the use of outdated dependencies in the codebase. These tools discovered a number of vulnerable packages that are referenced by the `package-lock.json` files. The following tables describe the vulnerable dependencies 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 | high | front-running | false | false | ## High: User can sandwich their own position close to get back all of their position fees
### Description
User can sandwich their own position close to get back all of their position fees
### Impact
Users can avoid paying borrowing fees.
### Recommendation
Implement a system where fees are gradually distributed 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... | solodit_api | high | Sandwich Attack | true | true | ## Severity: Critical Risk
## Context
- `NomadFacet.sol#L286-L290`
- `NomadFacet.sol#L204-L209`
## Description
When the `NomadFacet` repays the portal debt, it has to convert local assets into adopted assets. It first calculates how many assets it needs to swap and then converts the local assets into the adopted asse... | 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 | medium | initialization | false | false | ## Medium: Wrong Seed sale bridge fee calculation
### Description
**Description**
Method claimSeedTokens depends on method getCurrentFee, that is valid only if TGE is set, but
method claimSeedTokens could be called even before property TGE is set.
**Recommendation**:
Method claimSeedTokens should have extra check 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... | cyfrin_structured | medium | other | true | false | ## Medium: Missing Update of `perp_spot_price_for_withdrowal` in `perp_withdraw` Function
### Description
The `perp_withdraw` function fails to update the `perp_spot_price_for_withdrowal` field(including `perp_long_spot_price_for_withdrowal` and `perp_short_spot_price_for_withdrowal` in later commits) when there is 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 | low | other | true | false | ## Low: Off-by-one on unlock: `== endLockTime` cannot unlock
### Description
_Resolved_
In `VsTAN.unlock`, the guard uses a strict `<`:
This prevents the owner from unlocking **at the exact expiry** (`block.timestamp == endLockTime`), effectively forcing a one-block wait.
Switch to a non-strict check to allow unl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The current implementation of the VotingEscrow contract doesn't support fee on transfer tokens
### Description
_Submitted by CertoraInc, also found by cccz, csanuragjain, jonatascm, and scaraven_
Some ERC20 tokens implemented so a fee is taken when transferring them, for example `STA` and `PAXG`. The curr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | signature | true | false | ## Medium: M-05 Yearn `withdraw(uint)` selector may backfire
### Description
The [YearnController](https://github.com/sentimentxyz/controller/blob/a2ddbcc00f361f733352d9c51457b4ebb999c8ae/src/yearn/YearnController.sol#L24-L25) is using:
```
/// @notice withdraw(uint256) function signature
bytes4 constant WITHDRAW... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: EOA-only Checks Can Be Bypassed
### Description
**Update**
Marked as "Mitigated" by the client. Addressed in: `a07ee58b6a8bdf0fcc19564b5c6c7cefafaa45f0`. The client provided the following explanation: since the fee is always deducted from the tx.origins account, even if a contract has fee token set - cannot ma... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Overwrite benRevocable
### Description
## Handle
gpersoon
## Vulnerability details
## Impact
Anyone can call the function vest() of Vesting.sol, for example with a smail "_amount" of tokens, for any _beneficiary.
The function overwrites the value of benRevocable[_beneficiary], effectively erasing any p... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | true | false | ## Low: Add emergency permit signature cancellation mechanism
### Description
WrappedGhoToken uses `ERC20PermitUpgradeable` for gasless token approvals. While users can technically invalidate previous permit signatures by creating new ones with the same nonce and submitting a transaction to invalidate the old one, thi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Panic when decoding a malformed deposit transaction JSON string
### Description
When decoding a deposit transaction JSON string without the `"gas"` field, a panic/runtime error is triggered due to a nil pointer dereference.
### Impact
A possible exploit scenario is targeting an `ethclient` compiled based ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bypassable Maximum INTX Buy Amount
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `a475867c026f57239a6a6acb073c226ae6cd20d4`. The client provided the following explanation:
> Removed maxBuy check.
**File(s) affected:**`PublicSaleINTX.sol`
**Description:** In the function `PublicSa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | signature | false | false | ## High: Malicious Restoration Servers can replay RestoreData messages and drain accounts
### Description
The `RestoreData` struct does not have a nonce and is not rooted to the first `RestorationTX` that uses it in any way. There is also nothing in the EVM that prevents successfully processing a `RestorationTX` for 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 | gas | other | true | false | ## Gas: `OrderCombiner.sol`: `--maximumFulfilled` costs less gas compared to `maximumFulfilled--`
### Description
For a `uint256 i` variable, the following is true with the Optimizer enabled at 10k:
* `i -= 1` is the most expensive form
* `i--` costs 11 gas less than `i -= 1`
* `--i` costs 5 gas less than `i--` (1... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: RToken permanently insolvent/unusable if a single collateral in the basket behaves unexpectedly
### Description
Asset plugins assume underlying collateral tokens will always behave as they are expected at the time of the plugin creation. This assumption can be incorrect because of multiple reasons such as 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... | cyfrin_structured | high | token | true | false | ## High: `Goldilend.lock()` will always revert
### Description
In `lock()`, it calls `_refreshiBGT()` before pulling `iBGT` from the user and will revert while calling `iBGTVault(ibgtVault).stake()`.
```solidity
function lock(uint256 amount) external {
uint256 mintAmount = _GiBGTMintAmount(amount);
poolSize... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Owner can brick moving liquidity leading to failed bootstraping phases
### Description
This issue is more of a governance risk. If the owner increments stage to a non-zero value before the liquidity is moved for an agent, moving liquidity would become impossible and would always revert when `moveLiquidity()` i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Addresses not checked
### Description
Input addresses are not checked:
https://github.com/keep3r-network/StakingRewardsV3/tree/13ecc6966ae1a413f62224382bfd4d64b1a22351/contracts/StakingRewardsV3-1.sol#L139
### Recommendation
We recommend to add a check that input addresses are not equal to zero address. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Protocol misses fees from borrowing positions
### Description
Protocol always subtracts protocol fee rate while calculation of interest rate for liquidity providers, but it never mints or allocate these funds. It means borrowers pay for these fees too, but nobody receives these funds, including lenders.
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 | access-control | false | false | ## Low: proposeFeeConfig() Can Overwrite Ongoing Fee Proposal
### Description
The function `proposeFeeConfig()` does not check if there is an ongoing fee proposal. This allows users with the `FEE_PROPOSER_ROLE` to submit a new fee proposal, overwriting the current one. Malicious actors with the `FEE_PROPOSER_ROLE` cou... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A significant ````105,983```` gas cost of ````processExecutionFee()```` execution is not accounted in the keeper's compensation
### Description
At the end of ````executeOrder()````, ````processExecutionFee()```` is called to process gas compensation for the keeper. The issue here is that the gas usage 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 | high | token | false | false | ## High: Swapping 100 tokens in DepositReceipt_ETH and DepositReciept_USDC breaks usage of WBTC LP and other high value tokens
### Description
DepositReceipt_ETH and DepositReciept_USDC checks the value of liquidity by swapping 100 tokens through the swap router. WBTC is a good example of a token that will likely neve... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: _assertStakingPoolExists never returns true
### Description
The `_assertStakingPoolExists` should return a bool to determine if the staking pool exists or not; however, it only returns false or reverts.
The `_assertStakingPoolExists` function checks that a staking pool exists given a pool id parameter:
```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: Confusing Error Handling in `mintFresh` and `redeemFresh` Functions
### Description
This issue has been identified in the `mintFresh` and `redeemFresh` functions. Both enforce that only one of two parameters (`mintTokensIn` and `mintAmountIn` for `mintFresh`; `redeemTokensIn` and `redeemAmountIn` for `redeemFr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Additional checks are required for constructor of CoiinMinter.sol
### Description
**Description**
There is no verification for the zero address for the coin and mint addresses, and checking of
the valid timestamp.
**Recommendation**:
Add additional checks:
require(_firstIssuedTimeStamp >= now, "Wrong times... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## High: Lack of Refunds
### Description
The protocol allows users to bridge their ERC-20, ERC-721, ERC-1155, WETH, and ETH assets to the L2 rollup and back. If the target address is a contract, a callback is executed during the bridging transaction. For example, when calling the `deposit{ERC20|ETH}AndCall` function o... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | true | false | ## Low: Unrevokable Minter Capability
### Description
## Havencompass Admin MintCap Management
The Havencompass admin issues MintCaps to minters to allow minting of new GameKeys.
## Code Overview
### Issue MintCap Function
Issued MintCaps may only be burnt with the full cooperation of MintCap owners.
### Burn Mi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Medium: BatcherPaymentService - Non-Atomic Contract Deployment and Initialization Forge Script Can Be Front Run ✓ Fixed
### Description
The `BatcherPaymentService` deployment script using Forge performs a two\-step deployment and initialization process. Between the `startBroadcast` and `stopBroadcast` directives, t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | false | false | ## Medium: `MAX_TRUST_LIMIT` might be too high
### Description
_Submitted by gpersoon_
Both `SumOfTrust.sol` and `CreditLimitByMedian.sol` contain an expensive sort function. This is used by `UserManager.sol` via the functions `getLockedAmount` and `getCreditLimit`.
If the list of stakers would be very long then the... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: `al`, `fee` and `adminFee` cannot be set the their maximum value
### Description
Consider replacing `<` with `<=` [here](https://github.com/code-423n4/2022-06-connext/blob/b4532655071566b33c41eac46e75be29b4a381ed/contracts/contracts/core/connext/helpers/StableSwap.sol#L96): | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Rename method _hashLeaf to something that represents the validity of the leaf ✓ Fixed
### Description
The method `_hashLeaf` accepts 3 arguments.
**code/governance-main-ee5e45a008d65021831de9f3e83053026f2a4dd2/contracts/TokenDistributor.sol:L257**
```
function \_hashLeaf(uint32 user\_id, uint256 user\_amou... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | true | false | ## Low: Duplicate Assignment of Swap Parameters in `swappee()` and `_swapToken()`
### Description
The `swappee()` function in the Swappee contract redundantly sets `swapTokenInfo.outputReceiver` and `swapTokenInfo.outputToken` twice: - First assignment occurs in `swappee()` before calling `_swapToken()`. - The second ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: [02] Be consistent in the code logic when emitting events in setter functions
### Description
By convention, it's recommended emitting the old value followed by the new one in the same event instead of the other way round.
Here's one instance found:
https://github.com/code-423n4/2023-10-ethena/blob/main/cont... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Flawed blacklisting mechanism may lead to the occurrence of duplicate entries for the same blacklisted account
### Description
The `csprUSD` contract incorporates a blacklisting mechanism that empowers the `blacklister` account to either blacklist or un-blacklist specified accounts. Typically, when un-blacklis... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: importScore() in IexecMaintenanceDelegate can be used to wrongfully reset worker scores Acknowledged
### Description
The import of worker scores from the previous PoCo system deployed on chain is made to be asynchronous. And, even though the pull pattern usually makes a system much more resilient, in this ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Paths May Lead To Incorrect Staking Positions
### Description
The `zap()` function of the BorpaGateway contract contains a `path` argument that allows users to use more than 2 elements. However, while the `_zap()` function inside uses the whole `path` argument (accepting any length), the `enter()`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: (HAL-02) Custom Errors Should be Used
### Description
In Solidity smart contract development, replacing hard-coded revert message strings with the `Error()` syntax is an optimization strategy that can significantly reduce gas costs. Hard-coded strings, stored on the blockchain, increase the size and cost of de... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Function writing that does not comply with the Solidity Style Guide
### Description
Order of Functions; ordering helps readers identify which functions they can call and to find the constructor and fallback definitions easier. But there are contracts in the project that do not comply with this.
https://docs.s... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Error messages are long
### Description
**Severity**: Low
**Status**: Acknowledged
**Description**
In Executor.sol - Error messages in the two require statements are long and considered costly in terms of gas.
**Recommendation**
Write shorter error messages
Use custom errors which is the goto choice for d... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Double-approval attack by malicious owner
### Description
Pending transactions have the `_approvalCount` counter.
The `_approvalCount` for each transaction is simply incremented by 1 each time an owner approves it. However, when the owners are reconfigured using the `configureOwners()` function, the `_approv... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Indefinite Loan Duration Extension
### Description
## Vulnerability Overview
The vulnerability allows an adversary to extend the repayment date of a loan by a significant amount by repeatedly refinancing with the same loan offer hash. Specifically, the repayment date may be extended by at most `offer.totalAmo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Strategy Allocation Could Fail
### Description
The [`alloc` function](https://github.com/AladdinDAO/fx-protocol-contracts/blob/56a47eab8d10334e479df83a2b13a8b68ce390e9/contracts/fund/AssetManagement.sol#L40) of the `AssetManagement` contract does not verify whether the strategy supports the specified token. 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 | medium | access-control | false | false | ## Medium: `saleRecipient` can rug buyers
### Description
_Submitted by WatchPug, also found by gellej, Czar102, hyh, harleythedog, pauliax, cmichel, 0x1f8b, hickuphh3, cccz, and sirhashalot_
In `TokenSaleUpgradeable.sol#buy()`, `tokenIn` will be transferred from the buyer directly to the `saleRecipient` without requ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `giveReward()` does not update the stake balances
### Description
In the `Staking` contract, the `giveReward()` function can be called by the owner or the manager to distribute the profit of a staker. However, this function does not update the stake balance of the staker and the total staked amount. As a resu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `PRIVATE_KEY` exposed in `makefile` file and other sensitive data
### Description
**Description:** The project's Makefile contains hardcoded sensitive credentials including:
- A private key used for contract deployments
- Multiple RPC endpoint URLs with API keys
- Several Etherscan API keys for different net... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.