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 | reentrancy | false | false | ## Low: Function swap() sends ether, it is recommended that you add openzeppelin’s reentrancy guard to prevent any possible reentrancy attacks.
### Description
**Severity**: Informational
**Status**: Acknowledged
**Recommendation**:
Add openzeppelin reentrancy guard library to this function. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 checks for `address(0)` when updating state variables
### Description
Check for zero-address to avoid the risk of setting `address(0)` for state variables after an update.
*There are 20 instances of this issue.*
---
**[Picodes (judge) commented](https://github.com/code-423n4/2024-04-panoptic-finding... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ADMINISTRATORS ARE ALLOWED TO BURN USERS DDPRIME TOKENS WITHOUT AUTHORIZATION
### Description
An administrator of the `ddPrime` token can burn users' tokens. Such action might break the `StakingVault` contract, as it keeps its copy of `ddPrime` balances.
Code Location
-------------
[`ddPrime.sol`](https:/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: `increaseDeposit()` May Revert if No Swap Is Performed
### Description
**Update**
The team fixed the issue as recommended in the commit `20cdeb5`.
**File(s) affected:**`PositionLibrary.sol`
**Description:** When increasing the deposit of a position through `PositionLibrary.increaseDeposit()`, the following 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 | gas | other | true | false | ## Gas: [17] Use a more recent version of solidity
### Description
Use a solidity version of at least 0.8.10 to have external calls skip contract existence checks if the external call has a return value | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | true | false | ## High: Addresses of the short and long tokens are incorrectly assigned
### Description
The `isLiquidationFinished` function in the **AccountGetters** library incorrectly assigns the addresses for the long and short tokens. It happens because when calling the `GmxMarketGetters.getMarketTokens` function, the returned ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | false | false | ## Medium: Insufficient Slippage Protection for Liquidity Operations
### Description
**Update**
The Hifi team has attempted to mitigate the issue by using slippage checks on the front-end. However, front-ends cannot sufficiently protect against slippage due to front-running of transactions.
**File(s) affected:**`pack... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: WOONKLYMINTING.SAFETRANSFERFROM PRIVATE FUNCTION CAN BE REMOVED
### Description
In the `WoonklyMinting` contract, the function `_safeTransferFrom()` is a private function that just does a external `safeTransferFrom()` call:
### Recommendation
**SOLVED**: The `Woonkly team` now uses the `SafeERC20.safeTransfer... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Requested withdrawal can be impossible to settle due to EigenLayer shares value appreciate when there are idle funds in deposit pool
### Description
When users request a withdrawal, the EigenLayer shares equivalent to their LRT's value are recorded. During settlement, these EigenLayer shares must be deducted ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Usage of deprecated transfer() can result in revert.
### Description
The function withdrawPayments() is used by the Owners to withdraw the fees.
### Impact
transfer() uses a fixed amount of gas, which can result in revert.
https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/
###... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Better sanitization in _getPoolIndexInFarming() of StargatePlugin
### Description
If the call to _getPool() returns an address of zero, the plugin could confuse it as a valid found
pool. It is best to revert in that scenario. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lookup key strings are not centrally defined
### Description
Known Augur contracts are tracked in the [`registry`](https://github.com/AugurProject/augur/blob/9a33c3269e812d0cb66d49b61a72db58e32e4749/packages/augur-core/source/contracts/Augur.sol#L78) [`mapping`](https://github.com/AugurProject/augur/blob/9a33c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | true | false | ## Medium: `RngRelayAuction.rngComplete()` DOS attack
### Description
If the recipient maliciously enters the blacklist of `priceToken`, it may cause `rngComplete()` to fail to execute successfully.
### Proof of Concept
The current implementation of `RngRelayAuction.rngComplete()` immediately transfers the `prizeTok... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Lack of event emission OwnershipTransferred on contract construction
### Description
The `OwnershipTransferred` event is not being emitted when the [`ArroToken` contract is initialized](https://github.com/pjsimpkins/ArroERC20Code/blob/1ca1cc85f2e7e046070c187031b75b3335ef57c3/Solidity#L81).
This means that 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 | overflow | false | false | ## High: Cds depositors profit up to the strike price is not redeemable as the total cds deposited amount is not increased
### Description
Cds depositors get the profit on the eth price increase up to the strike price (5%), and any increase above this threshold goes to the borrowers. However, this amount is never adde... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: mod/state-transition/pkg/core/state/ExpectedWithdrawals returns error if non-0x01 withdrawal
### Description
`ExpectedWithdrawals` is not in line with the reference implementation, but this can only be a problem if and only if there are validators with a non-0x01 prefixed withdrawal credential.
`ExpectedWith... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | other | false | false |
The `_deposit` function increases the member's _weight_ by `_weight = iUTILS(UTILS()).calcValueInBase(iSYNTH(_synth).TOKEN(), _amount);` which is the swap output amount when trading the deposited underlying synth amount.
Notice that anyone can create synths of custom tokens by calling `Pools.deploySynth(customToken)`... | Code4rena | 5 | 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 | low | token | false | false | ## Low: Rebase Rewards distribution is shifted by one week, allowing new depositors to receive unfair yield initially (which they'll give back after they withdraw)
### Description
The finding is not particularly dangerous but it is notable that because Reward will allow claiming of rewards on the following Epoch, and ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: doesn't follow the EIP standard
### Description
doesn't follow the EIP standard
### Impact
By invoking the SmartVaultManagerV5.tokenURI method for a maliciously provided NFT id, the returned data may deceive potential users, as the method will return data for a non-existent NFT id. This can lead to a poor use... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Imprecise bounds
### Description
There are several examples where the time windows or value ranges are defined inconsistently. In particular:
* The `getWithdrawalInfoInternal` function of the `RoutineInvokerLibV1` library considers the `end` timestamp to be [part of the withdrawal period](https://github.com/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `2**<n> - 1` should be re-written as `type(uint<n>).max`
### Description
Earlier versions of solidity can use `uint(-1)` instead. Expressions not including the `- 1` can often be re-written to accomodate the change (e.g. by using a `>` rather than a `>=`, which will also save some gas)
*There is 1 instance 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 | medium | cross-chain | false | false | ## Medium: Silent Fails Ignored for Transfers of Funds via `transfer()` and `transferFrom()`
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `ac05853c5e6832f718622a6c0c4b02ada20bb4d9`.
**File(s) affected:**`PheasantNetworkBridgeChild.sol`, `PolygonPheasantNetworkBridgeChild.sol`, `BondManage... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `update_emergency_council_7_D_0_C_1_C_58()` updates nft manager instead of emergency council
### Description
Inside of `lib.rs`, there is a function `update_emergency_council_7_D_0_C_1_C_58()` that is needed to update the emergency council that can disable the pools. However, in the current implementation, `n... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Rate Limiting Affecting the Usability and User’s Funds Safety
### Description
In `claimMessage` of `L1MessageService` and `sendMessage` function of `L1MessageService` contract, function `_addUsedAmount` is used to rate limit the Ether amount (1000 Eth) sent from L2 to L1 in a time period (24 hours), this 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 | other | true | false | ## High: Incorrect reserve mapping leads to fault swap
### Description
The function `_getSwapAmt` incorrectly assumes that `_r0` corresponds to `_t0` and `_r1` corresponds to `_t1`. However, Uniswap V2's `getReserves()` returns reserves based on the **sorted** order of token addresses, not based on input order. This 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 | medium | other | false | false | ## Medium: Offers can be allocated to incentivized vaults with a reward period shorter than the minimum requirement
### Description
Severity: Medium Risk
Context: VaultKernel.sol#L225-L227
Description: The end - start end or change the if condition to end < block.timestamp +
MIN_CAMPAIGN_DURATION to avoid integer ove... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Functions to claim fees should be accessible even when pool is disabled
### Description
https://github.com/code-423n4/2024-08-superposition/blob/4528c9d2dbe1550d2660dac903a8246076044905/pkg/seawater/src/pool.rs#L562-L565
https://github.com/code-423n4/2024-08-superposition/blob/4528c9d2dbe1550d2660dac903a82460... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: public functions not called by the contract should be declared external instead
### Description
when a function is declared as public, it is generated with an internal and an external interface. This means the function can be called both internally (within the contract) and externally (by other contracts or ac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unrestricted Asset Interaction and Lack of Allowlist
### Description
**Severity** : Informational
**Status**: Acknowledged
**Description**:
The service does not impose restrictions or perform validations/sanitizations on the assets it interacts with. Consequently, it creates an exploitable security vulne... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Unnecessary conditions can be removed from `LibUniformDistribution` conditionals
### Description
**Description:** `LibUniformDistribution::inverseCumulativeAmount0` short circuits if the specified `cumulativeAmount0_` is zero, meaning that the value of this variable is guaranteed to be non-zero in subsequent e... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Last Modifier Update
### Description
## Registry Service Update
## Issue Description
The `registry_service::set_attribute` function does not currently update the `last_updated_by` field within the `InvestorInfo` structure for an investor when setting or updating an attribute. This field should record... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Function declaration formating consistency
### Description
Other long function declarations are broken into two lines.
### Recommendation
- Change the function declaration from:
```solidity
function parsePaymasterAndData(bytes calldata paymasterAndData) public pure returns(uint48 validUntil,
uint48 vali... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Magic numbers should be replaced by constant variables
### Description
**Description:** The magic numbers `10_000`, `2000e18`, `201`/`201e18` are used throughout the `Ignite` contract but should be made constant variables instead.
**Recommended Mitigation:** Use constants in place of the magic numbers outline... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: USER COULD CANCEL THE REST OF BIDS OF AN AUCTION BY DOING 200 DIFFERENT BIDS
### Description
In the `AuctionUpgradeable` contract, the internal function `_settleAuction()` is called every time an auction is closed:
### Recommendation
**SOLVED:** The `Irrigation Protocol team` solved the issue by implementi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | access-control | true | false | ## Gas: Functions guaranteed to revert when called by normal users can be marked `payable`
### Description
If a function modifier such as `onlyOwner` is used, the function will revert if a normal user tries to pay the function. Marking the function as `payable` will lower the gas cost for legitimate callers because th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | false | false | ## Gas: `require()` or `revert()` statements that check input arguments should be at the top of the function
### Description
Checks that involve constants should come before checks that involve state variables
*There are 2 instances of this issue.* | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Dependencies on External Libraries Contain Known Vulnerabilities
### Description
**Update**
The team now uses Golang v1.22 and has updated the `github.com/jackc/pgx/v5` dependency to v5.5.4. Addressed in: `37fbb0da8c` and `7ea7faad`.
**File(s) affected:**`*`
**Description:** The Golang security checker `govu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users Fund Loss When Adding Liquidity to Ramses Since Remaining Tokens Are Not Paid Out
### Description
User funds are lost when adding liquidity to Ramses since the remaining tokens are not paid out.
### Impact
Users can lose funds when they sell portal energy and choose to add liquidity to the PSM WETH poo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Pre-hook transfer window allows unrestricted token movement
### Description
When the mint is created before the extra_account_meta_list account is initialized, the Transfer-Hook extension is not yet enforced. Any tokens minted or transferred during that gap bypass the whitelist and can land in non-whitelisted ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | liquidation | true | false | ## Gas: Offset calculations are performed in each iteration
### Description
In the referenced lines, the initial offsets are included in the calculation of each loop iteration. It would be more gas efficient to account for it outside the loop, then perform the required operation per iteration.
### Recommendation
```s... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Amounts should be checked for 0 before calling a transfer
### Description
Checking non-zero transfer values can avoid an expensive external call and save gas.
Consider adding a non-zero-value check here: | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Only allow execution if value parameters match `msg.value` to prevent eth remaining in the `EthenaTimelockController` contract
### Description
**Description:** `EthenaTimelockController::execute` and `executeWhitelistedBatch` allow execution without checking that the `msg.value` is equal to the input `value`/`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | true | false | ## High: Infinite loop in shardeum
### Description
## Infinite loop in shardeum
Report type: Blockchain/DLT
Target: https://github.com/shardeum/shardeum/tree/dev
Impacts:
* RPC API crash affecting projects with greater than or equal to 25% of the market capitalization on top of the respective layer
* Network 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 | low | initialization | true | false | ## Low: setMintFeeRecipient() could be rendered unusable
### Description
The `setMintFeeRecipient()` function in the `SPGNFT` contract is designed to allow the current mint fee recipient to update the address to a new recipient. However, this function is vulnerable if the `_mintFeeRecipient` is set to a contract addre... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Unused "Address"
### Description
At line:
https://github.com/tonkers-kuma/strategy-ssb/blob/e49d07a64ea0eb4f5a199c2bf9ea4c8aee2b313f/contracts/Strategy.sol#L21
### Recommendation
We recommend removing "using Address for 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 | low | other | true | false | ## Low: Discrepancy Between Intended and Actual Behavior
### Description
The documentation does not correspond to the actual implementation. In the `Aggregator` contract the validation of the parameter `_feeFactor` in `setFeeStructure()` should ensure the value is greater than zero according to the NatSpec documentati... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: bitcoin-spv - Bitcoin output script length is not checked in wpkhSpendSighash Won't Fix
### Description
`CheckBitcoinSigs.wpkhSpendSighash` calculates the sighash of a Bitcoin transaction. Among its parameters, it accepts `bytes memory _outpoint`, which is a 36-byte UTXO id consisting of a 32-byte transact... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | signature | true | false | ## Medium: Deposits are invalid across forks
### Description
When processing deposits, the validators perform a proof of possession by checking that the public key signed the message `(pubkey, credentials, amount, DOMAIN_DEPOSIT ++ forkRoot)`. BeaconKit uses the active fork version of the current block:
```go
// Veri... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Medium: _domainSeparatorV4() not updated after name /symbol change
### Description
The `BridgeToken` allows updating the name and symbol of a token. However, the `_CACHED_DOMAIN_SEPARATOR` (of EIP712) isn't updated. This means that `permit()`, which uses `_hashTypedDataV4()` and `_CACHED_DOMAIN_SEPARATOR`, still us... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Duplicated `require()`/`revert()` checks should be refactored to a modifier or function
### Description
The compiler will inline the function, which will avoid `JUMP` instructions usually associated with functions
*There are 14 instances of this issue:*
https://github.com/code-423n4/2022-07-golom/blob/e5efa8... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Reward tokens without a direct pair with FNDZ in swap protocol cannot be withdrawn as FNDZ.
### Description
**Description**
InlineSwapMixin.sol: function _inlineSwapAsset().
Function_inlineSwapAsset() is used by FNDZStaking for swapping reward tokens to FNDZ(FNDZStaking.sol: line 473). Function creates a swa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | logic | true | false | ## High: Cross-chain collaterals are wrongly calculated in the borrowWithInterest function
### Description
The `borrowWithInterest` function can not correctly calculate the cross-chain collaterals, which affects the entire repayment logic.
### Impact
An incorrect calculation of the borrowed amount will be made as 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: Replace a frequently used number by a constant
### Description
**Severity**: Informational
**Status**: Acknowledged
**Description**
phenomanelTree.sol & dpnm_sc.sol - depth of tree, which is assigned to be 15. This number is repeated throughout the contract, and it's not considered a good coding pattern. Si... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: accountant address can be set to zero by anyone leading to loss of funds/tokens
### Description
_Submitted by cryptphi_
In `CNote._setAccountantContract()`, the require() check only works when `address(_accountant) != address(0)` , leading to the ability to set `_accountant` state variable to the zero add... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Zero-weight extrinsics can be used to spam the network
### Description
The following extrinsics have a base weight set to zero and can therefore be used to spam the network, causing a denial of service:
- `PswapDistribution::claim_incentive`
- `BridgeMultisig::register_multisig`
- `BridgeMultisig::remove_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 | medium | cross-chain | true | false | ## Medium: retryMessage unable to handle edge cases.
### Description
The function `retryMessage()` is unable to handle some edge scenarios listed below.
1. Reverting or refunding a sender when the receiver is banned after the transaction is placed in a `RETRIABLE` state.
2. Message that is suspended after the trans... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ChefIncentivesController caches `endRewardTime`, which is not required, and may cause issues during reward update
### Description
When calculating the `endRewardTime`, there is a cache mechanism that caches the result for `endingTime.updateCadence` (in UT it is set to 2 days). However, during this period, 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 | gas | other | true | false | ## Gas: Return boolean expression directly
### Description
These function bodies can be simplified to just return the boolean expression. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lock and Unlock Fail for More than 255 Token Ids
### Description
**Update**
The team acknowledged the issue by stating that the input is being controlled by the UI and that no negative consequences occur in practice.
**File(s) affected:**`ElderGateway.sol`
**Description:** In both `lock` and `unlock` functio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | false | false | ## High: Wrong Oracle feed addresses
### Description
Wrong Oracle feed addresses will result in wrong prices.
### Impact
Wrong prices for collateral assets.
### Recommendation
Use correct addresses. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Use hardcode address instead address(this)
### Description
### Relevant GitHub Links
https://github.com/Cyfrin/2023-07-foundry-defi-stablecoin/blob/main/src/DSCEngine.sol#L157
## Summary
## [G-20] Use hardcode address instead address(this)
Instead of using address(this), it is more gas-efficient to pre-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 | medium | other | false | false | ## Medium: `withdrawalWallet` cannot be upgraded in the `ReturnsAggregator`
### Description
`withdrawalWallet` can be updated in the `Staking` contract https://github.com/TwoFiftySixLabs/mntEth/blob/bd15a96aee7df0fc0566d662df0cf50ff2619d31/src/Staking.sol#L709 but it cannot be updated in the `ReturnsAggregator` 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 | false | false | ## Low: Events not emitted for important state changes
### Description
When changing state variables events are not emitted. Emitting events allows monitoring activities with off-chain monitoring tools.
### Findings
[NotionalTradeModule.sol#L301](https://github.com/code-423n4/2022-06-notional-coop/blob/6f8c325f604e2... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | SOLMate | true | true |
When bidding, the contract pulls the quote token from the bidder to itself.
<https://github.com/code-423n4/2022-11-size/blob/main/src/SizeSealed.sol#L163>
```solidity
SafeTransferLib.safeTransferFrom(ERC20(a.params.quoteToken), msg.sender, address(this), quoteAmount);
```
However, since the contract uses Solmate's ... | Code4rena | 5 | SIZE |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | false | false | ## High: First deposit attack via share price manipulation
### Description
**Severity**: High
**Status**: Resolved
**Description**
ERC4626 contracts are subject to a share price manipulation attack that allows an attacker to steal underlying tokens from other depositors.
In Contract GlmRouter.sol, the method `gmTo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Lack of safety measures in depositETH() function
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
Part A) depositETH() allows anyone to deposit ETH(i.e. token1 or token2 if it's a WETH) at any point of time. But it can lead to bypass of checks in _deposit() function for the same ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: LineaToken: _msgSender() Should Be Replaced With msg.sender ✓ Fixed
### Description
There are three occurrences of `_msgSender()` in `L2LineaToken`, all in the `mint` and `burn` function:
**src/L2/L2LineaToken.sol:L70-L94**
```
/**
* @notice Mints the Linea token.
* @dev NB: Only the L2 token bridge can ca... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Proposals have no deadline.
### Description
**Description**
Proposals are not limited in timeline, which means that some proposals might be voted for
later, when they appear not to be actual for protocol. Such behavior might be potentially
used by malicious actors(In case owners are compromised).
**Recom... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: depositsQueueHash includes nullified invalid deposits
### Description
`notarizeSettlement()` in the beginning of the function deletes invalid deposits (their data is nullified).
Then, valid deposits are settled in the sequential order.
`computeQueueHash()` can include previously deleted deposits, thus `settlem... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | reentrancy | true | false | ## Low: Use `ReentrancyGuardTransient` for more efficient `nonReentrant` modifiers
### Description
Use [`ReentrancyGuardTransient`](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/ReentrancyGuardTransient.sol) for more efficient `nonReentrant` modifiers:
```diff
- import "@openzeppel... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `merkleRoot` can't be updated
### Description
`merkleRoot` can't be updated:
https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/core/AccountMining.sol#L28
### Recommendation
We recommend adding a function for updating `merkleRoot`. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Pending rewards are calculated incorrectly
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
Admin can modify rewardPerBlock which can lead to issues. The code at line 135, line 185, and line 223 calculates the pending reward based on current value of rewardPerBlock rather than 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... | cyfrin_structured | high | other | true | true | ## High: Mismatch in multiplier position causes incorrect weight calculations in `QuantAMMWeightedPool`
### Description
The primary feature of QuantAMM weighted pools is to periodically update weights based on various trading rules set during pool creation. These weights are updated by a singleton contract, `UpdateWei... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Airlock Missing Fee Check
### Description
## Vulnerability Report: Fee Destination Validation Issue
In the create instruction, the program does not check if `new_schedule.fee_destination` is a valid `TokenAccount`. This could potentially lead to locked funds if an invalid Pubkey is provided for the fee des... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | false | false | ## Low: Inconsistency in SSL/TLS Configuration Between Domain and ELB Endpoint(All Servers and Relayers)
### Description
**Severity**: Low
**Status** : Resolved
**Description**:
An inconsistency has been identified in the SSL/TLS configuration between the domain and its underlying AWS Elastic Load Balancer (ELB) ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | other | true | true | Source: https://github.com/sherlock-audit/2023-02-olympus-judging/issues/110
## Found by
Bahurum, Bobface, KingNFT, cducrest-brainbot, 0x52, immeas
## Summary
Adversary can profit off of the single sided liquidity vault by depositing, buying OHM, withdrawing then dumping the profited OHM. This attack remains profi... | Sherlock | 5 | Olympusdao |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: [12] Simplify `supportsInterface` check
### Description
### 12.1 NFTDropCollection.sol
`NFTDropCollection.supportsInterface` (lines [284-295](https://github.com/code-423n4/2022-08-foundation/blob/792e00df42/contracts/NFTDropCollection.sol#L284-L295)) can be changed to:
### 12.2 CollectionRoyalties.sol
`Col... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect rounding in withdraw
### Description
## gfx-ssl Program's Withdraw Instruction
In the gfx-ssl program’s Withdraw instruction, a user withdraws a percentage of their share from the pool. However, the user may also have a portion of their shares locked as pool tokens. In this case, their withdrawal... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | token | false | false | ## High: Block Reorg Can Allow For Double Spending
### Description
**Description**:
Block reorg, also known as blockchain reorganization, is a situation where a competing chain replaces the main blockchain. This can happen when multiple miners find valid blocks at the same time, and the network has to decide which b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | false | false | ## Low: Rounding errors are not always in favor of the pool
### Description
Fixed-point arithmetic introduces small errors in the computations used throughout the contracts. The `BNum` library makes use of fixed-point algorithms that minimize these errors (by rounding to the nearest smallest unit). However, these erro... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Twav.getTwav() will return a wrong result when twavObservations[TWAVBLOCK_NUMBERS - 1].timestamp = 0.
### Description
## Lines of code
https://github.com/code-423n4/2022-06-nibbl/blob/8c3dbd6adf350f35c58b31723d42117765644110/contracts/Twav/Twav.sol#L36
## Vulnerability details
## Impact
The "if" conditi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: requestId has no unique parameters leading to different collisions
### Description
The requestId parameter that's derived when posting a request is not unique and therefore can't be replicated again if needed or can be blocked by other users with front-running.
### Impact
Data request collisions open up 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 | liquidation | false | false | ## Medium: Rounding directions
### Description
## Severity: Medium Risk
## Context
- `GenericLogic.sol#L236-L242`
- `MiniPoolGenericLogic.sol#L202-L209`
## Description/Recommendation
- **GenericLogic.sol#L236-L242, MiniPoolGenericLogic.sol#L202-L209**: Make sure all operations round-up when calculating totalDebtInET... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | false | ## Security Assessment Report
## Severity
**Medium Risk**
## Context
- **Files**:
- `OverlayV1UniswapV3Factory.sol#L19-L40`
- `OverlayV1UniswapV3Feed.sol#L30-L78`
## Description
The constructor in `OverlayV1UniswapV3Factory.sol` and `OverlayV1UniswapV3Feed.sol` only performs a partial check to determine if the ... | Spearbit | 5 | Overlay |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing sanity value checks
### Description
**Severity**: Low
**Status**: Acknowledged
**Description**
In `ParibusOracleDelegate.sol`, there is missing sanity value checks for pricesWei calldata array parameter for both `setCollectionPricesWei()` and `setPricesWei()` functions. This can lead to incorrect ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: Unnecessary check
### Description
**Severity**: Informational
**Status**: Resolved
**Location**: BandoFulfillableV1.sol, BandoERC20FulfillableV1.sol
**Description**
In the _authorizeRefund() function, the deposits variable is checked with both weiAmount and total_refunds.
However, the total_refunds is the ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | Gas Price | false | false |
[HolographOperator.sol#L354](https://github.com/code-423n4/2022-10-holograph/blob/f8c2eae866280a1acfdc8a8352401ed031be1373/contracts/HolographOperator.sol#L354)<br>
Operators in Holograph do their job by calling executeJob() with the bridged in bytes from source chain.<br>
If the primary job operator did not execute ... | Code4rena | 5 | Holograph |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | true | false | ## Low: Unclear economic sustainability of allowing user to avoid liquidations
### Description
The FxUSD contracts allow moving fToken from the rebalance pool into them and minting FxUSD. (This method is used to attempt to increase the collateral ratio by burning fToken.) Moving tokens in this way is allowed even when... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Low: Missing Checks for Function Arguments
### Description
When operations with `address` parameters are performed, it is crucial to ensure that the address is not set to zero. Setting an address to zero is problematic because it has special burn/renounce semantics. Thus, this action should be handled by a separate... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | storage | false | false | ## Medium: NO FILE VALIDATION ON UPLOAD DOCUMENTS FOR KYC PROCESS
### Description
The file types allowed to be uploaded should be restricted to only those that are necessary for business functionality. A malicious actor was able to upload non-image files.
1. Navigate to `https://staging.truffles.one`.
2. Create an ac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Accumulator._insert()` might result in memory collision in future code
### Description
This function expands the size of the `rentalAssets` memory variable, assuming there's no memory that's currently used afterwards.
This is true under current code, but worth keeping an eye on it for future code changes or 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... | solodit_api | medium | DOS | true | true |
<https://github.com/code-423n4/2022-11-size/blob/main/src/SizeSealed.sol#L217><br>
<https://github.com/code-423n4/2022-11-size/blob/main/src/SizeSealed.sol#L269><br>
<https://github.com/transmissions11/solmate/blob/main/src/utils/FixedPointMathLib.sol#L44>
There is a `finalize` function in the `SizeSealed` smart cont... | Code4rena | 5 | SIZE |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Make `isLizardWithdrawable` directly return the result of the check
### Description
There is no need to have an if-else statement in the method, instead just directly do:
in `isLizardWithdrawable`. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | critical | dos | true | false | ## Critical: `AccountableAsyncRedeemVault::fulfillCancelRedeemRequest` can de-sync request data causing permanent DOS for queue processing
### Description
`fulfillCancelRedeemRequest()` function first finalises the cancellation of the redeeem request with input `requestID`, and then calls `_reduce()` to update the req... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: Upgradeable contract is missing a
### Description
[L-08] Upgradeable contract is missing a __gap[50] storage variable to allow for new storage variables in later versions
See this link for a description of this storage variable. While some contracts may not currently be sub-classed, adding the variable now pro... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: RocketDAONodeTrustedActions - No way to access ETH provided by non-member votes Acknowledged
### Description
DAO members can challenge nodes to prove liveliness for free. Non-DAO members must provide `members.challenge.cost = 1 eth` to start a challenge. However, the provided challenge cost is locked within ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: _distributeRewards Does Not Reset Approval If Not All Tokens Were Allocated
### Description
## Handle
leastwood
## Vulnerability details
## Impact
`_distributeRewards` attempts to reward LP token holders when the price of Malt exceeds its price target. Malt Finance is able to being Malt back to its peg... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `LiquidityProviders`: Setting new liquidity pool will break contract
### Description
_Submitted by cmichel, also found by gzeon_
[LiquidityProviders.sol#L171](https://github.com/code-423n4/2022-03-biconomy/blob/db8a1fdddd02e8cc209a4c73ffbb3de210e4a81a/contracts/hyphen/LiquidityProviders.sol#L171)
Owners 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 | medium | storage | false | false | ## Medium: USDC DECIMALS
### Description
It was found that the `USDC` token has been set up with `4` decimals. This was observed in the `/tokens/list` API endpoint.
The accepted standard for the amount of decimals to be used when working with `USDC` is `6`. By performing calculations using `4` decimal places, It migh... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Trading out of the money options has delta = 0 which breaks protocol assumptions of traders profit being fully hedged and can result in a loss of funds to LPs
### Description
Smilee protocol fully hedges all traders pnl by re-balancing the vault between base and side tokens after each trade. This is the ass... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.