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 | other | false | false | ## Low: Insufficient coverage
### Description
**Description:**
The test coverage rate of the project is 97%. Testing all functions is best practice in terms of security criteria.
Due to its capacity, test coverage is expected to be 100%. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users Can Buy An NFT that They Cannot Receive
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `09aa45320d87df560c0a47848c0c24cdbcdeca34`. The client provided the following explanation: Add protocol warnings section and Making payments and Receiving NFTs as a Contract to README. This f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | false | false | ## Low: Lack of Configurability for Timeouts in Fast Bridge Service Severity: Quality Assurance
### Description
**Description:**
The Fast Bridge project has a lack of configurability for timeouts related to transactions. In the code snippet provided, there is a hardcoded timeout of 60 seconds, which may not be suffic... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `_liquidationFeeUsd` and `_fundingRateFactor` Initialization Checks
### Description
**Severity** : Low
**Status** : Resolved
**Description**
The initialize function in Vault.sol should include checks to ensure that `_liquidationFeeUsd` and `_fundingRateFactor` are less than or equal to their respective maxi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: L16] Confusing error message in the ERC777BeamToken contract
### Description
###### Low
In the `ERC777BeamToken` contract, the [error message in line 168](https://github.com/BeamNetwork/currency/blob/c0d8477866a8667a37f45c85378c5938c84569cd/contracts/currency/ERC777BeamToken.sol#L168) should be clarified to ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Code Improvements
### Description
**Update**
Addressed in: `80f46b0`. The following issues were fixed: 4.1, 4.2, 4.3, and 4.5. The other issues remain unresolved.
**File(s) affected:**`isolated_lending/sources/isolated_lending.move`, `isolated_lending/sources/farming.move`, `lending_core/sources/farming.move`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Possible duplication of data
### Description
If configurator calls function several times, then data duplication is possible:
https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/core/AccountFactory.sol#L301
### Recommendation
We recommend adding a 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 | cross-chain | false | false | ## Medium: TON Gateway transactions with a skipped compute phase will cause a panic
### Description
There are cases when a transaction for the Gateway will skip the compute phase. When this happens, [`exitCodeFromTx()`](https://github.com/sherlock-audit/2025-04-zetachain-cross-chain/blob/main/node/pkg/contracts/ton/ga... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong description in comments
### Description
**Description**
On lines 58, 61, 67 wrong values of unlock percentage. These values are different from values
in the whitepaper.
// 2: Strategic 10%, 10,000,000, 1 Days LOCK, 5 months @ rate of 25% per month
// 3: Pivate 10%, 10,000,000, 1 Days LOCK, 4 months @ ra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of event emission in critical state changes
### Description
Events emission is considered a good practice to debug situations where it is necessary to check the parameters used to call an entry point.
Events can also be used to create a monitoring system to check the platform integrity in real time (or a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | cross-chain | false | false | ## Medium: Items Can Be Bridged to Inactive Chain
### Description
**Update**
Marked as "Fixed" by the client. The check was added. Addressed in: `74496b665998e7cb3b9cb7101756e78cc1569d1a`.
**File(s) affected:**`RenovaItemBase.sol`, `WormholeBaseUpgradeable.sol`
**Description:** Users can bridge their items between c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | true | false | ## Low: [10] Owner can set `_multiSourceLoan` to `address(0)` directly without `updateMultiSourceLoanAddressFirst()`
### Description
The `_pendingMultiSourceLoanAddress` has default value is `address(0)`. As the result, owner could always call `finalUpdateMultiSourceLoanAddress()` to set the `_multiSourceLoan` to `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 | oracle | false | false | ## Medium: Lack of event emissions during important actions
### Description
There are several actions that perhaps should be emitting events but aren’t, such as: adding/removing wallet access, adding/removing price oracles, adding/removing exchanges, calling the [`doFireRegistryUpdateEvent` function](https://github.co... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: (Re-Audit) Gmx Fee Has Been Hardcoded
### Description
**Update**
The issue has been fixed by retrieving the appropriate values dynamically from the GMX contracts rather than hardcoding the values.
**File(s) affected:**`CreditAggregator.sol`
**Description:** The constants `TAX_BASIS_POINTS` and `MINT_BURN_FEE... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bad practice to have multiple initializers
### Description
**Description:** We found that the contract `SecuritizeSwap` has two functions named `initialize()`.
Both functions are public and behind the modifier `initializer` and `forceInitializeFromProxy` and the main initializer (assuming the test suite shows ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 info stored
### Description
**Description**
contracts/Vesting.sol#610, calculateGrantClaim()
In case if the user has claimed tokens at least once before the vesting end, the incorrect
number will be stored in case if the last claim will be performed after the vesting end. The
function calculateGranC... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Multiple functions aren't payable so quotes that require protocol fees won't work correctly
### Description
There are multiple functions that use quotes but that aren't payable. This breaks their compatibility with some quotes. As the [0x docs](https://docs.0x.org/0x-swap-api/guides/use-0x-api-liquidity-in-... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Non-determinism in ink! contract builds
### Description
The process of building ink! contracts using the cargo contract CLI is impacted by various factors that can alter the final product. These factors include the version of Rust, the enabled features, the cargo-contract version, the number of optimization pa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary Ownable inheritance
### Description
**Description**
Contract inherits Ownable contract, though there is no any function to use the abilities of the
Ownable contract.
**Recommendation**:
Remove Ownable inheritance | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Reward Distribution Mechanism in `submitCheckpoint` Function can be gamed
### Description
**Severity**: High
**Status**: Acknowledged
**Location**: SubnetActorManagerFacet.sol
**Description**
The current implementation of the `submitCheckpoint` function in the contract allows for potential gaming of the r... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Use named mapping parameters to explicitly denote the purpose of keys and values
### Description
**Description:** Use named mapping parameters to explicitly denote the purpose of keys and values:
**Securitize:** Fixed in commit [ef5367e](https://github.com/securitize-io/bc-on-off-ramp-sc/commit/ef5367e1db99c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | access-control | true | false | ## Low: Single `rewardToken` design is incompatible with multi-reward emission support
### Description
`BenqiEcosystemModule` assumes QI as the single immutable `rewardToken` always referenced directly within `_processGauge()`:
```solidity
function _processGauge(
IMultiRewardDistributor _distributor,
GaugeVo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redundant gnosis safe deployment in `factory::createERC20DAO`
### Description
In the `factory::createERC20DAO` function, there is a conditional check that determines whether a new Gnosis Safe should be deployed. Specifically, if the `_depositChainIds` array contains more than one element, the function override... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Maximum preclaim limit can be easily bypassed to preclaim entire token allocation
### Description
**Description:** The `AllocationVesting` contract allows token recipients to preclaim up to a maximum of their total token allocation, however this limit can easily by passed allowing recipients to preclaim 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 | token | true | false | ## Low: Execution of `LibLegacyTokenSilo:: balanceOfGrownStalkUpToStemsDeployment` can end earlier when `lastUpdate == stemStartSeason` | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | true | false | ## Medium: Potential asset loss during liquidation
### Description
**Severity**
**Impact:** Medium
**Likelihood:** Medium
**Description**
In the liquidation process of a `MarginAccount`, when repaying debts to `LiquidityPools` using the `_clearDebtsWithPools` function, `UniswapModule::swapInput#L291` is invoked to... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | token | true | false | ## Gas: `ERC20.sol#transferFrom()` Do not reduce approval on transferFrom if current allowance is type(uint256).max
### Description
_Note: suggested optimation, save a decent amount of gas without compromising readability._
The Wrapped Ether (WETH) ERC-20 contract has a gas optimization that does not update the allow... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bidders might fail to withdraw their unused funds after the auction was finalized because the contract doesn't have enough balance.
### Description
Bidders might fail to withdraw their unused funds after the auction was finalized because the contract doesn't have enough balance.
The main flaw is the seller m... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Purging DAO deployer immediately in a single-step is risky
### Description
## Handle
0xRajeev
## Vulnerability details
## Impact
The DAO deployer is used as the authorized address in the modifier onlyDAO allowing it to set various critical protocol addresses and parameters. The purgeDeployer() function 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 | other | false | false | ## Low: Unused local variable
### Description
**Description**
StakingData.sol, line 256.
Variable maxIteration is unused in the contract. Review the functionality or remove the
variable.
**Recommendation**:
Review the functionality or remove the variable. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | false | false | ## Medium: Lack of emergency administration
### Description
The `VotingV2` contract has several functions that are protected by the `onlyOwner` modifier:
* [`requestGovernanceAction`](https://github.com/UMAprotocol/protocol/blob/7938617bf79854811959eb605237edf6bdccbc90/packages/core/contracts/oracle/implementation/V... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | true | false | ## Low: Typographical error
### Description
There is a typographical error in the following comment:
```solidity
/// @dev The r value of secp256r1 signature
uint256 s;
```
### Recommendation
Change the comment to reflect the correct variable:
```solidity
/// @dev The r value of secp256r1 signature
uint256 r;
```
- ``... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Duplicated Investment Logic Can Be Moved to BaseRouter
### Description
Both `ERC4626Router` and `ERC7540Router` contain an identical section of logic in their `invest()` and `investInVaultAsync()` functions, respectively (lines 49-69 in both files). This logic checks various preconditions, subtracts the execut... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Contracts storage layout can get corrupted on upgradeable contracts
### Description
The Notional protocol uses a copy of some of the [OpenZeppelin/SDK upgradeable contracts](https://github.com/OpenZeppelin/openzeppelin-sdk/tree/v2.8.2/packages/lib/src) to manage upgrades in the system, which follows [the un... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Reentrancy | true | true |
Redeemers might charge more collaterals during redemption/swap by the reentrancy attack.
### Proof of Concept
Redeemers can redeem the agToken for collaterals in `Redeemer` contract and `_redeem()` burns the agToken and transfers the collaterals.
```solidity
function _redeem(
uint256 amount,
add... | Code4rena | 3 | Angle 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 | signature | false | false | ## Low: Unused Code
### Description
- **Instance 1:** The `DelegatedSigner` feature exists in the Etherna contract but has been removed in the LevelMinting contract. Thus, the `setDelegatedSigner` and `removeDelegatedSigner` functions can be removed since they are no longer necessary:
- LevelMinting.sol#L348
- Lev... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | other | false | false | ## Low: Use named return variables where this can eliminate local variables
### Description
Use named return variables where this can eliminate local variables:
* `BetFactory::createBet`
* `Bet::_status` | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 checks on the payed amount in `buyNFT` and `buyMultipleNFT` functions if `paymentToken` is `WETH`
### Description
The `buyNFT` and `buyMultipleNFT` functions currently lack checks to verify that `msg.value` matches the expected payment amount when the `paymentToken` is set to `WETH`. If users accide... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: With no fee consideration for burning operations the system is undercollateralized
### Description
The system assumes that every vault cannot have more Algo minted than its current balance. This assumption can be broken through the fees paid by the burning operations. When burning wAlgo:
- The second 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 | 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 | true | false | ## Gas: Unchecked math in `Base.refund()`
### Description
Since `amountExpected` is guaranteed to be greater than `amountActual` by the check in line 76, the subtraction `amountExpected - amountActual` can be done using unchecked math. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Malformed `op::get_fees_notification` Payload in `fee_manager` Breaks Fee Updates
### Description
**Update**
The team added the `query_id` to the `op::get_fees_notification` payload. The client mentioned that some contracts may need to retrieve the `admin_address` or a custom payload. Although these are opt... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Events
### Description
In the `StateTransitionManager`, the following functions change the storage of the contract but do not emit an event:
* [`setValidatorTimelock`](https://github.com/matter-labs/era-contracts/blob/d5c5d7a7c3a458f131e5de72c6c134a172e6763d/l1-contracts/contracts/state-transition/St... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: `StabilityPool` user functions panic revert if more than 256 collaterals are enabled
### Description
`StabilityPool` has a number of mappings where the value component is an array with length 256:
```solidity
mapping(address depositor => uint256[256] deposits) public depositSums;
mapping(address depositor => u... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | storage | true | false | ## Medium: Missing Validation for Matching Number of Storage Proofs and Commands ✓ Fixed
### Description
In the function `getStorageValues` of the `LineaProofHelper` library, if the number of storage proofs (`storageProofs`) returned by the gateway is less than number of commands (`commands.length`), there will be an ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | storage | true | false | ## Gas: Using bools for storage incurs overhead
### Description
Booleans are more expensive than uint256 or any type that takes up a full word because each write operation emits an extra SLOAD to first read the slot's contents, replace the bits taken up by the boolean, and then write back. This is the compiler's defen... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [6]
### Description
The check for system deployer address in `DefaultAccount._validateTransaction()` is not correct as it convert `DEPLOYER_SYSTEM_CONTRACT` to uint256 and compare it to the `_transaction.to`. If `_transaction.to` was equal to `2^180 + DEPLOYER_SYSTEM_CONTRACT` then the check would be bypassed ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Clickjacking
### Description
## Clickjacking Vulnerability
The bridge’s website resources may be embedded from any origin without restriction, allowing an attacker to embed sensitive resources using an iframe and superimpose deceptive content on top of them. As a result, users may be tricked into clicking 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 | high | oracle | false | false | ## High: Incorrect random source usage in the lottery
### Description
**Description**
Getting a random value from the Chainlink is used incorrectly. The requestRandom Words() request receives a requestld and then must wait for a response transaction from the coordinator. Only when the coordinator calls the fulfillRan... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: There is a risk that the `proxyFee` variable is accidentally initialized to 0 and platform loses money
### Description
With the `setProtocolFeeRatio()` in the ` Factory.sol ` and `Pool.sol` files, the initial rate of ` protocolFeeRatio ` is set with an argument of type uint16, but there is no check that preve... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Ownership status cannot be guaranteed to be up-to-date
### Description
The main purpose of the protocol is to allow contracts to read ownership of NFTs on other chains different from the native chain of the NFT. This could be used to give token owners access to airdrops, governance, rewards, or other benefits ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: State variables should be cached in stack variables rather than re-reading them from storage
### Description
The instances below point to the second+ access of a state variable within a function. Caching of a state variable replace each Gwarmaccess (**100 gas**) with a much cheaper stack read. Other less obvio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing access control
### Description
The [`approveNewLandTunnel` function](https://github.com/thesandboxgame/sandbox-smart-contracts/blob/8430ea5fdb0f4905b9678689ce0cbc2f74a704b6/src/solc_0.8/polygon/child/land/PolygonLandTunnelMigration.sol#L99) in the `PolygonLandTunnelMigration` contract sets approval for... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## Medium: `withdraw/redeem` does not calculate the assets received
### Description
`AutoCompoundingPodLp.withdraw/redeem` first calculates the `assets/shares` to be received or burned, then triggers `_withdraw` to burn the shares and transfer the calculated assets to the users. However, the calculated assets or burne... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | logic | false | false | ## Low: Routing and swap parameters must be determined off-chain.
### Description
**Severity**: Informational
**Status**: Acknowledged
**description**
AirPuffHandlerM._curveRouterSwapWithPaths()
The function uses already-set parameters to make swaps through the Curve protocol with
the router. All parameters are set... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | true | false | ## Low: Potential wrap of timestamp
### Description
In the `transform()` function, a revert could occur right after `timestamp32` has wrapped (e.g. when `timestamp > 2**32`).
```solidity
function transform(... , uint256 timestamp, ...) ... {
uint32 timestamp32 = uint32(timestamp % 2**32); // mod to fit in uint32
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unclaimed rewards in ExtraRewarder can be stolen if removed from MainRewarder
### Description
**Severity:** Medium
**Path:** rewarders/MainRewarder.sol:removeExtraRewards#L73-L81
**Description:**
The MainRewarder allows for the addition of ExtraRewarder contracts that can distribute extra rewards to user... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | true | false | ## Medium: User can loose funds in case if swapping in DecreaseOrderUtils.processOrder will fail
### Description
When user executes decrease order, then he provides `order.minOutputAmount` value, that should protect his from loses. This value is provided with hope that swapping that will take some fees will be execute... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: optOut can be called multiple times
### Description
Lenders are allowed to trigger an opt-out operation multiple times over the same loan, with unclear implications. When a lender wishes not to be a part of the next loan cycle, they can call the `optOut` function to signal their intent. This function will val... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | token | false | true |
[RewardDistributor.sol#L172-L210](https://github.com/code-423n4/2022-07-golom/blob/e5efa8f9d6dda92a90b8b2c4902320acf0c26816/contracts/rewards/RewardDistributor.sol#L172-L210)<br>
Rewards owed burned NFT are permanently locked.
### Proof of Concept
function _burn(uint256 _tokenId) internal {
require(_isA... | Code4rena | 5 | 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 | initialization | true | false | ## Low: _disableInitializers is missing in Bridge’s constructor
### Description
`disableinitializers` is not called in Starklane’s constructor
### Impact
An attacker can call `Bridge::initialize` and pass arbitrary arguments | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Simplification loop length Severity: Quality Assurance
### Description
**Description:**
The for-loop validation is always calculation currentPeriod + 1 and it can be simplified to i <= currentPeriod.
**Recommendations:**
Should change the for-loop to the following code: | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Anyone can transfer approved LP tokens
### Description
Anyone can call the `Pool.transferLPs` function and transfer previously approved LP tokens to the approved address.
### Impact
Lender's LP tokens may be transferred to an approve address at an inappropriate time, impacting the position management strat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Random depositor `amountDeposited` is not cleared
### Description
There is an issue inside the `receive` function defined at the [following line](https://github.com/MetaLex-Tech/LeXscrow/blob/94ca277528bb25b8421dc127941c18915144eb29/src/EthLexscrow.sol#L230). When `openOffer` is `false` and `msg.sender` 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 | medium | other | false | false | ## Medium: Batcher frames are incorrectly decoded leading to consensus split
### Description
There is an error in the implementation of how frames are decoded, which will allow invalid frames to be accepted. This can allow a malicious sequencer to cause a consensus split between op-node implementations and the (correc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: updateBalances Can Return Early
### Description
**Severity** - Informational
**Status** - Resolved
**Description**
In the updateBalances function we can return early in the first if branch i.e. if the if branch is executed then there is no need to execute the rest of the code because the interval would be 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 | liquidation | true | false | ## Low: Using the wrong value when calling `calcUpdatedCollateral()`
### Description
In function `_rebalanceAndRepayLiquidity()`, the code executes a rebalance and then calculates the updated collateral amounts by calling `calcUpdatedCollateral()`:
Because code increases `liquidity` by 1e4 when remaining liquidity i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Repository structure - Create a clean repository containing one Aragon Application unless changes are contributed upstream ✓ Deferred
### Description
The repository is a fork of [AragonBlack/fundraising](https://github.com/AragonBlack/fundraising). The main development repository for Aragon Fundraising is t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Reduce impact of emergencyUpdatequestPeriod()
### Description
The function `emergencyUpdatequestPeriod()` allows the merkle tree to be updated. The merkle tree contains an embedded index parameter which is used to prevent double claims. When the `merkleRoot` is updated, the layout of indexes in the merkle t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: CASE SENSITIVE CHECK ALLOWS ADDING THE SAME NEAR FUNGIBLE TOKEN MORE THAN ONCE
### Description
The `register_near_fungible_token()` function in \"appchain-anchor/src/assets/near\_fungible\_tokens.rs\" only checks if the symbol of the token passed to it already exists, however the check is case-sensitive, so... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | true | false | ## Medium: Wrong implementation of `TurboSafe.sol#less()` may cause boosted record value in TurboMaster bigger than actual lead to `BoostCapForVault` and `BoostCapForCollateral` to be permanently occupied
### Description
_Submitted by WatchPug, also found by cmichel and hyh_
[TurboSafe.sol#L225-L236](https://github.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: Code improvements
### Description
`exactMatch`: add a comment that this is an array of hashes.
https://github.com/MetaLex-Tech/borg-core/blob/9074503d37cfa1d777ef16f6c88b84c98b4f54eb/src/borgCore.sol#L64
### Recommendation
We recommend making improvements from the description. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Adding new variables to multi-level inherited upgradeable contracts may break storage layout
### Description
The Notional protocol uses the [OpenZeppelin/SDK](https://github.com/OpenZeppelin/openzeppelin-sdk/tree/v2.8.2) contracts to manage upgradeability in the system, which follows the [unstructured stora... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: When one of the plugins is broken or paused, `deposit()` or `withdraw()` of the whole Vault contract can malfunction
### Description
One malfunctioning plugin can result in the whole Vault contract malfunctioning.
### Impact
When Aave V2 Lending Pool is paused, users won't be able to deposit or withdraw fr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | token | true | true | **Description:** `TokenBridge::bridgeToken` is only intended to support `ERC20` tokens however it quite happily accepts `ERC721` tokens and is able to successfully bridge them over to the L2. But when users attempt to bridge back to the L1 this always reverts resulting in user nfts being permanently stuck inside the `T... | Cyfrin | 5 | Linea |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Add a timelock to critical functions
### Description
It is a good practice to give time for users to react and adjust to critical changes. A timelock provides more guarantees and reduces the level of trust required, thus decreasing risk for users. It also indicates that the project is legitimate (less risk 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 | overflow | false | false | ## Medium: Suboptimal arbitrage implementation
### Description
The `bestArbAmountIn` estimated in [\_bisectionSearch()](https://github.com/code-423n4/2024-01-salty/blob/53516c2cdfdfacb662cdea6417c52f23c94d5b5b/src/arbitrage/ArbitrageSearch.sol#L101-L136) can be calculated with a simple formula. Roughly estimating `bes... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | reentrancy | false | false | ## Low: MISSING REENTRANCY GUARD
### Description
During the audit, it was discovered that the `cancelOffer` function did not implement protections against reentrancy attacks. To protect against reentrancy attacks, it may be necessary to use a mutex. By using this lock, an attacker can no longer exploit the 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 | low | flash-loan | true | false | ## Low: NatSpec `@custom:reverts` inconsistencies
### Description
**Description:** Below are some inconsistencies in how the NatSpec `@custom:reverts` are formatted:
* [`CollateralMigrator::LBFlashLoanCallback`](https://github.com/woof-software/benqi-collateral-migrator/blob/d91ce3dbf56d3939d54520f6f41afeebbbfc069a/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 | true | false | ## Medium: `Govshuttle` module does not register its transaction `MsgServer`
### Description
The `x/govshuttle` module in `canto-main` defines and handles two messages that can be emitted by a governance proposal:
- [`MsgLendingMarketProposal`](https://github.com/code-423n4/2024-05-canto/blob/d1d51b2293d4689f467b8b1c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unreachable check
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
LiquidityManager.updateProjectOwner()
The modifier `_updateProjectOwnerModifier` will fail before the check for token against the
zero address (while getting balance of the token). Therefore, the check for z... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inequitable Multiplier Distribution in `calculateMultiplier()` Function
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> I disagree with this assessment. The multiplier will gradually increase up to the BASE_STAKE, and there are no dead zones.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Misleading comment in line 954, contract MMIRToken:
### Description
* @notice Delegate votes from `msg.sender` to `delegatee`
* @param delegator The address to get delegatee for
/*
function delegates(address delegator)
external
view
returns (address)
return _blackAndWhitePrice;
{
return _delegates[delegator];
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unpredictable behavior due to front running or general bad timing Pending
### Description
In a number of cases, administrators of contracts can update or upgrade things in the system without warning. This has the potential to violate a security goal of the system.
Specifically, privileged roles could use f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Validate strategy underlying.
### Description
**Description**
Line 35 in constructor. CToken’s underlying and strategy underlying should be verified in
order to be equal.
**Recommendation**:
Validate that CToken’s underlying is equal to strategy underlying. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | initialization | true | false | ## Gas: [25] `public` functions not called by the contract should be declared `external` instead
### Description
Contracts [are allowed](https://docs.soliditylang.org/en/latest/contracts.html#function-overriding) to override their parents' functions and change the visibility from `external` to `public` and can save ga... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | storage | true | false | ## Medium: Lack of upfront cost for long-term reservations allows fake reservations, blocking real users
### Description
The `setreservationforlongterm` function allows users to reserve long-term rentals without any upfront payment. Once a reservation is made, the reserved period is marked as unavailable, blocking oth... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [N‑01] Missing `initializer` modifier on constructor
### Description
OpenZeppelin [recommends](https://forum.openzeppelin.com/t/uupsupgradeable-vulnerability-post-mortem/15680/5) that the `initializer` modifier be applied to constructors in order to avoid potential griefs, [social engineering](https://forum.o... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: MAX_DEPOSIT can't be changed
### Description
MAX_DEPOSIT is set at a large value for testing purposes, but it can't be changed. Being able to change it might be helpful to limit the risk of the Nodes.
### Recommendation
Consider a way to change MAX_DEPOSIT, either via the constructor or via an authorized func... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Allow seller to change address or add a recipient address
### Description
The seller may want to receive the funds to a different address than the one used at Escrow creation.
### Impact
Low
### Recommendation
If buyer agrees, then allow seller to change address or add an extra recipient address. As an examp... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential for huge gas consumption in updateGlobalState and calculateRewards
### Description
Under certain conditions, the `updateGlobalState` and `calculateRewards` functions in the `L2Reward` contract can consume a substantial amount of gas.
First, the `calculateRewards` function calculates a user’s rewards... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Low: Auction Price Calculation Fails to Reach Reserve Price Due to Integer Division Truncation
### Description
The Auction contract's [getPrice()](https://github.com/Cyfrin/2025-02-raac/blob/main/contracts/zeno/Auction.sol#L69-L79) function uses integer arithmetic for its price calculation, which leads to truncatio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: weETH and wstETH Share Initial Point Allocation Even Though Underlying Worth in USD Differs
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `bb67b53b0f5940b3f5bc9b23caca9ff03a0f65f2`.
**File(s) affected:**`SophonFarming.sol`
**Description:** In the `SophonFarming.initialize()` 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 | high | access-control | true | false | ## High: Shareholders can stop admin from deauthorizing them
### Description
Shareholders can prevent the admin from deauthorizing them by front-running the `deauthorizeAccount` function in the `AuthorizationModule` contract. The `deauthorizeAccount` function reverts if the provided account has one or more pending tra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: 1] The approve top-up role can replay the same deposit/withdrawal request
### Description
**Severity:** High
**Path:** contracts/main/contracts/pool/UFarmPool.sol#L404-L415
contracts/main/contracts/pool/UFarmPool.sol#L451-L461
**Description:** The `UFarmPool::approveDeposits()` function allows the approve t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | front-running | false | false | ## Low: Attacker can steal interest
### Description
Attacker can steal interest by targeting correct ticks which have below prerequisites:
1. No pending redemption (to prevent attacker funds from getting stuck in redeem).
2. Current repayment interest is greater than all future repayment interest (this may be true for... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unit-tests fail due to changes.
### Description
**Description**
GaugeProxyBribeMiddleManTesting.js: before() hook.
GaugeProxyDistributeTesting.js: before() hook, it('Admin functions only, all tests to revert) test.
GaugeProxyBribeTesting.js: before() hook, it('Add a new Gauge for LP4') test.
Call to functi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Workflow permission setting calls are vulnerable to Front-Running attacks
### Description
Many of the scoped workflow contracts, such as `LicenseAttachmentWorkflows` , need to perform authenticated calls to different IPAccounts (EIP-6551 accounts). In order to implement the access control mechanism, signature... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: EOPBCTemplate - AppId of BalanceRedirectPresale should be different from AragonBlack/Presale namehash to avoid collisions ✓ Fixed
### Description
The template references the new presale contract with `apmNamehash` `0x5de9bbdeaf6584c220c7b7f1922383bcd8bbcd4b48832080afd9d5ebf9a04df5`. However, this namehash 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 | other | true | false | ## Low: Disallow single-outcome markets
### Description
**Description:** When creating a market in [`PredictionMarketV3_4::_createMarket`](https://github.com/Polkamarkets/polkamarkets-js/blob/24f1394be94d27433d2e3a7370442126e1c1e5ba/contracts/PredictionMarketV3_4.sol#L299-L356), the following [check](https://github.co... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.