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 | true | false | ## Low: Use of Hardcoded Values Instead of Enums
### Description
In the `EVMAddressValidation` contract, the `_evmAddressValidation` function checks the `tokenConfig_` by comparing values using `uint` numbers, specifically `_storage.getUint(key) < 3` to ensure that a token is not blacklisted. However, this approach re... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unexpected Client Behaviour if Pre-Bohr Fork Blocks Are Used
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `2952ced699d5b4fac97947c59e2efa9567204115`. The client provided the following explanation:
> We have fixed this issue by implementing configurable validation parameters at bui... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Admin new issuance or user calling `Vault::redeemExpiredLv()` after `Psm::redeemWithCt()` will lead to stuck funds when trying to withdraw
### Description
[VaultLib::_liquidatedLp()](https://github.com/sherlock-audit/2024-08-cork-protocol/blob/main/Depeg-swap/contracts/libraries/VaultLib.sol#L349) calls [PsmL... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | false | false | ## Medium: Pool Credit Line May Not Able to Start When _borrowAsset is Non ERC20 Compliant Tokens
### Description
_Submitted by Meta0xNull, also found by Dravee and kenta_
`IERC20(_borrowAsset).transfer(_to, _fee);`
If the USDT token is supported as \_borrowAsset, the unsafe version of .transfer(\_to, \_fee) may rev... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | false | false | ## Low: Points factory program array is impractical
### Description
The `PointsFactory` pushes to the `pointsPrograms` array each time a program is created in `createPointsProgram`. At some point, traversing this array will become prohibitively expensive to fit within the block gas limit. Therefore, maintaining this 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... | solodit_api | high | Wrong Math | false | true |
HIGH: Attacker can steal any funds in the contract by state confusion (no preconditions).<br>
LOC:<br>
<https://github.com/code-423n4/2022-11-size/blob/706a77e585d0852eae6ba0dca73dc73eb37f8fb6/src/SizeSealed.sol#L33><br>
<https://github.com/code-423n4/2022-11-size/blob/706a77e585d0852eae6ba0dca73dc73eb37f8fb6/src/Size... | Code4rena | 5 | SIZE |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: Chain re-orgs may facilitate improper order fulfillment
### Description
Severity: High Risk
Context: RecipeKernel.sol#L384
Description: When an IP creates a new offer, the offer is indexed only by numIPOffers which increments
with each new offer created. This differs significantly to AP offer creations which in... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | true | false | ## Medium: Attacker Can Desynchronize Supply Snapshot During Same-Block Unstake, Reducing Everyone’s Rewards
### Description
### Finding description and impact
An attacker holding Cabal LSTs (like sxINIT) can monitor the mempool for the manager’s `voting_reward::snapshot()` transaction. By submitting his own `cabal::... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: split() mints NFTs to msg.sender not the original owner
### Description
VotingEscrow implementation, the split() function mints new NFTs to the msg.sender, regardless of whether msg.sender is the original owner or just an approved operator. This is inconsistent with the behavior of other functions, such as ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | reentrancy | true | false | ## High: Yearn: Re-entrancy attack during deposit
### Description
During the deposit in the `supplyTokenTo` function, the token transfer is happening after the shares are minted and before tokens are deposited to the yearn vault:
**code/pooltogether-yearnv2-yield-source/contracts/yield-source/YearnV2YieldSource.sol:... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | cross-chain | true | false | ## High: Bridge Service Hijacking Leaks Private Keys
### Description
## Bridge Service Security Vulnerability
The bridge service is a JavaScript bundle executed inside a headless webview. To pull the JavaScript file, the mobile app creates a local web server by trying to locate an available port from the range 8000 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 | other | false | false | ## Low: Missing Event Emissions
### Description
**Severity**: Low
**Status**: Resolved
**Description**
The functions `depositFromRewards()` and `receiveWithdrawalPLS()` do not emit events upon successful execution. Emitting events in smart contracts is crucial for tracking state changes and ensuring transparency. 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 | token | false | false | ## Low: One-way bridging considerations
### Description
The **BeraNftAdapter**, **BeraNft**, and **WrappedNFT** contracts are designed to facilitate the bridging of a specific set of ERC721 and ERC1155 tokens from Ethereum mainnet to Berachain. After discussions with the team, it has been clarified that this bridging ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Input Validations
### Description
**Update**
The team added several validations as recommended in the commit `a20c6ca`. The following is the list of validations still missing after the fix:
`L1NFTBridge` contract:
* `configureGas()`: the range of `_depositL2Gas` still lacks validation.
* `_initiate... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | flash-loan | true | false | ## Medium: Adversaries can manipulate victim's stable rate to remain excessively high via flashloan
### Description
Report type: Smart Contract
Target: https://testnet.snowtrace.io/address/0x2cAa1315bd676FbecABFC3195000c642f503f1C9
Impacts:
- Direct theft of any user funds, whether at-rest or in-motion, other 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... | solodit_api | high | initialization | true | false | ## Security Analysis Report
## Severity
**High Risk**
## Context
- `PoolFactory.sol#L93-L174`
- `IPoolFactory.sol#L14`
## Description
The `deployPool()` function in the `PoolFactory` contract uses two different `invariantCheck` variables: the one defined as a contract’s instance variable and the one supplied as a pa... | 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 | high | other | false | false | ## High: Mango-exclusive instructions accept Mercurial strategies
### Description
## Juiced Audit 04 | Vulnerabilities
2. The attacker invokes `withdraw_mercurial` and burns 20,000 pool tokens. The protocol calculates the notional value to be 19,995 USDC. This corresponds with 30,000 pool tokens, so it transfers ≈ 13... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | reentrancy | true | false | ## Medium: Consider add reentrancy protection to the specialWithdrawFees function
### Description
The function `withdraw fee` calls `_updateFeesForWithdraw` before executing the token transfer. However, the function `specialWithdrawFees` updates the fee state after making the external call. If the special withdrawal 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 | overflow | true | false | ## Low: Use checked arithmetic instead of saturating
### Description
## Use of Saturating Arithmetic in ELF Parsing
Use of saturating arithmetic (`saturating_add`, `saturating_sub`, `saturating_mul`, etc.) causes values to “saturate” at the maximum or minimum possible representations.
During ELF parsing, saturating... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | false | false | ## Medium: Non-standard tokens not properly accounted for
### Description
**Severity**
**Impact:** High
**Likelihood:** Low
**Description**
When depositing into the farm, the shares minted to the depositor are equal to the `amount` specified. However, for fee-on-transfer tokens, the actual amount of tokens that ar... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | cross-chain | false | false | ## Medium: Withdrawal on xchain will revert when srcsender != receiveraddress
### Description
## Withdrawal Process Overview
## Context
(No context files were provided by the reviewer)
## Proof of Concept
When a user wants to perform a withdrawal, they provide the `receiverAddress` of the funds inside their request.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Excessive Approval Renders Functions Unavailable
### Description
## NEP-178 Discussion
NEP-178 mandates that `nft_approve`’s panic will cause `nft_revoke_all` to fail due to gas exhaust. This requirement is set for good reason, as a handful of functions may need to iterate approvals, such as how successful... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | access-control | false | false | ## High: Funds May Be Locked Inside TimeBasedCollateralPool
### Description
Users' deposits are represented by units instead of tokens in the [`TimeBasedCollateralPool`](https://github.com/AmperaFoundation/sol-contracts/blob/c6e940c12044c8994f778c978e34582449229df8/contracts/TimeBasedCollateralPool.sol#L22-L1210) cont... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | true | false | ## Medium: Missing stake limit validation on `RenzoAdapter._stake`
### Description
Every `_stake` function in adapter contracts like `RsETHAdapter`, `PufETHAdapter`, and `RenzoAdapter` has the below @dev comment to implement the stake limit validation.
> /// @dev Need to check the current staking limit before stakin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | true | true | ## Medium: Missing loop iteration leads to non-removable validator
### Description
An improper loop iteration in the constructor functions prevents the removal of a consensus validator from the `OwnedSet` and `InnerOwnedSet` contracts. The `OwnedSet` and `InnerOwnedSet` contracts are validator sets used in consensus. ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistency in Admin Update Mechanism
### Description
## InitSy Update Authority
In InitSy, the admin calling the instruction is set as the `update_authority` for the newly created metadata. This link is permanent for that specific SY instance.
In the future, if the exponent admin changes, all previously ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | flash-loan | false | false | ## Low: Potential manipulation of stable interest rates using flash loans
### Description
#### Resolution
This type of manipulation is difficult to prevent completely especially when flash loans are available. In practice however, attacks are mitigated by the following factors:
1. Liquidity providers attempting 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 | high | access-control | false | false | ## High: Insecure Logging: Use of `console.error` with Potentially Sensitive Data
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `225513ddfe96a7dfff7ed3e40d56f4cd92b136b9`. The client provided the following explanation:
> Added comprehensive logging system with security redaction and perfor... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | access-control | true | false | ## Security Assessment Report
## Severity
**Medium Risk**
## Context
**Location:** Divider.sol#L107-109
```solidity
function addAdapter(address adapter) external whenPermissionless whenNotPaused
{
_setAdapter(adapter, true);
}
```
## Situation
Anyone can enable an adapter again as soon as someone has disabled t... | Spearbit | 5 | Sense |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The reverting functions `_calculateRewards` and `_transferRewards` should be removed, as they are already implemented in the child contract
### Description
There are two functions in Quest.sol, which reverts incase they are called. By the revert names, we can understand that these two functions need to be impl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Treasury's allocated funds not tracked during withdrawals leads to accounting issue where recepient can receive more than allocated funds.
### Description
The Treasury contract maintains an allocation system that tracks fund allocations to recipients but fails to decrease these allocations when actual withdraw... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | rounding | true | false | ## Medium: Claim reward function reverts after distribution period ends
### Description
A vulnerability in the reward distribution mechanism allows the first user to claim their reward after the distribution period ends, but subsequent claims by other users result in a function revert due to an underflow error. This i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: `require()`/`revert()` Strings Longer Than 32 Bytes Cost Extra Gas
### Description
### Proof Of Concept
https://github.com/code-423n4/2022-12-caviar/tree/main/src/Caviar.sol#L51
https://github.com/code-423n4/2022-12-caviar/tree/main/src/Pair.sol#L80
https://github.com/code-423n4/2022-12-caviar/tree/main/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | true | false | ## Medium: DOS attack by delegating tokens at MAX_DELEGATES = 1024 in Voting escrow
### Description
Report type: Smart Contract
Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/VotingEscrow.sol
Impacts:
- Permanent freezing of NFTs
- Griefing (e.g. no profit motive for an attacker, but dama... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `setBeforeSendHook` can never delete an existing store due to vulnerable validate
### Description
### Finding description
`setBeforeSendHook` allows disabling an existing token transfer hook (deleting a store) by setting an empty `cosmwasmAddress`. However, this functionality is not available due to a vuln... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Deleveragable Positions Cannot Be Fully Liquidated
### Description
### Finding description
According to spec, a position is liquidatable when Total Value (TV) is less than Total Risk (TR) (`TV < TR`) and deleveragable when `TV < 0`.
Liquidation is the preferred mechanism (over Deleverage) to wind down a 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 | false | false | ## Low: type(IERC7540Operator).interfaceId should be supported in support interface check
### Description
According to the ERC 7540 specification:
All asynchronous Vaults **MUST** return the constant value `true` if either `0xe3bc4e65` (representing the operator methods that all ERC-7540 Vaults implement) or `0x2f0a1... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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_WHITELISTED_MAX_PER_USER` of `NFTMintSaleWhitelistingMultiple` is shared between the tiers
### Description
The `NON_WHITELISTED_MAX_PER_USER` parameter is currently shared across all tiers in the `NFTMintSaleWhitelistingMultiple` contract https://github.com/vibexyz/vibe-contract/blob/d08057edbaf83b00d94dc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: XYK reflect_curve omits swap fee in order sizing, leaking LP fees
### Description
The `reflect_curve` function for the XYK pool sizes passive bid/ask orders without accounting for the swap fee, allowing takers to match those orders effectively fee-free. This under-collects fees that should accrue to liquidi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | initialization | true | false | ## Low: Unchained initializers should be called in `PausableOwnable::__PausedOwnable_init` 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 | access-control | true | false | ## Low: `warningUtilization` can be above `provisionalDefaultUtilization`
### Description
`WarningUtilization` is expected to be always below `ProvisionalDefaultUtilization` but setters do not check this.
```
function setWarningUtilization(uint256 warningUtilization_)
external
onlyOwner
{
require(warningUtiliz... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Anyone can call AutoPxGmx.compound and perform sandwich attacks with control parameters
### Description
AutoPxGmx.compound allows anyone to call to compound the reward and get the incentive.
However, AutoPxGmx.compound calls `SWAP_ROUTER`.exactInputSingle with some of the parameters provided by the caller,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Avoid variable names that can shade
### Description
With global variable names in the form of `call{value: value }` , argument name similarities can shade and negatively affect code readability. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Numeric values having to do with time should use time units for readability
### Description
There are [units](https://docs.soliditylang.org/en/latest/units-and-global-variables.html#time-units) for seconds, minutes, hours, days, and weeks
*There are 4 instances of this issue:* | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Optimization in calculation
### Description
**Description**
IgnitionIDO.sol, line 53
poolTokens[_poolAddr][_pool].tokenTotalAmount is set to the result of subtraction, though,
due to the logic of previous calculations, it can be set directly to
poolTokens[_poolAddr][_pool].soldAmount.
IgnitionIDO.sol, line 23... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | false | false | ## Medium: `HolographERC20` breaks composability by forcing usage of draft proposal EIP-4524
### Description
[HolographERC20.sol#L539](https://github.com/code-423n4/2022-10-holograph/blob/f8c2eae866280a1acfdc8a8352401ed031be1373/contracts/enforcer/HolographERC20.sol#L539)
HolographERC20 is the ERC20 enforcer for Holo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `isMintEnabled` blocks extra functionality
### Description
- https://github.com/defidotmoney/dfm-core/blob/0bde9fb784400d73f434d585aab7d9dd0ad1c679/contracts/bridge/BridgeToken.sol#L290
The `isMintEnabled` flag blocks the internal `_mint()` method. This can lead to user transactions getting stuck during cr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Collateral cannot be claimed because there is no mechanism for the config keeper to change the claimable factor
### Description
Collateral given back to a user due to capped price impacts cannot be claimed because there is no mechanism for the config keeper to set the claimable factor
### Impact
The user wil... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Broken mint if market pre-mint less than `p`
### Description
**Severity**
**Impact:** Medium
**Likelihood:** High
**Description**
When market is created, it is allowed that `params.premint` and the `p` configured inside `params.curveParameters` is different, as long as `params.premint` is lower and result... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [05] Missing constructor check for `AuctionDurationGteSequencePeriod()`
### Description
The error `RngAuction.AuctionDurationGteSequencePeriod` has been declared but never used. It should be utilized to implement the following missing check.
https://github.com/GenerationSoftware/pt-v5-draw-auction/blob/f1c6d1... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | false | ## High: Incorrect tax distribution when adding value single-sided
### Description
When value is added single-sided to a closure, the LP is required to pay a fee (tax) to the existing LPs. However, the amount is not distributed correctly because valueStaked is updated before the tax is distributed. This causes the new... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Actions not executed atomically might lead to inconsistent state
### Description
The [`setAssetPricer`](https://github.com/opynfinance/GammaProtocol/blob/d151621b33134789b29dc78eb89dad2b557b25b9/contracts/Oracle.sol#L162), [`setLockingPeriod`](https://github.com/opynfinance/GammaProtocol/blob/d151621b33134789b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Deducting Vault Interest When Repaying Debt
### Description
## Protocol Module
In the protocol module, `repay_internal` is used to repay amounts borrowed from the vault. In addition to the debt, clearing the interest should be done when repaying the borrowed amount.
Although the protocol uses `fees::absorb... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | false | false | ## Low: No deadline when liquidating a borrower's collateral
### Description
A loan's collateral is liquidated in the event of a late payment or if the pool delegate impairs a loan due to insolvency by the borrower. If the loan contains any amount of collateral (assuming it is different from the funds' asset), the liq... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Input Validation
### Description
**Update**
Only recomendation for `setReduceReservesBlockDelta()` has been added and all the other recomendations have been acknowledged. Mitigated in commit `7bafbaa3be3ad904ac52a102b42426e9c6a56bb2` and `7f303f505d8278b846565485e4668e41f7206032`.
**File(s) affected:*... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | reentrancy | true | false | ## Medium: Interest accumulated, but not accounted yet, could be reset if Governance updates the interest rate model when in "Interest Overflows" state
### Description
Let's assume that borrowers have borrowed an amount `X` for which, when `Cache.loadVault()` is executed, the interest accrued added to `X` would make 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 | true | false | ## Medium: Transferring a deposit fully in a rainy season loses the rewards during the flood
### Description
Assume Bob has nonzero roots, indicating he has already deposited and mowed. Then, in the following season, it rains. Because Bob had nonzero roots before the rainy season, he now has nonzero rain roots.
If Bo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: OrderHash in the context of contract orders need not refer to a unique order
### Description
In Seaport 1.1 and in Seaport 1.2 for non-contract orders, order hashes have a unique correspondence with the order, i.e., it can be used to identify the status of an order on-chain and track it. However, in the case o... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: Vesting schedule for a beneficiary can be overwritten
### Description
**Impact:**
High, as the amount left to be vested will be stuck in the contract forever
**Likelihood:**
Medium, as it requires more than 1 vesting schedule for the same beneficiary
**Description**
The vesting schedules in `Vesting` are 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 | true | false | ## Low: Add check for VERIFIER call return status
### Description
When the VERIFIER precompile is called, the `bool status` value is ignored when interpreting the result of the call. While it makes sense to not solely rely on the status (since a non-existent precompile would return `true`), it would still make sense 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 | other | true | false | ## Low: Inconsistent SaiTub.join() docs may lead to unexpected user behavior
### Description
The `SaiTub.join` function is the user interface for exchanging Ether for SKR. It takes a single parameter: the amount of SKR to receive expressed as a DSMath WAD type. It directly mints the input parameter amount of SKR to th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Inconsistent or Blank Fields in package.json ✓ Fixed
### Description
The `package.json` file serves as a critical source of information for users, developers, and security analysts. Neglecting to provide complete and accurate metadata in this file can lead to misunderstandings, vulnerabilities, and potential 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... | solodit_api | medium | Account Abstraction | false | true |
User operations can be replayed on smart accounts accross different chains. This can lead to user's losing funds or any unexpected behaviour that transaction replay attacks usually lead to.
### Proof of Concept
As specified by the [EIP4337](https://eips.ethereum.org/EIPS/eip-4337) standard `to prevent replay attacks... | Code4rena | 5 | Biconomy |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Misunderstanding number used.
### Description
**Description**
Line 618. lockDuration is multiplied by 1200, which can lead to misunderstanding of the code.
lockDuration is set in function resetAndsetStartEndBlock, line 305, without specifying which
time interval it represents.
**Recommendation**:
Use sto... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | true | false | ## Medium: Inability To Initialize Objects
### Description
## Issue with `request_ride` Initialization
`request_ride` is unable to initialize `Stop` objects, preventing it from being called with a non-zero vector of stops. The contract expects a vector of stops (`stops: vector`) as one of the parameters for `request_... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Withdraw from `AaveVault` will receive less than actual share
### Description
_Submitted by gzeon_
#### Impact
`AaveVault` cache `tvl` and update it at the end of each `_push` and `_pull`. When withdrawing from `LpIssuer`, `tokenAmounts` is calculated using the cached `tvl` to be pulled from `AaveVault`.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unfair Vesting Extension for Users Spending Locked Tokens Before Claiming
### Description
The vesting calculation in `_vestedAmount()` creates an inequitable outcome for users who spend locked tokens before claiming vested tokens compared to users who claim first. The function reduces the total allocation b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | false | false | ## Gas: abi.encode(..) is less efficient
### Description
abi.encode(..) is less efficient than abi.encodePacked(....)
### Impact
Gas: abi.encode(...) pads parameters with 32 bytes whereas abi.encodePacked() does not pad the parameters using minimal space for type which is cheaper gas wise. The bigger the encoded byte... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | true | false | ## Medium: Denial of Service Due to ATA Ownership Change
### Description
## Withdrawal Collateral Attack Risk
As a result of the `WithdrawCollateral` token account checks in `WithdrawCollateralShared` within `validate`, there is a possibility that a Denial of Service (DoS) attack may occur if the maker (the original ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Approval overflow causes DoS in `BalancerRouter`'s `exitPlazaAndBalancer`
### Description
In `_exitBalancerPool`, the `BalancerRouter` contract will invoke `balancerPoolToken.safeIncreaseAllowance` in order to increase the allowance to the `balancerVault` by the desired `balancerPoolTokenIn`. This is incorr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: CollectedFees Is Not Paid Out Anywhere
### Description
**Severity** - Low
**Status** - Resolved
**Description**
In the treasury contract collectedFees is being accounted for every winning or loss , it is updated in the distribute() , calculateUpDownRate() and calculateSetupRate() function .Admins can claim ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: AdminControlled.sol Lacking Admin Transfer Pattern
### Description
Description
TheAdminControlled.sol contract utilises the adminSstore() function to update certain state variables
within contracts inheriting AdminControlled.sol . However, it is possible that the onlyAdmin role may be
unintentionally set to th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: isContract may behave unexpectedly
### Description
The Yield Protocol system relies on the `isContract()` function in a few of the Solidity files to check whether there is a contract at the target address. However, in Solidity, there is no general way to definitively determine that, as there are several edge 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... | solodit_api | high | Lending Pool | true | true |
Liquidity providers may lose a portion of provided liquidity in either of the pair tokens. While the `minLpTokenAmount` protects from slippage when adding liquidity, it doesn't protect from providing liquidity at different K.
### Proof of Concept
The `Pair` contract is designed to receive liquidity from liquidity pr... | Code4rena | 5 | Caviar |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Dust losses in `notifyRewardAmount`
### Description
This should cause dust losses which are marginal but are never queued back. See private link to
code-423n4/2022-10-3xcalibur-findings#410.
Vs SNX implementation which does queue the dust back.
Users may be diluted by distributing the \_leftover amount of anot... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Check In Setting Default Domain Name
### Description
## Registry Move Review
In `registry.move`, `set_default_domain_name` sets the value of the new `default_domain_name`; however, several checks are missing:
1. The function does not check if `new_default_domain_name` exists or if the sender is its 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 | other | false | false | ## Low: Expressions can be simplified
### Description
**Severity**: Informational
**Status**: Resolved
**Where**: vesting.move#197,240,242,261,262,309,316
**Details**:
Expressions like "{ amount: amount }" can be simplified as "{ amount }"
**Recommendations**:
Consider using simplified syntax | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Medium: Division rounding may a�fect issuance of shares
### Description
Users might not receive shares in exchange for their deposits if the total asset amount is manipulated by another user through a large "donation."
The `_issueSharesForAmount` function calculates the amount of shares to be issued:
```python
@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 | initialization | false | false | ## Low: Code Maturity
### Description
## Suggestions for PreparedOrderResponse and Initialization
1. In the `PreparedOrderResponse` structure, within the `bump` field, store the bump value utilized to derive the program-derived address for the prepared token custody.
2. In `machine_engine::Initialize`, `paused_by` 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 | access-control | false | false | ## Low: | Validation Upon Name Transfer
### Description
**Description**
`transferName` can potentially lead to an NFT’s name being overwritten without permission from the holder. There must be proper validation done by the marketplace to make sure people can’t arbitrarily send names to another person’s NFT.
**Recomm... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Missing, incomplete or incorrect docstrings
### Description
There are some places in the codebase, where docstrings are either missing, incomplete or incorrect. Some examples are:
* Public state variables and event definitions in the `RateLimit` contract are missing comments or docstrings.
* Some docstrings,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Non-assembly method available
### Description
`assembly{ id := chainid() }` => `uint256 id = block.chainid`, `assembly { size := extcodesize() }` => `uint256 size = address().code.length`
*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... | solodit_api | medium | front-running | true | false | ## Severity
**Impact:** Medium
**Likelihood:** Medium
## Description
In the PositionInteractionFacet.sol contract, when executing DEX swaps, the `deadline` parameter is set to `block.timestamp + 30 minutes`:
```solidity
IV3SwapRouter.ExactOutputSingleParams memory params = IV3SwapRouter.ExactOutputSingleParams({
... | Pashov Audit Group | 5 | Hyperhyper_2025-03-30 |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Filter Zero Balances
### Description
In the `batchCancelThenFill` function, balances are calculated, and some may be set to zero during processing. These zero balances are then passed to the `batchFillThenOpen` function, which could unnecessarily handle them. This behavior leads to inefficient gas usage and po... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Rename struct `prop` to `proposalDetail`
### Description
Struct `prop` should be renamed to `proposalDetail`.
https://github.com/MetaLex-Tech/borg-core/blob/9074503d37cfa1d777ef16f6c88b84c98b4f54eb/src/implants/daoVetoGrantImplant.sol#L44
### Recommendation
We recommend making improvements from the descriptio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | false | false | ## Low: Missing checks for parameters for setParams Function in `ERC20PriceOracle_V2`
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
The setParams function allows the owner to set parameters, including unitRatio, gap, and precisionLimit.
**Recommendations**:
Ensure that these 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 | token | false | false | ## Low: Bridge Cannot Recover Funds
### Description
The `BridgeInitializationHelper` contract [sets the message sender](https://github.com/matter-labs/zksync-2-contracts/blob/c44852f89f443bbe8120a7c6abcc6984b394eb29/ethereum/contracts/bridge/libraries/BridgeInitializationHelper.sol#L46) as the refund recipient for its... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Simplified logging
### Description
In `sugar/src/upload/process.rs`, the `if` condition contained in `println!` is unnecessary. Notice that the `indices.animation` array is ensured to be non-empty in the outer `if` condition.
---
### Recommendation
Compute the total number of steps initially, then reuse this... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Withdrawals can be bricked for _currencyToken that reverts on zero value transfers
### Description
The redemption queue scanning limit increases the likelihood of the withdrawn amount to be zero. In such scenarios, should the `_currencyToken` revert on zero value transfers, both withdrawals and rebalances woul... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing receiver validation in withdrawFrom
### Description
## Lines of code
https://github.com/code-423n4/2022-02-foundation/blob/4d8c8931baffae31c7506872bf1100e1598f2754/contracts/FETH.sol#L433
## Vulnerability details
## Impact
The `FETH.withdrawFrom` function does not validate its `to` parameter.
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 | high | cross-chain | false | false | ## High: Invalid variable check
### Description
The `_executeTransaction()` function in https://github.com/aave/governance-crosschain-bridges/blob/763ef5da8befff3a129443a3ff4ef7ca4d3bb446/contracts/BridgeExecutorBase.sol#L225 can be called several times from the `execute()` function in https://github.com/aave/governan... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | true | false | ## Low: In `ChainlinkUtil::getPrice` function, skipping `roundId` check at all can be disastrous
### Description
In `ChainlinkUtil::getPrice` function, the `roundId` is not checked or validated at all. Stale prices could result in mass liquidations and huge bad debts that could even challenge the going concern of the ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | false | false | ## Medium: Outdated documentation Acknowledged
### Description
There are many changes within the system from the initial version that are not reflected in the documentation.
It is necessary to have updated documentation for the time of the audit, as the specification dictates the correct behaviour of the code base.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The result of a function call should be cached rather than re-calling the function
### Description
External calls are expensive. Consider caching the following:
https://github.com/code-423n4/2023-01-popcorn/blob/d95fc31449c260901811196d617366d6352258cd/src/vault/adapter/yearn/YearnAdapter.sol#L89-L98
### Yea... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | flash-loan | true | false | ## Medium: Invalid handling of risdual amount in `PositionAction::onCreditFlashLoan`, forcing it to revert
### Description
Users can call `PositionAction::decreaseLever` through a proxy, to "Decrease the leverage of a position by taking out a credit flash loan to withdraw and sell collateral". After it is called, the ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | false | ## Medium: Add condition
### Description
For the line: https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/credit/CreditFilter.sol#L159
in the `allowToken ()` function, the existence of the `token` - `underlyingToken` pair is checked.
But it is better to immedi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Token balance check
### Description
Constructor: `_token` should be checked by calling `IERC20(_token).balanceOf(_target)`.
https://github.com/MetaLex-Tech/borg-core/blob/9074503d37cfa1d777ef16f6c88b84c98b4f54eb/src/libs/conditions/balanceCondition.sol#L24
### Recommendation
We recommend adding parameters che... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Events in Batch Status Updates
### Description
The functions `setIslandStatusBatch` in `KodiakIslandGatewayAdapter` and `setMultiVaultStatusBatch` in `MellowClaimerAdapter` do not emit any events when configuration changes are made. As a result, off-chain systems and monitoring tools cannot reliably tr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Transfer fee avoidance
### Description
The `Vether4.addExcluded()` function on mainnet (0x4Ba6dDd7b89ed838FEd25d208D4f644106E34279) allows a user to exclude an address from transfer fees for a cost of 128 VETH. By exploiting the conditions in which fees are taken, it is possible to set up a contract for a 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 | medium | other | false | false | ## Medium: Stale edge price in liquidation tree after perp withdraw call
### Description
In `perp_withdraw`, after withdrawing funds from a perpetual position, the function does not call `change_edge_px` to update the liquidation price(edge price) in the liquidation tree.
When funds are withdrawn, `info.funds` decrea... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.