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 | medium | other | false | false | ## Medium: Increasing the Lock Amount on an Expired Lock Will Cause Users to Miss Out on Rewards
### Description
_Submitted by leastwood_
[HolyPaladinToken.sol#L284-L294](https://github.com/code-423n4/2022-03-paladin/blob/main/contracts/HolyPaladinToken.sol#L284-L294)
[HolyPaladinToken.sol#L1137-L1233](https://github... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Index Event Parameters
### Description
To facilitate off-chain searching and filtering for specific events, consider indexing the `_issuer`, `_redeemer` and `_to` parameters of the [`SetTokenIssued` and `SetTokenRedeemed`](https://github.com/SetProtocol/set-protocol-v2/blob/b8286f431547823ff3935a1343cd4cf4d775... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | cross-chain | true | false | ## Gas: Avoid contract existence checks by using low level calls
### Description
Prior to 0.8.10 the compiler inserted extra code, including `EXTCODESIZE` (**100 gas**), to check for contract existence for external function calls. In more recent solidity versions, the compiler will not insert these checks if the exter... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: View functions are vulnerable to the read-only reentrancy
### Description
Some of the functions are vulnerable to the read-only reentrancy:
https://github.com/curvefi/stableswap-ng/blob/8c78731ed43c22e6bcdcb5d39b0a7d02f8cb0386/contracts/main/CurveStableSwapMetaNG.vy#L1357
https://github.com/curvefi/stableswap-... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unbounded protocol fee issue in `setProtocolFees()`
### Description
The `setProtocolFees` function in `AdminOperationalTreasury` allows the admin to set protocol fees without any maximum cap or constraints:
This introduces two vulnerabilities:
1. The admin can set the fee to 100% (or more), enabling the 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 | medium | other | true | false | ## Medium: The default gauge point function is not used even if selector of ss.gaugePointImplementation is 0
### Description
In `LibGauge::calcGaugePoints`, `IGaugePointFacet::defaultGaugePointFunction` is supposed to be used as the gauge point function to calculate the gauge points when no gauge point function is 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 | low | access-control | false | false | ## Low: Contract Ownership Can Be Renounced or Lost with `transferOwnership()`
### Description
**Update**
The team added the validation to block the transfer of the ownership to zero address in the commit `a20c6ca`. However, the risk of transferring to an address no one owns still exists. However, since that is a mino... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Validation | true | false | ## Vulnerability Report
## Severity: High Risk
### Context
- `Executor.sol#L142`
- `AssetLogic.sol#L127-L151`
- `BridgeFacet.sol#L644-L718`
### Description
When dealing with an external callee, the `BridgeFacet` will transfer liquidity to the `Executor` before calling `Executor.execute`.
In order to send the native... | Spearbit | 5 | Connext |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | reentrancy | true | false | ## High: Re-entrancy in `settleAuction` allow stealing all funds
### Description
_Submitted by cmichel_
Note that the `Basket` contract approved the `Auction` contract with all tokens and the `settleAuction` function allows the auction bonder to transfer all funds out of the basket to themselves.
The only limiting fa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Commented code exists in BMath
### Description
There are some instances of code being commented out in the `BMath.sol` that should be removed.
It seems that most of the commented code is related to exit fee, however this is in contrast to `BPool.sol` code base that still has the exit fee code flow, but uses 0 ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Malicious users could set allocations to a blacklist Protocol and break the rebalancing logic
### Description
`game.sol` pushes `deltaAllocations` to vaults by [pushAllocationsToVaults()](https://github.com/sherlock-audit/2023-01-derby/blob/main/derby-yield-optimiser/contracts/Game.sol#L465-L477) and it del... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Correctness of start and end block numbers
### Description
Brave has decided to [use block numbers](https://github.com/brave-intl/basic-attention-token-crowdsale/blob/17a5f8440a256a6dc5d8dd894b9615182c2901b2/contracts/BAToken.sol#L19-L20) instead of timestamps to determine the start and end of the crowdsale... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User may not be able to borrow even if they provide sufficient collaterals
### Description
User may not be able to borrow even if they provide sufficient collaterals.
### Impact
User cannot borrow tokens even if they provides sufficient collaterals.
### Recommendation
Enter market when user supplies.
```... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Malformed blob tx causes Nethermind validators to stop producing blocks
### Description
Missing length-equality enforcement combined with Fusaka V5 blob-serving handler’s unguarded indexing will stop block production for Nethermind validators after a single malformed EIP-4844 blob transactions which will trig... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: EOPBCTemplate - EtherTokenConstant is never used ✓ Fixed
### Description
The constant value `EtherTokenConstant.ETH` is never used.
**code/fundraising/templates/externally\_owned\_presale\_bonding\_curve/contracts/EOPBCTemplate.sol:L3**
```
import "@aragon/os/contracts/common/EtherTokenConstant.sol";
```
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | oracle | true | false | ## Gas: Array length validation is not necessary
### Description
**Description:** [`RiskOracle::publishBulkRiskParameterUpdates`](https://github.com/ChaosLabsInc/risk-oracle/blob/9449219174e3ee7da9a13a5db7fb566836fb4986/src/RiskOracle.sol#L117-L142) currently validates that the lengths of all input arrays are equal.
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Existing backdoor for owner/operator in the `approve` function
### Description
https://github.com/code-423n4/2024-08-superposition/blob/4528c9d2dbe1550d2660dac903a8246076044905/pkg/sol/OwnershipNFTs.sol#L160-L163
### Impact
The approve function allows operator and owner to approve themselves to spend the tok... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Attacker Can Take Ownership of Implementation Contract
### Description
**Update**
The Blex team fixed the issue by implementing the recommendation in commits [a48f1a4](https://github.com/blex-dex/contracts/commit/a48f1a4), [c7f82a4](https://github.com/blex-dex/contracts/commit/c7f82a489f439059c786bd71148604336... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Cross-chain blocked recipients aren't properly handled
### Description
**Description:** The `MToken` contract implements a blocking mechanism to prevent certain addresses from interacting with the token. However, the cross-chain functionality doesn't properly handle blocked addresses.
There are two key issues... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: MarginTradingHook#updateOrder lacks access control
### Description
The `MarginTradingHook#updateOrder` function allows users to update their orders, it checks that the requested order is active order (L513) and that the function caller has opened position (L515). However, this function fails to check that 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 | other | false | false | ## Low: Useless modifier.
### Description
**Description**
Line 532, _hasAllowance modifier.
There is no need to check the contract's allowance, since safeTransfer always reverts in case
allowance is not enough.
**Recommendation**:
Remove modifier. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inefficient Storage and Iteration Over MetaVesT Sets
### Description
In the current implementation of MetaVesT sets, [it's required to iterate over all MetaVests](https://github.com/MetaLex-Tech/MetaVesT/blob/b614405e60bce8b852e46d06c03fd47b04d86dde/src/MetaVesTController.sol#L675-L680) during each `consent... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Contract not pausable
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
The `DiamondInit.sol` smart contract is `PausableUpgradeable` but it does not implement any pause/unpause functions. The `_pause()` and `_unpause()` functions from `PausableUpgradeable` are internal funct... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Out-of-bounds memory access in Quote
### Description
A `Quote` is a wrapper around a vector of bytes (figure 6.1). The size of the vector could be smaller than expected by certain functions that operate on the vector, resulting in an out-of-bounds memory access.
We observed an out-of-bounds access in version ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Function can be reverted for publicly mintable SPG NFTs
### Description
The vault admin, through the registry, is able to fractionalize any SPG NFT, register it as an Intellectual Property (IP), attach terms and collect the maximum royalties, which are later distributed. This fractionalized NFT is exactly 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... | cyfrin_structured | low | reentrancy | true | false | ## Low: Reentrancy via `stagedFungible` not cleared before external call
### Description
In [`Licredity::exchangeFungible`](https://github.com/Licredity/licredity-v1-core/blob/e8ae10a7d9f27529e39ca277bf56cef01a807817/src/Licredity.sol#L217-L222), the transient `stagedFungible` flag is cleared only after the external 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 | other | false | false | ## Low: `withdrawUSDC` Can Cause Unexpected Losses
### Description
**Severity**: Low
**Status**: Resolved
**Description**
As rUSTP is an interest bearing token, the price should positively reflect over time. As the value goes up, it will be worth more than $1. If a user calls `withdrawUSDC()`, they can have leftove... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Centralization risks in PendleVoteManager
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
The excessive authority granted to the admin poses a vulnerability in the contracts. The central issue is that the admin has unrestricted access to critical functions such as setRemoteDele... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: In `CreditLine#_borrowTokensToLiquidate`, oracle is used wrong way
### Description
_Submitted by 0x0x0x_
Current implementation to get the price is as follows:
`(uint256 _ratioOfPrices, uint256 _decimals) = IPriceOracle(priceOracle).getLatestPrice(_borrowAsset, _collateralAsset);`
But it should not consul... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Update comment
### Description
Update the comment as the relevant code ensures that `userOp.sender == msg.sender`. `account` is used as an alias for `userOp.sender` in the code.
### Recommendation
Apply this diff:
```diff
- // ensure that userOp.sender == account
+ // ensure that userOp.sender == msg.sender
`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | upgrade | true | false | ## Low: Storage collision risk in UUPS upgradeable `StakingProxy` due to missing storage gap
### Description
`StakingProxy` contract inherits from `UUPSUpgradeable` and `OwnableUpgradeable` but does not implement storage gaps to protect against storage collisions during upgrades.
`StakingProxy` is intended to be used... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | true | false | ## Medium: Mint decimal manipulation
### Description
The `ld2sd_rate` (local-to-shared decimal rate) can be manipulated by the initializer through the exploitation of the `MintCloseAuthority` extension in the Solana program. This manipulation is possible because the initializer has control over the mint’s decimal valu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redeem functions and `retryRevert()` in `StargateLbpHelper` are unnecessary
### Description
There are redeem functions in `StargateLbpHelper` to remove liquidity from stargate but there are no function to add liquidity, making them unnecessary.
Also, `retryRevert()` is not required as anyone can directly 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 | front-running | false | false | ## High: Unchecked Block Gas Limit
### Description
## Cosmos-SDK Configuration for Block Size and Gas Limit
The Cosmos-sdk allows chains to configure both the maximum block size and gas limit. The current implementation only checks the total block size against the maximum block size and does not validate gas limits.
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | true | ## Low: User-controlled return data can trigger an out-of-gas error
### Description
When an external call fails, `_revertWithReasonIfOneIsReturned` copies the return data into memory. However, there is no limit on the size of the return data it copies. An attacker could exploit this to force `_revertWithReasonIfOneIsR... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `claimSpilloverReward` is called without a state update
### Description
`claimSpilloverReward` is called without a state update, which can leave some unclaimed amount on the zero address: https://github.com/euler-xyz/reward-streams/blob/95783173eff4668bb177eeefd9e8a9dc1a44669c/src/BaseRewardStreams.sol#L257. F... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | false | false | ## Medium: Including non-standard ERC20 tokens will revert and prevent forking/quitting
### Description
`Iferc20TokensToIncludeInFork` or `erc20TokensToIncludeInQuit` accidentally or maliciously include non-confirming ERC20 tokens, such as USDT, which do not return a boolean value on transfers. Consequently, `sendProR... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Exposure of Sensitive Information
### Description
**Severity**: Low
**Status** : Resolved
**Description**:
In Interceptor the Logger.js having access key ID and secret access key are accessed directly from the configuration, potentially exposing sensitive AWS credentials. Mnemonics, certificates, and sec... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: POSSIBLE MISUSE OF PUBLIC FUNCTIONS
### Description
In the following contracts there are functions marked as `public` but they are never directly called within the same contract or in any of their descendants:
`GovernanceTokenV2.sol`
* `newTimeLock()` (GovernanceTokenV2.sol#70-85)
* `balanceUnlocked()` (Gove... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Race condition may preempt an Ethereum address to email association
### Description
A race condition in `ProofOfEmail` may allow an attacker to preempt an Ethereum-address-to-email association. `ProofOfEmail` associates a user Ethereum address with an email. When the user requests email verification, the se... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | false | true | ## Lines of code
https://github.com/code-423n4/2022-02-foundation/blob/main/contracts/mixins/NFTMarketCreators.sol#L49-L251
## Vulnerability details
## Impact
The `_getCreatorPaymentInfo()` function is utilised by `_distributeFunds()` whenever an NFT sale is made. The function uses `try` and `catch` statements to ... | Code4rena | 5 | Foundation |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Possibility Of Signature Reuse
### Description
## Risk of Cryptographic Signature Reuse in Placing Stop Orders Within Clearing House
There is a risk of cryptographic signature reuse in placing stop orders within Clearing House. Cryptographic signatures rely on a blend of order-specific details and a distinct ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Gaps should be reserved for FeeVault
### Description
There are no gaps reserved in the `FeeVault` abstract contract. The `BaseFeeVault`, `L1FeeVault`, and `SequencerFeeVault` that inherit from `FeeVault` do not have their own state variables yet, making it possible to reserve gaps in `FeeVault` at this time.
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incentive Pool can be drained without rebalancing the pool
### Description
_Submitted by kyliek, also found by Ruhum and WatchPug_
[LiquidityPool.sol#L149-L173](https://github.com/code-423n4/2022-03-biconomy/blob/04751283f85c9fc94fb644ff2b489ec339cd9ffc/contracts/hyphen/LiquidityPool.sol#L149-L173)
[Liquid... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Incomplete parameters in emitted events
### Description
Some events in the codebase do not show all relevant parameters when being emitted. *Some examples* are:
* The [`UpdateRateFactors`](https://github.com/notional-finance/contracts/blob/3d5929e3d212212cfe60ffcb35188069abc8b0b8/contracts/CashMarket.sol#L16... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Reentrancy to UnicrowClaim can claim twice
### Description
**Description:**
In function `refund()`,it set `claimed = 1`after withdrawing to buyer. If currency is native token or ERC777 with hook,buyer can take control of the execution flow and call `UnicrowClaim.singleClaim()`function. Since `claimed`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 | gas | other | true | false | ## Gas: Unnecessary variables in `Diamond.sol`
### Description
**Function `diamondCut`:**
Variables `facet` and `isFacetFreezable` are used only once, which means they don't need to be declared at all. The code snippet below can be changed from:
[File: ethereum/contracts/zksync/libraries/Diamond.sol](https://github.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | high | other | true | false | ## High: Hardcoded cluster size in `withdrawValidator` can cause losses to operators or protocol for strategies with larger cluster sizes
### Description
`CasimirManager::withdrawValidator` calculates the owed balance on withdrawal, ie. shortfall from the initial 32 ether. It then tries to recover the owed amount from... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fee-On-TransferTokens Are Not Supported
### Description
Certain tokens are not supported in `WrappedERC20Asset.sol`, for example, fee-on-transfer tokens, since the `deposit()` function does not check balance before and after the transfer to ensure the amount received is not reduced.
### Recommendation
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 | low | cross-chain | true | false | ## Low: `RewardsDeposit` and `Deposit` events can be spam emitted with 0 value deposits through external function `handleRewardsAndGetValueSent()`
### Description
The `handleRewardsAndGetValueSent()` function is called from the PhiNFT1155.sol contracts deployed. This function currently is externally exposed which mean... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unbounded walkTree Due to Underflow
### Description
In the `ZkTrieVerifier` library, the [`walkTree` function](https://github.com/scroll-tech/scroll/blob/c68f4283b15e9816427caedf372ed2daac7f2e66/contracts/src/libraries/verifier/ZkTrieVerifier.sol#L77) calculates the [nodes as the length passed with the proofs,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | other | true | true | ## Low: Fungible array can contain zero-balance entries
### Description
The `addFungible` function allows adding fungibles with zero amounts, while `removeFungible` correctly removes fungibles when balance reaches zero. This creates an inconsistency where the fungibles array can legitimately contain entries with zero ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | overflow | true | false | ## Medium: External calls can overflow return data to return input buffer
### Description
When calls to external contracts are made, we write the calldata starting at byte 28, and allocate the return buffer to start at byte 0 (overlapping with the calldata). When checking `RETURNDATASIZE` for dynamic types, the size i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Delete comment
### Description
This comment seems to be a relic of some old code and is not relevant anymore.
### Recommendation
Delete the comment. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unused Parameter in claimProtection Function
### Description
The `externalBeneficiary` parameter in the `claimProtection` function of `UserBase` contract is unused and does not impact the function's logic. This parameter can be safely removed without affecting functionality, as it is disregarded when claims ar... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Risk of server-side request forgery attacks
### Description
The price-feeder sends HTTP requests to configured providers’ APIs. If any of the HTTP responses is a redirect response (e.g., one with HTTP response code 301), the module will automatically issue a new request to the address provided in the respon... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | token | true | true | ## Low: `TroveManager::redeemCollateral` can return less collateral tokens than expected due to rounding down to zero precision loss
### Description
When a user calls `TroveManager::redeemCollateral` with a large enough debt amount such that the:
* first trove is completely exhausted and closed
* remaining debt 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 | true | false | ## Medium: Penalty rate is used for pre-maturity date as well
### Description
_Submitted by 0xA5DF, also found by 0x52 and rbserver_
When `_addInterest()` is called post maturity, the penalty rate is applied since the last time `_addInterest()` was called, including the period before maturity.
### Impact
Borrowers ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: New pool can be temporarily blocked
### Description
**Severity**
**Impact:** High
**Likelihood:** Low
**Description**
The newly deployed Ion pool can be DoSed by supplying and borrowing a dust amount of underlying. When `accrueInterest` is called the Ion pool requests a `borrowRate` value from the `Inte... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `ForgottenRunesWarriorsGuild.forwardERC20s()` and `ForgottenRunesWarriorsMinter.forwardERC20s()`: Unnecessary require statements
### Description
Here, as the `onlyOwner` modifier is applied, the `address(0)` checks are not needed here:
I suggest removing these checks. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Ambiguity In Fee Setter
### Description
## Custom Fee Configuration in TTUFeeCollector
Setting a custom fee to zero in `TTUFeeCollector` is not viable, as the value zero is used as an indicator of an uninitialized user rather than an indication of a zero fee. Additionally, the current setter and getter design... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 error `IBet::InvalidAmount`
### Description
**Description:** The custom error `InvalidAmount` is declared in `IBet` but never used anywhere in the implementation. Consider removing it or using it in the amount check it's intended to validate.
**WannaBet:** Fixed in commit [6bddf7f](https://github.com/g... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Possible front running of `flag()`
### Description
**Severity:** Medium
**Description:** The `target` might call `unstake()/forceUnstake()` before a flagger calls `flag()` to avoid a possible fund loss. Also, there would be no slash during the unstaking for `target` when it meets the `penaltyPeriodSeconds`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Delayed Commit Of IterSet Tracker
### Description
## Store Module Commit Delay
In the store module, the commitment of the `IterateSet` may be delayed when invoking `trackedIterator`. This iterator keeps an internal `iterSet` to monitor the keys iterated during the process. While the `iterSet` gets updated dur... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | false | false | ## Low: No upper limit validation on user-supplied values
### Description
The `decayStopTimestamp` and `priceDecayPerDay` properties of `DropData` in `DropEngineV2` do not have an upper limit validation. If too big values are set (due to an error for example) this can DoS the minting process. Add sensible upper limits... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Counting Dynamic Field Access
### Description
## Field Requests Counter
The `field_requests_counter` is a variable that stores the number of accesses to a dynamic field. The following are codes of incorrect counting:
1. `set::front` does not read a value from the dynamic field.
2. In the while loop... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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-07-golom/blob/7bbb55fca61e6bae29e57133c1e45806cbb17aa4/contracts/governance/GolomToken.sol#L58-L72><br>
<https://github.com/code-423n4/2022-07-golom/blob/7bbb55fca61e6bae29e57133c1e45806cbb17aa4/contracts/core/GolomTrader.sol#L444-L457><br>
<https://github.com/code-423n4/2022-07-g... | Code4rena | 4 | Golom |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Conflicting values of
### Description
[L-01] Conflicting values of BASE_DIVISOR
Line References
https://github.com/code-423n4/2022-03-biconomy/blob/main/contracts/hyphen/LiquidityPool.sol#L20
https://github.com/code-423n4/2022-03-biconomy/blob/main/contracts/hyphen/LiquidityProviders.sol#L27
Description
BASE_D... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: trancheDurationMax can be less than trancheDurationMin
### Description
**Severity**: Low
**Status**: Resolved
**Description**:
Although the functions to set the maximum and minimum tranche duration have onlyRole(GOVERNANCE) function modifier, decreasing the possibility of having trancheDurationMax < tranc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## High: Edge case in business logic lead to stolen nft
### Description
**Severity**: High
**Status**: Resolved
**Description**
In contract PaymentProcessor.sol, in function _executeMatchOrderSale, when the sale is paid in ether ( paymentCoin is address(0) ), the contract logic is checking that the offer is accep... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Using Storage Instead of Memory for structs/arrays Saves Gas
### Description
When fetching data from a storage location, assigning the data to a memory variable causes all fields of the struct / array to be read from storage. This incurs a Gcoldsload (2100 gas) for each field of the struct / array. If the fiel... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | false | false | ## High: Liquidity staked at ticks can be manipulated to impact swap fees and rewards
### Description
When removing all staked liquidity from a position via `CLGauge.decreaseStakedLiquidity()`, the amounts of staked liquidity at the ticks of the position are recorded incorrectly. Due to the clearing of the ticks, the ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: [02] Duplicate import statement for `Math.sol`
### Description
In `AgentInference.sol`, the `@openzeppelin/contracts/utils/math/Math.sol` library is imported twice at the top of the file. This duplication is unnecessary and could lead to confusion for maintainers or reviewers. While it does not directly impact... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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‑07] Missing event and or timelock for critical parameter change
### Description
Events help non-contract tools to track changes, and events prevent users from being surprised by changes
*There are 3 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 | access-control | true | false | ## Low: Insufficient Validation of Claim Start Block
### Description
The constructor of the Pepper contract allows setting the `claimStartBlock` without proper validation. Currently, there's no check to ensure that the provided `_claimStartBlock` is either set to the current block number or a future block number.
```... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `StakedCitadel._depositForWithAuthorization()`: `guestList` should get cached
### Description
See `@audit` tags: | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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] Adjust incorrect parameter naming issue in `set_emitter`
### Description
### Finding description and impact
`set_emitter` allows setting emitter, but the parameter name is set as `pool_factory_id`. This works because both parameters are addresses, but in other cases could cause a parameter mismatch 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 | medium | token | false | false | ## Medium: Constructor Parameter Validation
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
In contract GenericERC20Token.sol, is highly recommended to perform a sanity check when setting the UniV2SwapRouter and UniV2Factory in this contract's constructor.
**Recommendation**:
Ensure tha... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 or Weak Constraints Regarding Email Address Sequence
### Description
I. The maximum length of an email address is defined as a constant in `lib.nr`
**lib/src/lib.nr:L21**
```
global MAX_EMAIL_ADDRESS_LENGTH: u32 = 320;
```
and the functions `get_email_address` as well as `parse_email_address` in... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | front-running | true | false | ## Low: Front-running vulnerability in reward distribution
### Description
The `updateRewards` function in both `DepositETH` and `DepositUSD` contracts distributes rewards by updating the global share price, making it vulnerable to front-running attacks. This can be exploited through the following sequence:
- An atta... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: In edge cases, `create_pool` can either be reverted or allow user underpay fees
### Description
[/contracts/pool-manager/src/helpers.rs# L563-L564](https://github.com/code-423n4/2024-11-mantra-dex/blob/26714ea59dab7ecfafca9db1138d60adcf513588/contracts/pool-manager/src/helpers.rs# L563-L564)
### Finding de... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | token | true | false | ## High: backdoor in withdrawRedundant
### Description
## Handle
cmichel
## Vulnerability details
The `Vault.withdrawRedundant` has wrong logic that allows the admins to steal the underlying vault token.
#### POC
- Vault deposits increase as `Vault.addValue` is called and the `balance` increases by `_amount` as ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Optimisations
### Description
Some areas of the protocol could be altered to save gas:
- Line [51] of `Guardians.sol` uses a storage variable’s length in a loop; this should be cached in a local variable to prevent storage being accessed on every loop.
- Store `_approvals[version][hash]` in memory rather than... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potentially Unnecessary Usage of _toString() ✓ Fixed
### Description
The contract uses the `_toString()` function to convert `block.timestamp` into a `string`, which is then concatenated with a message string for event emission:
**contracts/USDiCoin.sol:L507-L509**
```
string memory baseReason = bytes(reason... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Canceled vote still get voted on and accumulate voting power in Goverance.sol
### Description
In `governance.sol` vote handling after proposal cancellation. When a proposal is cancelled, the system still allows voting to occur and counts these votes, which should not be possible. This creates an inconsistent ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Only standard ERC20 tokens supported
### Description
The staking reward contracts are generic and in theory allow any token to be the staking or reward token. However, the transfers in `VestedRewardsDistribution.distribute` and accounting in `StakingRewards` can fail when using non-standard tokens, like fee-on... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Incorrect percentage conversion
### Description
0.2 ether should be 20%, not 2%. [Other](https://github.com/code-423n4/2022-12-gogopool/blob/aec9928d8bdce8a5a4efe45f54c39d4fc7313731/contracts/contract/ProtocolDAO.sol#L44) areas use 0.X as X0%.
*There is 1 instance of this issue:*
https://github.com/code-423... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `abi.encodePacked()` should not be used with dynamic types when passing the result to a hash function such as `keccak256()`
### Description
Use `abi.encode()` instead which will pad items to 32 bytes, which will [prevent hash collisions](https://docs.soliditylang.org/en/v0.8.13/abi-spec.html#non-standard-packe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Proposals supported only by a small fraction of the community can be passed using the Approval Module
### Description
When a new proposal is created through `OptimismGovernorV5.sol`, there are two options for the proposer:
1. `propose()`: This uses the usual `governor` proposal process, which requires quorum... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | false | false | ## Low: Malicious routers can temporarily DOS the bridge by depositing a large amount of liquidity
### Description
Both router and bridge share the same liquidity cap on the Connext bridge. Assume that the liquidity cap for USDC is 1 million on Ethereum. Shortly after the Connext Amarok launch, a router adds 1 million... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | rounding | true | false | ## High: `ETHOracle.getLatestPrice` needs to convert to 18 decimals
### Description
In `ETHOracle.sol`, `getPrecision()` is defined as `10 ** 18`, but the actual oracle used is 8-decimals.
This data feeds' decimals is 8.
`PythOracle` is used to get prices for other tokens, also `getPrecision() == 18`.
Since a di... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | rounding | true | false | ## High: TribalChief - A wrong user.rewardDebt value is calculated during the withdrawFromDeposit function call
### Description
When withdrawing a single deposit, the reward debt is updated:
**contracts/staking/TribalChief.sol:L468-L474**
```
uint128 virtualAmountDelta = uint128( ( amount * poolDeposit.multiplier... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | true | false | ## Medium: AMM Cannot Be `initialize()` Except By Governance
### Description
_Submitted by kirk-baird_
The contact `AMM.sol` cannot be initialize unless it is called from the `_governance` address.
This prevents the use of a deployer account and requires the governance to be able to deploy proxy contracts and encod... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Attackers may skip the collateral ratio recovery duration to inflate collateralization ratios and steal funds
### Description
Under certain market conditions, attackers can bypass the collateralization ratio update system to instantly send the collateralization ratio from zero to maximum.
The collateraliza... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `createKey` and `changeKey` fail to check user key ownership conflicts
### Description
Each key must be unique to a user. However, the `createKey` and `changeKey` functions do not check whether the provided key is already assigned to another user. This could result in a key being overwritten or mistakenly reas... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: msgSender() or _msgSender()
### Description
## Handle
gpersoon
## Vulnerability details
## Impact
The code has two implementations of msgSender:
- msgSender() => uses meta transaction signer
- _msgSender() => maps to msg.sender
_msgSender() is used in a few locations
- when using _setupRole, this seems... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | rounding | true | false | ## High: An attacker can manipulate the preDepositvePrice to steal from other users
### Description
### Impact
The first user that stakes can manipulate the total supply of sfTokens and by doing so create a rounding error for each subsequent user. In the worst case, an attacker can steal all the funds of the next 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 | medium | front-running | false | false | ## Medium: Possible frontrun on deposits on LiquidityPool
### Description
## Lines of code
https://github.com/code-423n4/2022-03-biconomy/blob/main/contracts/hyphen/LiquidityPool.sol#L255
https://github.com/code-423n4/2022-03-biconomy/blob/main/contracts/hyphen/LiquidityPool.sol#L175-L188
## 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 | high | other | false | false | ## High: Loss of Rewards When `LiquidityGauge.totalSupply=0`
### Description
The vulnerability lies in **`LiquidityGauge._checkpoint()`**:
```python
### Recommendation
We recommend checking `totalSupply() > 0` before `unsafe_div`, or providing an admin-only claim function to recover unaccounted rewards if needed.
-... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Lack of proper event emission at resolveDispute function.
### Description
The resolveDispute function in the contract does not include all of the relevant information in the Resolved event.
### Impact
The lack of emission of critical parameters in the event could affect users with the front-end, as not all da... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.