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 | high | access-control | false | false | ## High: Unmetered BeginBlock iteration over balances exposes low-cost, on-demand chain halt
### Description
`AllocateRewards` makes a call to `GetAllBalances` on the rewards plan address, which triggers iteration over all of the address's balances. Since `AllocateRewards` is called in `BeginBlock`, its execution is 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 | liquidation | true | false | ## High: Incorrect valuation of vault share
### Description
The code for computing the valuation of the vault shares was found to be incorrect. As a result, the account's collateral will be overinflated, allowing malicious users to borrow significantly more than the actual collateral value, draining assets from the pr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Borrowers Could Manipulate the Floor Price
### Description
**Update**
Acknowledged. This is the intended design. The Nemeos team stated that the oracle implements risk algorithms and calculates the floor price with methods to avoid price manipulation. The oracle is out of the scope of this audit.
**Descrip... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | true | false | ## Low: BasisPolicy.executeOracleVote always returns false
### Description
The `BasisPolicy.executeOracleVote` method returns a boolean value, which is always false, even in cases of success. Returning false on success may lead to unexpected behavior for the caller, especially if the caller is a smart contract that ch... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Prime.sol - User can claim Prime token without having any staked XVS, because his `stakedAt` isn't reset whenever he is issued an irrevocable token
### Description
Whenever a new Prime token is created, the users `stakedAt` is reset to 0. This happens when the user `claim` a revocable token and when he is `is... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | reentrancy | false | false | ## High: Not following the Checks-Effects-Interactions pattern
### Description
[Solidity recommends the usage of the Check-Effects-Interactions Pattern](https://solidity.readthedocs.io/en/v0.5.4/security-considerations.html#use-the-checks-effects-interactions-pattern) to avoid potential vulnerabilities, such as [reent... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 magic constants
### Description
There are several occurrences of magic constants in [Holdefi’s codebase](https://github.com/holdefi/Holdefi/tree/f4df394d7cf6df347b1f1e9af8e2676c5933c2c9/contracts). Some examples are:
`Holdefi.sol`:
– [Line 617](https://github.com/holdefi/Holdefi/blob/f4df394d7cf6df... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Denial of Service Through Expensive ETH Receiver
### Description
**Update**
PR-37 implements The withdrawal pattern for both the native cryptocurrency (e.g. ETH) and Talentir ERC-1155 tokens.
**File(s) affected:**`TalentirMarketplaceV1`
**Description:** A malicious seller can submit a sell order which cause... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unchecked optimal utilization
### Description
The `_updateModel`function in the **InterestRateModel** contract does not verify if `optimalUtilization`is less than 100%. As a consequence, if this value is mistakenly set too high, the `_getInterestRate` function will calculate an incorrect interest rate without ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | true | ## High: Re-use of a delegate address allows invalid proposals to execute
### Description
If a proposal obtains half of the delegate weights during the tally, it can be executed. Pairing this logic with a re-use of the same delegate address allows any proposal to pass if only one delegate votes for it. The `tallyPropo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing slippage for strategies
### Description
Strategies don't implement any slippage check.
Some strategies might return fewer assets than the user would expect when sending the Bitcoin transaction with the bridge information. This can be due to market changes during the bridging process or sandwich attack... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Function only returns 'true'.
### Description
**Description**
ReferralRegistry.sol: function __isReferredAddress().
FNDZController.sol: isDenominationAssetApproved().
Function returns only 'true' value and not in all cases. Function should return values every
time.
**Recommendation**:
Make sure to return... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Errors from cryptographic operations contain too much information
### Description
The Uniswap mobile wallet should limit the amount of information about cryptographic failures. Providing too much detail on failures may allow attackers to extract valuable information about plaintexts and to, for example, mount ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Liquidators might get a reward that is less than expected
### Description
In `Vault`, the `liquidationReward` depends on the current price of TCAP. A liquidator will burn `burnAmount` of their tokens, but if the price of TCAP is currently volatile, they might get fewer rewards than expected.
Consider adding 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 | other | true | false | ## Medium: Missing sellable check in completePurchase will cause a user to buy a token marked as unsellable by S2ADMIN if it was listed beforehand
### Description
A token marked sellable can be purchased because of the absence of the sellable check when completing a spot purchase.
### Proof of Concept
A user is 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 | rounding | true | false | ## Medium: Division Before Multiplication at GmxFactory's `feeSplit` Calculation
### Description
GmxFactory's `openPositions()` & `closePositions()` functions calculate the `feeSplit` as:
```solidity
// The fees are expressed as a fraction of 10000, representing 100%.
feeSplit =
(((args.sizeDeltaLong * 1e6) / 1e30)... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [N‑05] `constant`s should be defined rather than using magic numbers
### Description
Even [assembly](https://github.com/code-423n4/2022-05-opensea-seaport/blob/9d7ce4d08bf3c3010304a0476a785c70c0e90ae7/contracts/lib/TokenTransferrer.sol#L35-L39) can benefit from using readable constants instead of hex/numeric ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: DelegationService redundancy ✓ Addressed
### Description
`DelegationService` acts as a gateway for every external call. The problem is that it adds extra complexity to the code, which makes it harder to read and add a new code. Also, it costs more gas because of extra calls between contracts.
### 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 | gas | storage | true | false | ## Gas: Wasteful operation in the staking flow when `unlockTime` doesn't change
### Description
**Total Gas Saved (10000)**
In `selfStake()` and `communityStake()`, a user can stake an additional amount with a future `unlockTime`.
However, when `unlockTime` doesn't change from the old lock, wasteful state operation... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use safeTransfer() and safeTransferFrom().
### Description
**Description**
BaseDexManager.sol - line 96
BaseDexManager.sol - line 150
EthDexManager.sol - line 143
BaseDexManager.sol - line 130
EthDexManager.sol - line 120
**Recommendation**:
Use the safeTransfer and safeTransferFrom from SafeERC20 librar... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | true | false | ## Medium: anyone with a `Pearlmit` approval to transfer `TapToken` can have their funds stolen
### Description
When transferring `TapToken` there is an extra check done in [`BaseTapiocaOmnichainEngine::transferFrom`](https://github.com/Tapioca-DAO/tapioca-periph/blob/032396f701be935b04a7e5cf3cb40a0136259dbc/contracts... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | reentrancy | false | false | ## Low: Transfer with hardcoded gas amount
### Description
The `receive()` function from `CeFiSmartTransfer` and the `executeNativeTransfer()` function from `DeFiSmartTransfer` use the native `transfer()` method to send native assets (e.g. ETH) calling from the smart contract.
The `transfer()` and `send()` functions ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: IdleProvider overstates balanceUnderlying() and understates calcShares()
### Description
IdleProvider's exchangeRate() use Idle's tokenPrice() which doesn't include performance based fees, so balanceUnderlying() and calcShares() report figures that may not match with what Vault will effectively obtain on 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 | flash-loan | false | false | ## Medium: Depeg Can Lead to Rapid Exodus of Collateral
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> We charge fees on deposits and withdrawals to avoid this issue
**File(s) affected:**`StoneBTCVault.sol`
**Description:** The `StoneBTCVault` ass... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Sharing of ERC20 Allowance State Across Functions in Pool Contract
### Description
**Severity**: Low
**Status**: Acknowledged
**Description**:
In the Pool contract, the ERC20 allowance state of the shares is shared across multiple functions (requestRedeem, redeem, and removeShares), which can ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Asset amount user owes in swapSyForExactPt can be understated with rounding down of a positive integer
### Description
When `netPtToAccount > 0`, rounding down can reduce the asset amount, `preFeeAssetToAccount`, that determines what is owed by the caller.
### Recommendation
Consider applying the similar logi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Loss of Precision Due to Division before Multiplication
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `e34bd9fb2bd5bc3a47bd4686c8e8bbbed900363f`.
**File(s) affected:**`DoomsdaySettlersDisasters.sol`
**Description:** Division before multiplication may result in a loss of 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 | medium | other | true | false | ## Medium: UNTRUSTED TOKENS NOT CHECKING BEFORE AND AFTER BALANCE
### Description
None
Code Location
-------------
### Recommendation
**SOLVED**: The code does check the post balance and compares it to the sum of the pre-balance and the requested amount. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Emergency Pause Functionality Not Implemented
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `fcf703d`.
**Update**
Marked as "Fixed" by the client. Addressed in: `f99f1d2ce37b2710534182bb2166b648dbb14d5c`. The client provided the following explanation:
> The vulnerability was 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 | other | false | false | ## Low: Uninformative names of an event and a function
### Description
At the lines:
- https://github.com/nucypher/nucypher/blob/main/nucypher/blockchain/eth/sol/source/contracts/staking_contracts/PoolingStakingContractV2.sol#L28
- https://github.com/nucypher/nucypher/blob/main/nucypher/blockchain/eth/sol/source/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 | gas | token | true | false | ## Gas: Duplicated require()/revert() checks should be refactored to a modifier or function
### Description
This saves deployment gas.
https://github.com/code-423n4/2023-01-ondo/blob/f3426e5b6b4561e09460b2e6471eb694efdd6c70/contracts/lending/tokens/cCash/CCash.sol#L151-L154
The above check is also repeated on [Line... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 unnamed output parameters
### Description
Throughout the contract, the return values of the functions are not named. Using named output parameters can improve code readability and make it easier to understand the purpose of each return value, especially when the function has multiple return values.
###... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | cross-chain | false | false | ## Medium: Reputation Risks with `contractOwner`
### Description
_Submitted by hake, also found by catchup, danb, defsec, Jujic, kirk-baird, nedodn, shenwilly, sorrynotsorry, and WatchPug_
[DiamondCutFacet.sol](https://github.com/code-423n4/2022-03-lifinance/blob/main/src/Facets/DiamondCutFacet.sol)
[WithdrawFacet.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 | high | initialization | true | false | ## High: Position doesn't distribute rewards to users
### Description
In `Compound V2`, both borrowers and suppliers are eligible to earn rewards. The `Position` contract allows users to create long/short positions for each market. For that, it both supplies and borrows tokens from a compound market. So while the user... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `vestSummary` does not include cliff shares in the calculation
### Description
The `vestSummary` function calculates the `initiallyVested` amount as `stepShares * steps` (L143), while it should also add `cliffShares`to it:
Consider adding `cliffShares` to the `initiallyVested` calculation so it returns the 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 | access-control | true | false | ## Low: expirationTimestamp is Not Greater Than block.timestamp
### Description
The whitelist expiration setter role is able to temporarily whitelist a given user. However, there are no explicit checks to ensure `expirationTimestamp` is set to sometime in the future. As a result, it is possible for a setter role to in... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | false | ## High: totalExcludedSupply drifts from reality
### Description
RewardsEngine tracks `totalExcludedSupply` as the sum of balances for excluded accounts, but it only updates this value inside the `setAccountExcluded()` and `setBreakageSink()` functions. Excluded accounts can still receive and send STRX through normal ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inadequate Handling of Single Large Data Frames in blobTxCandidates
### Description
In the [`blobTxCandidates` function](https://github.com/mantlenetworkio/mantle-v2/blob/c77cb6e9f44a60f6d25de54bd3d52731de8bdda9/op-batcher/batcher/driver_da.go#L327-L384), the code assumes that data exceeding the size limit (`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 | signature | false | false | ## Low: Inconsistency in Signature Verification
### Description
When claiming tokens on behalf of another account using [`claimOnBehalf`](https://github.com/zksync-association/zk-governance/blob/27763f16b7b8b4c98241c9c7ae73c045e3b52e23/src/ZkMerkleDistributor.sol#L140) or [`claimAndDelegateOnBehalf`](https://github.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 | true | false | ## Medium: Malicious users can exploit deposit and withdrawal queueing in `KangarooVault` and `LiquidityPool` contracts to force exorbitant transaction fees
### Description
Direct loss of money for users who have deposited funds and wish to withdraw them, as they would be required to pay extremely high gas fees due 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 | other | false | false | ## Low: Approving more amount than the actual transfer
### Description
**Severity**: Low
**Status**: Resolved
**Description**
SwapLibrary.sol - in _swapTokenExactOutput we have:
Where _assetAmountIn refers to the maximum input amount in the swap operation that is required for slippage. Approving an amount more 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 | true | false | ## Low: Optimizing Using Iteration
### Description
## Optimizing String Separation in Rust
There is a more efficient way to separate the strings in `transactions_split` and `actions_split` than by calling `split()` and `collect()` on them sequentially. As currently programmed, this increases the gas use of the progra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | false | ## Medium: Chainlink's `latestRoundData` may return a stale or incorrect result
### Description
Chainlink's `latestRoundData` is used here to retrieve price feed data; however, there is insufficient protection against price staleness.
Return arguments other than `int256 answer` are necessary to determine the validity... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | storage | true | false | ## Gas: [1] Multiple `address` mappings can be combined into a single `mapping` of an `address` to a `struct`, where appropriate
### Description
Saves a storage slot for the mapping. Depending on the circumstances and sizes of types, can avoid a Gsset (**20000 gas**) per mapping combined. Reads and subsequent writes c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | true | false | ## Low: Revert for wrong input
### Description
The `ERC20Paymaster` constructor skips tokens for which incorrect data has been passed, specifically for:
- Zero address
- Out-of-range `priceMarkup` | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | cross-chain | true | true | ## Lines of code
https://github.com/code-423n4/2022-12-tigris/blob/588c84b7bb354d20cbca6034544c4faa46e6a80e/contracts/GovNFT.sol#L168
## Vulnerability details
## Impact
In the contract `GovNFT`, it is possible to bridge the governance NFT to other chains. It is also stated in the document that:
>NFT holders only e... | Code4rena | 5 | Tigris Trade |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Possible Key Collisions In Packed Data
### Description
The `calcDestinationId` function is designed to generate a UUID based on a destination address and a blockchain identifier, aiming to ensure a unique identifier for different blockchain interactions. The function appends a destination address (`to`) wit... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Boost Miscalculation Leads to Excess Distribution
### Description
A critical vulnerability has been identified in the reward distribution mechanism where users receive identical rewards regardless of their staked amounts due to improper boost calculation implementation. This leads to rewards being distributed... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ChainlinkRelayer has different conditions for getResultWithValidity and read functions
### Description
`ChainlinkRelayer.getResultWithValidity` function allows only positive price: `_validity = _aggregatorResult > 0 && _isValidFeed(_aggregatorTimestamp);`.
`ChainlinkRelayer.read` function allows negative pric... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect value of MAX_UINT
### Description
In line 38 of `ReleaseGold.sol`, there is a [constant called `MAX_UINT`](https://github.com/celo-org/celo-monorepo/blob/db2e561e1f13220a98743a7999818e48a5089d13/packages/protocol/contracts/governance/ReleaseGold.sol#L38). This constant equals the value `0xffffffff... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Complicated state updates
### Description
When stake balances are modified (through [`delegateStake`](https://github.com/AudiusProject/audius-protocol/blob/6f3b31562b9d4c43cef91af0a011986a2580fba2/eth-contracts/contracts/DelegateManager.sol#L116), [`requestUndelegateStake`](https://github.com/AudiusProject/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: L11] A potentially inefficient mechanism for revoking policies
### Description
###### Low
The function [`revoke`](https://github.com/BeamNetwork/currency/blob/c0d8477866a8667a37f45c85378c5938c84569cd/contracts/currency/BeamBalanceStore.sol#L149) of the `BeamBalanceStore` contract removes all occurrences of 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 | initialization | true | false | ## Low: Initialisers Not Disabled on Implementation Contracts
### Description
The setup of each vault deploys two contracts, a proxy contract and an implementation. The implementation contract does not disable the initializers, allowing it to be initialized by third parties. The main danger of uninitialized contracts ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | true | false | ## Medium: Blocklisting in payment ERC20 can cause rented NFT to be stuck in Safe
### Description
When a rental is stopped, [`Stop.stopRent()`](https://github.com/re-nft/smart-contracts/blob/3ddd32455a849c3c6dc3c3aad7a33a6c9b44c291/src/policies/Stop.sol#L265) transfers the rented NFT back from the renter's Safe to 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 | other | true | false | ## Medium: The rewardsAdded calculation in extendRewardsInterval is incorrect
### Description
The `rewardsAdded` calculation in `extendRewardsInterval` is incorrect. The `rewardsAdded` and the new rate are calculated as below in `extendRewardsInterval`:
```solidity
uint256 remainingRewards = rewardsInterval.rate * (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 | rounding | false | false | ## High: Fees are wrongly calculated
### Description
**Update:** *Partially fixed in [pull request #64](https://github.com/endaoment/endaoment-contracts/pull/64). Fees can be still evaluated to `0` but the Endaoment team acknowledged this, given the fact that it’s an uncommon outcome and that `grant` values are bounde... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: UNNECESSARY CHECK
### Description
The `settle` function under `OnboardProposal` does check if the `proposal.result` is greater than zero and then reverts. However, that condition will never be reachable as the `status` condition will always proceed first and always revert if the `settle` function was ever call... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## High: Refactor _paymentAH()
### Description
## Vulnerability Report
## Severity:
**High Risk**
## Context:
**LienToken.sol#L571**
## Description:
The `_paymentAH()` function has several vulnerabilities:
- The `stack` parameter is defined as a memory parameter, so any updates made to `stack` do not reflect ba... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | false | false | ## Low: Unnecessary use of SafeMath library ✓ Fixed
### Description
Since [Solidity v0.8.0](https://blog.soliditylang.org/2020/12/16/solidity-v0.8.0-release-announcement/), all arithmetic operations are checked by default and revert on over- or underflow. Hence, it is not necessary anymore to use the `SafeMath` librar... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of Zero Amount validation
### Description
The program in-scope does not prevent the `restake` and `unrestake` methods from being called with `amount == 0`.
`- programs/restaking-program/src/contexts/restaking.rs`
```
pub fn restake(ctx: Context, amount: u64) -> Result {
// Check if solayer_signe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Nonce Increment in `_updateRefundValidatorsKeysCount` Function
### Description
The issue is identified within the [\_updateRefundValidatorsKeysCount](https://github.com/lidofinance/core/blob/fafa232a7b3522fdee5600c345b5186b4bcb7ada/contracts/0.4.24/nos/NodeOperatorsRegistry.sol#L744-L766) function 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 | medium | flash-loan | true | false | ## Medium: Pool tokens can be stolen via PrivatePool.flashLoan function from previous owner
### Description
## Lines of code
https://github.com/code-423n4/2023-04-caviar/blob/main/src/PrivatePool.sol#L461
https://github.com/code-423n4/2023-04-caviar/blob/main/src/PrivatePool.sol#L623-L654
## Vulnerability details
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The `svTokenValue` function can return overestimated value of each strategy vault share token
### Description
The `GMXReader.svTokenValue` function can return overestimated value of each strategy vault share token due to outdated `totalSupply`, i.e. without including pending management fees for a long perio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | false | false | ## Low: Unused constants
### Description
In `Constants.sol` there are a some unused constants, consider removing thses:
* [#L21: `SIGNER_ROLE`](https://github.com/YieldFiLabs/contracts/blob/40caad6c60625d750cc5c3a5a7df92b96a93a2fb/contracts/libs/Constants.sol#L21)
* [#L38: `VESTING_PERIOD`](https://github.com/YieldFiL... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect update for safeTotalSupply when the distribution is ended in function IncentiveCalculatorBase._snapshotRewarder()
### Description
**Severity:** High
**Path:** src/stats/calculators/base/IncentiveCalculatorBase.sol#L403-L424
**Description:**
Within the function `IncentiveCalculatorBase._snapshotR... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unchecked Return Values of ERC20 Functions
### Description
`ERC20(token).approve` reverted if the underlying ERC20 token approve did not return boolean. When transferring the token, the protocol uses `safeTransfer` and `safeTransferFrom`, but when approving the payout token, the `safeApprove` is not used for 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... | cyfrin_structured | low | token | true | false | ## Low: `ComplianceServiceRegulated::getServices` should use constants from `ComplianceServiceLibrary` when setting array indexes
### Description
`ComplianceServiceRegulated::getServices` should use constants from `ComplianceServiceLibrary` when setting array indexes:
```solidity
function getServices() internal view 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 | other | false | false | ## High: Smart contract owner is able to set any reward amount for holding of
### Description
**Description**
CryptoBearWatchClub NFT in the Smart contract Arkouda. (Resolved)
Arkouda.sol, setTokenIdReward
**Recommendation**:
Predefine reward amounts per NFT tier or let community to vote on changing reward
amounts. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `TapiocaOptionBroker.participate()` with the approve authorization, it still cannot be executed
### Description
If the user `isApproved()`, the user can call `TapiocaOptionBroker.participate()`.
The code is as follows:
However, in the current implementation, even though `msg.sender` has obtained authoriza... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Result of static calls should be cached in stack variables rather than re-calling storage-touching functions
### Description
Caching will replace each Gwarmaccess (100 gas) with a much cheaper stack read.
1. File: contracts/IndexLogic.sol (line [41](https://github.com/code-423n4/2022-04-phuture/blob/594459d0... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: OwnershipNFTs.sol doesn't fully match EIP-721's implementation
### Description
https://github.com/code-423n4/2024-08-superposition/blob/4528c9d2dbe1550d2660dac903a8246076044905/pkg/sol/OwnershipNFTs.sol#L182
### Impact
`tokenURI` doesn't enforce that the token being checked is a valid token, which can lead 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 | high | rounding | true | false | Source: https://github.com/sherlock-audit/2023-06-tokemak-judging/issues/589
## Found by
xiaoming90
A DV might be incorrectly marked as not sitting in a loss, thus allowing users to burn all the DV shares, locking in all the loss of the DV and the vault shareholders.
## Vulnerability Detail
Let $DV_A$ be a certai... | Sherlock | 5 | Tokemak |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ClaggSyncAdapter._addLiquidity() wrongly calls approve() instead of safeApprove()
### Description
In `ClaggSyncAdapter._addLiquidity()`, `approve()` is called instead of `safeApprove()` when depositing token as liquidity:
```solidity
IERC20(token).approve(address(syncRouter), amount);
liquidity = syncRoute... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: CC `WP-H3` from the WatchPug second report
### Description
The [current implementation](https://github.com/code-423n4/2024-07-loopfi/blob/57871f64bdea450c1f04c9a53dc1a78223719164/src/CDPVault.sol#L607) still lacks taking into account any accumulated penalty when calculating the loss, leaving the window still o... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: collectedEther subject to manipulation
### Description
[Line 159 of DSTContract.sol](https://github.com/ether-camp/virtual-accelerator/blob/6d4097a08669c2520e0d5bab317b60f1d13df44e/contracts/DSTContract.sol#L159) isn’t considering the fact that `collectedEther` can actually need to be increased by a smaller 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 | access-control | true | false | ## High: Protocol migration is vulnerable to front-running and a loss of funds
### Description
The migration from Gro protocol to GSquared protocol can be front-run by manipulating the share price enough that the protocol loses a large amount of funds. The `GMigration` contract is responsible for initiating the migrat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Don't update state | false | false | ## Severity: Medium Risk
## Context
LienToken.sol#L143-148
## Description
When a lien is bought out, `_buyoutLien` calls `_getMaxPotentialDebtForCollateral` to confirm that this number is lower than the `maxPotentialDebt` specified in the lien. However, this function is called with the existing stack, which hasn't ye... | Spearbit | 5 | Astaria |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Market-vault disconnection will bring permanent inconsistent state
### Description
In the protocol, for the most of the time, market and vault's state vars are updated by deltas, not by direct updation. This delta-change operation does not work well when market and vault connection is changed. It doesn't reco... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Single-step process for critical ownership transfer/renounce is risky
### Description
_Submitted by 0xRajeev_
The `SwappableYieldSource` allows owners and asset managers to set/swap/transfer yield sources/funds. As such, the contract ownership plays a critical role in the protocol.
Given that `AssetManage... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent return handling in redirectForToken
### Description
The `redirectForToken` function in the `HederaTokenService` contract has inconsistent return handling between its original version and the version in scope. The original version returns `(HederaResponseCodes.SUCCESS, result)`, while the in-scope ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: saving in price calculation
### Description
In the function for calculating price, you can save gas when calculating the variables `S_` and` c` in case if `i=1`, `j=0`, `N_COINS=2`:
https://github.com/lidofinance/curve-merkle-oracle/blob/ae093b308999a564ed3f23d52c6c5dce946dbfa7/contracts/StableSwapPriceHelper.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Asset Management Optimization
### Description
__add_assets may be optimized to enhance efficiency and readability and minimize resource costs.
### RUST
### Remediation
Eliminate the `assets_indexes` vector and conduct the `set_asset_index` operations directly within the initial for loop.
### Patch
Fixed ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Whitelisted users can create trading accounts for non-whitelisted users
### Description
The protocol's whitelist system is designed to provide access to protocol only to whitelisted users by restricting the creation of trading accounts. However, whitelisted users can create an unlimited number of trading 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 | medium | front-running | true | false | ## Medium: Composing approval with other messages is subject to DoS
### Description
`TOFT::sendPacket` function allows the caller to specify multiple messages that are executed on the destination chain.
On the receiving side the `lzCompose` function in `TOFT` contract can be DoS-ed by front-running the approval messa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: recoverTokens doesn't work when isSale is true
### Description
_Submitted by harleythedog, also found by kenzo, pedroais, hyh, and pauliax_
#### Impact
In `recoverTokens`, the logic to calculate the excess number of deposit tokens in the contract is:
uint256 excess = ERC20(token).balanceOf(address(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 | low | cross-chain | true | false | ## Low: ONLYBRIDGE MODIFIER IS NEVER USED
### Description
The `onlyBridge` modifier is never used in the code.
Code Location
-------------
### Recommendation
**SOLVED**: The `SeaScape Team` now uses the `onlyBridge` modifier on the `mint` and `burn` functions. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | Business Logic | false | true | _Submitted by TomFrenchBlockchain, also found by cmichel_
#### Impact
Total loss of funds which have been approved on `VaderPoolV2`
#### Proof of Concept
`VaderPoolV2` allows minting of fungible LP tokens with the `mintFungible` function
<https://github.com/code-423n4/2021-11-vader/blob/607d2b9e253d59c782e921bfc29... | Code4rena | 3 | Vader Protocol |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## High: Cross-chain liquidation uses incorrect lToken address, preventing repayment and breaking liquidation flow
### Description
The liquidation flow fails due to the incorrect use of the `lToken` address from Chain A when processing on Chain B. Specifically, after collateral is seized on Chain A, a message is sent ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | flash-loan | false | false | ## Low: Hardcoded addresses.
### Description
At the lines https://github.com/CoverProtocol/cover-flashloan/tree/bea8cd444aa1791a97b2a81078dc887a835f7949/contracts/CoverFlashBorrower.sol#L23-L24
the DAI and yDAI addresses is hardcoded. But if the contract deployed to some other testnet it must be different.
### Recomm... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Missing comments on Code
### Description
**Description:**
Most of the contract functions are missing comments.
**Recommendations:**
Recommended to add comments on all contract functions. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | Business Logic | false | false | ## Severity Report
**Severity:** Medium Risk
**Context:** `Oracle.1.sol#L115-L118`
## Description
`memberIndex` will be equal to `-1` for non-existing oracles, which will cause the mask to be equal to `0`, leading to the function returning `true` for non-existing oracles.
## Recommendation
Consider changing the ... | Spearbit | 5 | Liquid Collective |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `_timestampLU` can be equal to 0
### Description
`_timestampLU` can be equal to 0, for example in constructor:
https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/pool/PoolService.sol#L209
https://github.com/Gearbox-protocol/gearbox-contracts/blob/0a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: wrong bToken's exchangeRateStored used for calculate ColleteralValue
### Description
Source: https://github.com/sherlock-audit/2023-07-blueberry-judging/issues/117
## Found by
mert\_eren
BlueBerryBank.sol calculate position's risk value with `getPositionRisk()` . This function used for is position can be 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 | other | false | false | ## Low: Check that the length of array parameters matches.
### Description
**Description**
SoftClayContract.sol: function addClaimableSoftClay(). The length of passportids and amounts should be verified to match each other. Such
validations are helpful for ease of error navigation.
ImageData.sol: function setNavlma... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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/code-423n4/2022-12-escher/blob/main/src/minters/FixedPrice.sol#L73>
<https://github.com/code-423n4/2022-12-escher/blob/main/src/minters/LPDA.sol#L81-L88>
### Impact
In the `buy` function of FixedPrice and LPDA contracts, the transfer of funds to `saleReceiver` only happens when `newId` becomes e... | Code4rena | 5 | 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... | skyward_49k | low | other | false | false | ## Low: STATE VARIABLES MISSING CONSTANT MODIFIER
### Description
State variables can be declared as `constant` or `immutable`. In both cases, the variables cannot be modified after the contract has been constructed. For `constant` variables, the value has to be fixed at compile-time, while for `immutable`, it can sti... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Seller Cannot Make Same Offer Twice
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `5a0b90d7059321eb18a76e8df3fdf63f42120a35`. The client provided the following explanation: Add Seller cannot make the exact same offer twice to readme. This finding has been addressed via documentation... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: The getUrn function does not guarantee the urn existance
### Description
The `getUrn` function calculates the urn address using `create2`. This will also work for future urn addresses that are not actually created.
### Recommendation
- Consider adding a comment in the `getUrn` function.
- Furthermore, conside... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Swap fee not applied
### Description
## Handle
a_delamo
## Vulnerability details
Here you have more information: https://gist.github.com/alexon1234/a2d3619fb3faa4e5676329f70bd565d3 | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Useless boolean return
### Description
**Description**
StakingData.sol, endRound(), addVault() - always return true, which makes the return value
useless.
**Recommendation**:
remove return value. | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.