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 | front-running | true | false | ## Low: Attacker Can Make User's `createVault()` Call Fail Leading to a Bad User Experience
### Description
In the contract `VaultFactory.sol`, the function `createVault()` is vulnerable to frontrunning, due to missing `msg.sender` parameter.
```solidity
vault = new Vault{ salt: salt }(
baseAsset, feeRecipient, 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 | other | false | false | ## Low: Use a storage constant.
### Description
**Description**
Lines 201, 234, 277, 403, 425, 585, 604. Value ‘10000’ is used across these lines directly and
should be moved to storage constant.
**Recommendation**:
Move value ’10000’ to storage constant and use it instead. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | front-running | false | false | ## Low: buyoutLien is prone to race conditions
### Description
`LienToken.buyoutLien` and `VaultImplementation.buyoutLien` are both prone to race conditions where multiple vaults can try to front-run each other's `buyoutLien` call to end up registering their own lien. Also note, due to the storage values `s.minInteres... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Missing Constraint
### Description
## Claim Constraints
In Claim, there is a `has_one` constraint for the `rewards_token_mint` field in the `staking_params` account. This constraint ensures a one-to-one relationship between the `staking_params` account and the associated `rewards_token_mint`. However, Withdra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: transferShares triggered for same address sender/recipient
### Description
**Severity**: Informational
**Status**: Acknowledged
**Description**
In rUSTP.sol - Function transferShares() is triggered even when recipient is the sender of shares. This takes place since function _transferShares(address _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... | skyward_49k | low | other | true | false | ## Low: Fake Vesting events generation using inexistent `stepVesting` addresses
### Description
Fake Vesting events could be generated in `SecondSwap_VestingDeployer::createVesting()` and `SecondSwap_VestingDeployer::createVestings()` as there is no check of the `stepVesting` address is actually a real deployed one.
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | cross-chain | true | false | ## High: Incorrect LEND reward distribution for cross-chain borrows
### Description
The `distributeBorrowerLend()` function incorrectly uses `borrowWithInterest()` to determine the borrow amount for distributing LEND rewards. However, `borrowWithInterest()` returns the sum of all cross-chain borrows of a token that or... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Dao.sol: Insufficient validation for proposal creation
### Description
## Handle
hickuphh3
## Vulnerability details
### Impact
In general, creating invalid proposals is easy due to the lack of validation in the `new*Proposal()` functions.
- The `typeStr` is not validated at all. For example, one can 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 | signature | false | false | ## Low: Signed messages may not be cancelled
### Description
Creating, approving, and disapproving actions may all be done by signing a message and having another account call the relevant *BySig function. Currently, there is no way for a signed message to be revoked without a successful *BySig function call containin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | true | false | ## High: An attacker can steal jettons from a user’s lp_account contract
### Description
An attacker can send a message with the `cross_provide_lp` operation in the custom payload to steal jettons from a user’s `lp_account` contract. The STON.fi protocol allows users to provide liquidity to a pool by transferring jett... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Incorrect Removal From `allSnapshotters` Mapping in `SnapshotterState._disableNode()`
### Description
**File(s) affected:**`SnapshotterState.sol`
**Description:** Within the `_disableNode()` function, when a node is burned the `snapshotterAddress` that is linked to it is removed from the `allSnapsho... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: AuctionParticipant.sol: setReplenishingIndex mistake could freeze unclaimed tokens
### Description
## Handle
harleythedog
## Vulnerability details
## Impact
In AuctionParticipant.sol, the function `setReplenishingIndex` is an admin function that allows manually setting `replenishingIndex`. As I have sho... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing state variables visibility modifiers
### Description
In the `GorplesCoin` contract, some of the state variables declared are not explicitly declared with any visibility modifiers. In Solidity, the compiler will assume any state variable declared in the contract as `internal` by default. However, it 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 | cross-chain | true | false | ## Medium: griefing/theft is possible on unsafe external call
### Description
**Proof of Concept**
This comment `// TODO: send relayer fees here` in the `unlockFor` method and its design show that it is possible that `unlockFor` is usually called by relayers. This opens up a new attack-vector in the contract and it 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... | solodit_api | medium | Migration Loss | true | true |
`PirexGmx#migrateReward()` may cause users to lose Reward before PirexRewards.sol set new PirexGmx.
### Proof of Concept
The current migration process is: `call # completemigration ()-> # migrateward ()`
After this method, the producer of PirexRewards.sol contract is still the old PirexGmx.
At this time, if `AutoP... | Code4rena | 5 | Redacted Cartel |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `checkTransferRestriction` check can be removed because the tranche token `transferFrom` function do this check before transfer the tokens
### Description
https://github.com/code-423n4/2023-09-centrifuge/blob/512e7a71ebd9ae76384f837204216f26380c9f91/src/InvestmentManager.sol#L473
https://github.com/code-423n4/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 definition of IAttestationIndexer may cause supportsInterface to return false data
### Description
The `IAttestationIndexer` interface currently includes only the `index` function and omits several external and public functions that are integral components of the `AttestationIndexer` contract. Given 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 | liquidation | true | false | ## Low: The system protects from any rounding issues when accounting the surplus in NM, but this protection isn't made in RM as a result liquidated position with ICR < MCR can issue surplus to the cdp owner.
### Description
Report type: Smart Contract
Target: https://github.com/ebtc-protocol/ebtc/blob/release-0.7/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: Insufficient sanity check for add_to_whitelist
### Description
**Severity**: Low
**Status**: Resolved
**Description**
In contract token_vesting.move, in function `add_to_whitelist` there are no sanity checks for the whitelist_address and whitelist_amount vectors, there is one check that is making sure the 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 | other | true | false | ## Low: Streams can be started with an end time in the past
### Description
When a new stream is created, there are no checks on the `startTime` or `endTime` parameters relative to the current time. All checks are only relative to each other. This opens up a dangerous avenue for user error, where incorrectly entering ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Documentation errors
### Description
There is one instance of irrelevant natspec:
- **recoverERC20()**: "Added to support recovering LP Rewards from other systems such as BAL to be distributed to holders" ⇒ irrelevant comment.
### Recommendation
Consider removing this line. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | false | false | ## Low: Potential Storage Collisions
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> We'll warn people that it won't be possible to upgrade existing contracts to a new version.
**File(s) affected:**`TokenBridge.sol`, `TokenBridgeWithSnapshotWithdraw... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unrestricted Reward Enabling
### Description
The `setEnableRewards` function allows the owner to enable or disable rewards without any checks. If rewards are enabled when they should not be, this could lead to issues.
```
/**
* @dev by setting rewardsEnabled to true the strategy will be able to handle rdnt ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: UNUSED IMPORT FILES
### Description
The linked import statements include a contract or library which is not used in the file that imported such files.
Code Location
-------------
[System.sol#L3](https://github.com/coredao-org/core-genesis-contract/blob/audit-halborn/contracts/System.sol#L3)
```
import "./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: Unnecessary Deposit and Withdraw Instructions
### Description
## Honey
Honey is a fork of Jet v1, which supports both the Deposit and DepositTokens instructions for backward compatibility. In reality, only one instruction is necessary; the same applies for the Withdraw and WithdrawTokens instructions.
## Rem... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: | Function Visibility Modifiers
### Description
**Description**
The functions `setRoyaltyAddress`, `updateSpiritRouter`, `updatePaintRouter`, `publicMint`, `setMintFees`, `enableMinting`, `disableMinting`, `setBaseURI`, `setTeamMinting`, `setMintSize`, and `sweepEthToAddress` are marked as public, but are nev... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Dangerous strict equalities (AdaswapPair.sol #43-46).
### Description
**Description**
Use of strict equalities that can be easily manipulated by an attacker.
Location:
- ./core/contracts/AdaswapPair.sol #43-46
**Recommendation**
Review and refactor strict equalities to prevent potential manipulation by 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 | overflow | true | false | ## Medium: Integer underflow leading to memory corruption in memcpy function(fd_poh)
### Description
Report type: Blockchain/DLT
Target: https://github.com/firedancer-io/firedancer/tree/e60d9a6206efaceac65a5a2c3a9e387a79d1d096
Impacts:
- Process to process Memory Corruption between sandboxed tiles (may lead to 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 | high | liquidation | true | false | ## High: Some liquidated collateral will be locked
### Description
After we liquidate via liquidation type1 method, all cds owner's liquidation share will change. This will cause some liquidated collateral will be locked.
### Impact
Some liquidated collateral will be locked.
### Recommendation
_No response_ | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Reward Distribution Inconsistency
### Description
## Update Reward Configuration
When updating the reward configuration with a new `reward_per_day`, the `reward_per_share` value, which represents the reward per share, should be adjusted to reflect the new configuration. However, the `update_reward_config` ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Inconsistent Memory Management
### Description
The codebase adopts a convention where [the memory at the free memory pointer](https://github.com/Consensys/linea-contracts-fix/blob/04d6677474421239c1f215c5a676223d09266ba4/contracts/verifiers/PlonkVerifierFull.sol#L170) is reserved for a [shared state](https://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 | low | other | false | false | ## Low: `SherpaVault::redeem` naming ambiguous
### Description
**Description:** `SherpaVault` uses ERC-4626-adjacent terminology but different semantics. In ERC-4626, `redeem` means burning shares to withdraw assets. In `SherpaVault`, `redeem` means finalize a prior deposit by moving unredeemed shares into the user’s ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | token | true | false | ## High: Duplicate Actions Unaccounted for During Voting Tally
### Description
**EnforcedBinaryGuild** allows for proposal creation using static call data. An additional feature of this contract is that "No" actions are enforced. When a user creates a proposal, they input the relevant actions into the function `Enforc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Don 't revert when a result is delivered by a different mech than the priority one during the response timeout period
### Description
In the context above, we have the following revert statement:
```solidity
} else {
// Priority mech responseTimeout is still >= block.timestamp
revert PriorityMechResponseT... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Setting treasury connectors might not work as intended
### Description
The `Treasury` contract's `setLidoTreasuryConnector` and `setAaveTreasuryConnector` methods allow the admin to change the treasury connector contracts at any point in time if necessary.
However, this is almost always infeasible during ope... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Prover Payment In ERC20 Tokens Always Reverts
### Description
AssignmentHooks are used to pay a prover’s fee via calling `onProposedBlock()` and transferring the specified asset from the proposer. A proposer can choose to be paid in ETH or any ERC20 token; if a prover chooses payment in an ERC20 token, then 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: Confusing method name
### Description
**Severity**: Informational
**Status**: Acknowledged
**Description**
In Contract VaultManager, the method _receiveUSDCFromTrader(...) is actually transferring the TradeStorage contract to the VaultManager contract but this method specifies it is from the trader. It is n... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | front-running | true | false | ## Severity: Critical
**Context:** PoolCommitter.sol#L384-391
## Description
The amount of pool tokens to mint and quote tokens to burn is determined by the pool token price. This price, for a commit at update interval ID X, should not be influenced by any pending commits for IDs greater than X.
However, in the curr... | Spearbit | 5 | Tracer |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Interface Implementation
### Description
The [`UNCX_ProofOfReservesV2_UniV3`](https://github.com/uncx-private-repos/liquidity-locker-univ3-contracts/blob/342c621cc93a13882601b30e547907877f3e3f86/contracts/UNCX_ProofOfReservesV2_UniV3.sol#L43-L566) contract does not implement the `onERC721Received` fu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `++i` costs less gas than `++i`, especially when it's used in `for`-loops (`--i`/`i--` too)
### Description
1. File: contracts/UniswapV2PathPriceOracle.sol (line [34](https://github.com/code-423n4/2022-04-phuture/blob/594459d0865fb6603ba388b53f3f01648f5bb6fb/contracts/UniswapV2PathPriceOracle.sol#L34))
2. ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `latestCumulativeETHRequested` is still updated if there were no requests canceled
### Description
There is an issue at the line: https://github.com/TwoFiftySixLabs/mntEth/blob/bd15a96aee7df0fc0566d662df0cf50ff2619d31/src/UnstakeRequestsManager.sol#L269. `latestCumulativeETHRequested` gets updated even if ther... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | false | false | ## High: Liquidation will fail if value set as `liquidationInitialAsk` > `2**88-1`, causing collateral to be permanently locked
### Description
When a lien is initially created, the `liquidationInitialAsk` can be set as any uint256 value >= the amount of underlying borrowed. Later on however, if the position is 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 | true | false | ## Low: Redundant Token Credit Validation Can Cause Unnecessary Reverts
### Description
The `creditTokensToInvoice()` function validates that credited tokens for an invoice do not exceed the expected amount. It performs two checks:
1. It reverts with `IM_TokenOverCredited` if `newCreditedAmount > tokenData[tokenIndex... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Precision loss can result in funds becoming stuck in incentive logic contracts
### Description
**Description:** In all three incentive logic contracts, the `ratePerSec` of deposited rewards is computed by performing a division of the `amount` to distribute by the `duration`:
If the token to distribute has 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 | low | other | true | false | ## Low: [05] Function `generateSentAssetKeys()` can revert
### Description
The function `generateSentAssetKeys()` can revert on `uint128 newArrayLength = oldArrayLength - 1`. This only happens when the data is already corrupt. However, in this case, no useful error/revert message is given.
### Proof of Concept
[LSP5U... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Weird ERC20 | false | true | Source: https://github.com/sherlock-audit/2022-09-harpie-judging/tree/main/005-M
## Found by
Lambda, cccz, hansfriese, IEatBabyCarrots, rbserver, JohnSmith, minhquanym, Tomo, leastwood, dipp, defsec, HonorLt, IllIllI, saian, csanuragjain
## Summary
https://github.com/Harpieio/contracts/blob/97083d7ce8ae9d85e29a139... | Sherlock | 5 | Harpie |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | true | false | ## High: Malicious keepers can manipulate the price when executing an order
### Description
Malicious keepers can manipulate the price when executing an order by selecting a price in favor of either the LPs or long traders, leading to a loss of assets to the victim's party.
### Impact
Loss of assets as shown in the s... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Missing `tokensStaked` update in `unstakePrincipal` causing accounting drift in `DIAWhitelistedStaking`
### Description
The `unstakePrincipal()` function in `DIAWhitelistedStaking` correctly decreases the individual stake's principal amount but fails to update the global `tokensStaked` counter inherited 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 | other | false | false | ## Low: Possible reverts with no message
### Description
There are some places in the contracts that have the `require` checks without a revert message:
https://github.com/cryptoalgebra/Algebra/blob/bddd6487c86e0d6afef39638159dc403a91ba433/src/periphery/contracts/LimitOrderManager.sol#L207
https://github.com/cryptoalg... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missions Are Not Recorded On-Chain
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `29efd69`.
Review comment: the `Mission` has been removed totally as a design decision.
**Description:** There is a `missions` mapping assumed to be used to keep track of all the missions created inc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Contracts used as dependencies do not track upstream changes
### Description
Math64x64 has been copied and pasted into the yieldspace-v2 repository. The code documentation does not specify the exact revision that was made or whether the code was modified. As such, the contracts will not reliably reflect updates ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | rounding | true | true | ## Medium: Rounding functions are wrong for negative integers
### Description
The `AssemblyLib.scaleFromWadUpSigned` and `AssemblyLib.scaleFromWadDownSigned` functions operate on `int256` values, which includes negative integers. However, these functions exhibit incorrect rounding behavior.
- Rounding down should me... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Prevent transfer to self when transferring positions
### Description
https://github.com/code-423n4/2024-08-superposition/blob/4528c9d2dbe1550d2660dac903a8246076044905/pkg/seawater/src/lib.rs#L553-L569
### Impact
`transfer_position_E_E_C7_A3_C_D` allows users to transfer tokens to themselves. It should return... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | overflow | false | false | ## Medium: Method isTimeout signals a false positive
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
TimeoutChecker.sol - Method isTimeout returns true in a specific case (block.timestamp timestamp by a margin of timeout. This makes it susceptible to false signaling.
**Recommendation**
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Use latest version of Solidity
### Description
[Current code](https://github.com/WeTrustPlatform/rosca-contracts/blob/2af29be97d529488f5488fe0592f9e6b3585254f/contracts/ROSCA.sol#L1) is written for an old version of solc (0.4.6). We recommend changing the solidity version pragma for the latest version (`pragma... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Sequential Search Leads To Gas Griefing
### Description
## Momentum Safe Registration Confirmation
When confirming a Momentum Safe registration, the address is removed from the pending vector of the owner’s `OwnerMomentumSafes` using a linear search. As anyone can register Momentum Safes for the owner, thi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | false | false | ## Low: No Check on _oracleData.value
### Description
Creating and initialising a new `ERC20KPIToken` instance from `KPITokensFactory.createToken()` requires several steps, including instantiating one or more Reality.eth oracles (or wrappers) through `OraclesManager` (for example, by using the `ManualRealityOracle` te... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | access-control | true | true |
The function `completeRedemptions` present in the `CashManager` contract is used by the manager to complete redemptions requested by users and also to process refunds.
<https://github.com/code-423n4/2023-01-ondo/blob/main/contracts/cash/CashManager.sol#L707-L727>
```solidity
function completeRedemptions(
address[]... | Code4rena | 5 | Ondo Finance |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## High: Empty orders do not request from oracle and during settlement they use an invalid oracle version with `price=0` which messes up a lot of fees and funding accounting leading to loss of funds for the makers
### Description
When `market.update` which doesn't change user's position is called, a new (current) glob... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Escrow contract can be drained by creating rentals that bypass execution invariant checks
### Description
The Escrow contract where ERC20 tokens are escrowed for payments can be completely drained.
### Proof of Concept
It is possible to create rentals where no assets are transfered, but storage is still upd... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | other | true | false | ## Low: Eligible intruments may not be propagated
### Description
The function `dividends_allocation` currently throws error when encountering an instrument whose `distrib_time` has not yet passed the 1-hour threshold:
```rust
} else {
//@audit instead of returning we should have continued to anoth... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | Business Logic | true | false | ## Severity: Medium Risk
## Context
OrderBook.sol#L685
## Description
The claim functionality is designed to support 3rd party operators in claiming multiple orders on behalf of the market's users to finalize transactions, deliver assets, and earn bounties. The code allows for iteration over a list of orders to execu... | Spearbit | 5 | CLOBER |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Refactor Authority Specification
### Description
## Design Principle
As a general design principle, it might be helpful to specify authority instead of `queue.authority` in the seeds. This way, you strictly relate the queue and the authority, even without the `has_one` check.
## RUST Example
## Remediation... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | signature | false | false | ## High: Queued proposal with repeated actions cannot be executed
### Description
The [`GovernorAlpha` contract](https://github.com/compound-finance/compound-protocol-alpha/blob/6858417c91921208c0b3ff342b11065c09665b1b/contracts/Governance/GovernorAlpha.sol) allows to propose and queue proposals with repeated actions.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: emissions/keeper/GetIdsOfActiveTopics may always return empty array []
### Description
`GetIdsOfActiveTopics` may always return empty array, causing `topic weights` to not be updated.
### Impact
`GetIdsOfActiveTopics` always return empty array, causing `topic weights` to not be updated.
### Recommendation
U... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | true | false | ## High: Poseidon2 verify batch: Incorporate sibling row can also be first of top level phase, skipping row incorporation
### Description
The verify batch instruction should always start with a row that is of type `incorporate_row` and `start_top_level`, as hinted by the constraint:
- **poseidon2/air.rs#L109-L112:**
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: EVC address can be set to different addresses in modules and EVault
### Description
During deployment and upgrade of the EVault, it is possible that the EVault and the linked modules have different EVC addresses set. This can occur when the modules are initialized with different Integrations structures compare... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: In `CDPVault::liquidatePositionBadDebt()`, the calculation of `loss` is incorrect
### Description
### Impact
The incorrect calculation affects the protocol’s profit assessment, resulting in potential losses for users, particularly in the interest portion.
### Proof of Concept
In the `liquidatePositionBa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Transfer Assets Out of Wallet Using `ERC1271` Signature Verification
### Description
**Update**
Marked as "Acknowledged" by the client.
The client provided the following explanation: "Acknowledged."
**File(s) affected:**`FallbackHandler.sol`
**Description:** The Cyan wallet incorporates EIP-1271 which enabl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `AstariaRouter.commitToLiens` will revert if the protocol fee is enabled
### Description
The function `commitToLiens()` will revert in `getProtocolFee()`, which prevents borrowers from depositing collateral and requesting loans in the protocol.
### Impact
The function `commitToLiens()` will revert if the p... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | false | false | ## Low: Prefer encodeCall() to encodeWithSignature()
### Description
The external function `withdraw()` of the `IonStrategy` contract is making use of the `abi.encodeWithSignature()` function. Since Solidity version `0.8.11`, `abi.encodeCall()` provides a type-safe encoding utility compared to `abi.encodeWithSelector(... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | other | true | false | ## Low: State changes without events | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Processing all withdrawals before all deposits can cause some deposit to not be delegated in `processL1Operations`
### Description
The way withdrawals and deposits are processed in `processL1Operations` (all withdrawals requests first, then all deposits) can lead in some cases, to balance not being delegate... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Low: LiquidityUtils::checkLiquidity() - L51: Natspec comment and implemented logic do not agree
### Description
- **LiquidityUtils::checkLiquidity() - L51**: Natspec comment and implemented logic do not agree, and function will revert when `collateralValue == liabilityValue`.
The `if` check `if (collateralValu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Constructor of `ODefaultOperatorRewards `missing `disableInitializers()` call
### Description
The `ODefaultOperatorRewards` contract inherits from `UUPSUpgradeable`, which is designed for upgradeable deployments via proxies. However, the constructor of this contract does not call `_disableInitializers()`. This... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Incorrect function call in `LybraRETHVault`'s `getAssetPrice`
### Description
The incorrect function call in the code results in the inability to calculate the asset price properly. This will halt all operations associated with the asset pricing, disrupting the functioning of the entire system.
### Proof 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... | cyfrin_structured | low | other | true | false | ## Low: <a name="GAS-1"></a>[GAS-1] Use `selfbalance()` instead of `address(this).balance` | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Significantly undercollateralized accounts will revert on liquidation
### Description
The Notional Strategy Vaults utilise collateral to allow leveraged borrowing as long as the account passes the `checkCollateralRatio` check that ensures the overall account value is at least `minCollateralRatio` greater 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 | medium | liquidation | false | false | ## Medium: `USDMPegRecovery.provide()` Will Fail If There Is An Excess Of `usdm` Tokens
### Description
_Submitted by leastwood_
The `provide` function does not take a `_steps` argument and will instead calculate `addingLiquidity` by truncating amounts under `step`. As a result, if there is an excess of `usdm` such 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... | cyfrin_structured | low | integer-overflow | true | false | ## Low: Insufficient fee validation in `STBL_Register::setupAsset` can cause underflow
### Description
The `STBL_Register::setupAsset` and `STBL_Register::setFees` functions validate individual fees but ignore their cumulative impact. Consider the following logic in `STBL_MetadataLib.calculateDepositFees` where the `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 | other | true | false | ## Low: `getAPY()` returns the wrong answer during leap years
### Description
There are more blocks in a year during a leap year. Using a static value for the number of blocks in a year will eventually lead to the wrong answer
*There is 1 instance 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... | cyfrin_structured | low | flash-loan | false | false | ## Low: Attacker can exploit Dividend allocation by depositing large mounts of DRVS Tokens
### Description
Dividends can be allocated once every hour, and the allocation process can be triggered by anyone. The distribution of fees is determined based on the amount of DRVS tokens each user has deposited at the time 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 | oracle | true | true | ## Medium: PriceOracle will use the wrong price if the Chainlink registry returns price outside min/max range
### Description
Chainlink aggregators have a built in circuit breaker if the price of an asset goes outside of a predetermined price band. The result is that if an asset experiences a huge drop in value (i.e. ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | reentrancy | false | false | ## Low: CEI pattern not followed
### Description
**Severity**: Low
**Status**: Resolved
**Description**
In Contract TokenSale.sol, the method `claim()` does not follow the CEI pattern as it transfers USDC to the users first (if `s.taxAmount > 0`) and then updates the `s.claimed` status. Here since it’s USDC tokens,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redundant condition in `LibSilo::_mow` can be removed
### Description
There is a [line](https://github.com/BeanstalkFarms/Beanstalk/blob/c7a20e56a0a6659c09314a877b440198eff0cd81/protocol/contracts/libraries/Silo/LibSilo.sol#L355) within `LibSilo::_mow` which performs some validation on the last update for a gi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | Business Logic | true | false | ## Severity: High Risk
## Context
OperatorsRegistry.1.sol#L310
## Description
If two entities A and B (which can be either the admin or the operator O with the index I) send a call to `removeValidators` with 2 different sets of parameters:
- T1: (I, R1)
- T2: (I, R2)
Then, depending on the order of transactions, th... | Spearbit | 5 | Liquid Collective |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | false | false | ## Gas: In ``div 512`` function, ``quotient 0`` aggregate operation is used with unchecked to save gas
### Description
https://github.com/code-423n4/2023-01-timeswap/blob/main/packages/v2-library/src/FullMath.sol#L165-L168 | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong calculation of `balanceBefore` and `balanceAfter` in deposit method
### Description
Deposit method calculate net amount transferred from user. It use `reservedFunds` also in consideration when calculating `balanceBefore` and `balanceAfter` but it is not actually require.
```solidity
uint256 balanc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `removePosition()` Misses Correct ID Check
### Description
**Update**
Fixed in: `8c305e28e29db5b681bf324603400bedf776314d`.
The client provided the following explanation:
> _Added input sanity check when removing a position from the Fund._
**File(s) affected:**`Fund.sol`
**Description:** The `removePositio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Malicious intent creator can provide an invalid Inbox contract to grief solvers
### Description
A malicious intent creator can provide an invalid Inbox contract while creating the intent in `createIntent()`, which can grief solvers when they attempt to fulfill that intent on the protocol-deployed valid Inbox c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | false | false | ## Gas: Prefer assignment to named return variables and remove explicit return statements
### Description
**Description:** [Prefer](https://x.com/DevDacian/status/1796396988659093968) assignment to named return variables and remove explicit return statements.
**Bima:**
Fixed in commit [82ef243](https://github.com/Bim... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [14] File is missing NatSpec
### Description
*There are 2 instances of this issue:*
https://github.com/code-423n4/2022-09-artgobblers/blob/d2087c5a8a6a4f1b9784520e7fe75afa3a9cbdbe/script/deploy/DeployBase.s.sol
https://github.com/code-423n4/2022-09-artgobblers/blob/d2087c5a8a6a4f1b9784520e7fe75afa3a9cbdbe/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | true | false | ## High: Fighters cannot be minted after the initial generation due to uninitialized `numElements` mapping
### Description
In `FighterFarm.sol` there is a mapping `numElements` which stores the number of possible types of elements a fighter can have in a generation:
[FighterFarm.sol#L84-L85](https://github.com/code-4... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 functionality to unregister malicious agents in `OmoVault`
### Description
- The `OmoVault` contract allows agents to be registered, granting them specific privileges when interacting with the vault, however, there is no functionality to unregister an agent if they begin acting maliciously, which expos... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: rmational - Since Mode is a OZ token, using transfer is safe
### Description
I recommend adding this as a comment to avoid getting false positives in future reviews as well as in bug bounties, for example:
## 4 Appendix
### 4.1 Invariants
The following properties were tested with Medusa on the in-scope con... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users with Liquidatable Positions Might Be Blocked From Repaying
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> We haven’t fix it since it involves complete rebuilding of the system with relatively low benefits.
**File(s) affected:**`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 | dos | false | false | ## Medium: Unbounded loops can lead to out-of-gas errors in contracts
### Description
1. The `totalAssets()` function in `OmoVault.sol` contains an unbounded loop that iterates through all registered accounts:
2. `OmoRouter.registerAccount` loops through all accounts, making it susceptible to a DoS attack via createAc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing negation in if clause
### Description
**Severity**
**Impact:** Medium
**Likelihood:** High
**Description**
When setting weights via the `setWeightBands` function, certain restrictions need to be followed. The weight has to be lower than the PRECISION value, which is 1e18.
This is because the sum ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | dos | false | false | ## High: in3-server - should protect itself from abusive clients ✓ Fixed
### Description
The in3-node implementation should provide features for client request throttling to avoid that a client can consume most of the nodes resources by causing a lot of resource intensive requests.
This is a general problem to the s... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: and High Vulnerabilities in Yarn Module Dependencies
### Description
The project's current dependencies include versions of yarn modules that are known to have critical and high vulnerabilities. The following dependencies are not imported directly but are nonetheless included as part of other project depend... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.