prompt listlengths 2 2 | source stringclasses 3
values | severity stringclasses 5
values | category stringclasses 186
values | has_code bool 2
classes | has_poc bool 2
classes | reference_response stringlengths 23 5k | firm stringclasses 26
values | quality_score float64 0 5 | protocol stringclasses 398
values |
|---|---|---|---|---|---|---|---|---|---|
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Contracts are using outdated OpenZeppelin version `^3.4.2-solc-0.7`
### Description
Within `notional-wrapped-fcash` `package.json`, an outdated OZ version is used (which has known vulnerabilities, see ).
However, as `Brownie` is used to install dependencies and compile the contracts, using this outdated versi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Cash settling during low liquidity deletes cash receiver tokens
### Description
During the execution of [`settleCashBalance`](https://github.com/swapnet-protocol/swapnet-lite/blob/66ce8f3e529410a5272b7a57c8391fcb80a375fd/packages/contracts/contracts/Escrow.sol#L710), the flow can lead to the execution 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 | high | overflow | false | false | ## High: Reduction gate in binop operation is unsafe
### Description
The range check in the binop's reduction gate is insufficient. After decomposing the `composite_result`, `and_result` and `or_result` could be arbitrary integer less than 128 and `xor_result` could overflow. Attacker can forge arbitrary result for op... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Use named mappings
### Description
**Description:** Use named mappings to explicity indicate purpose of index => value:
**Matrixdock:** Fixed in commit [f3fbe97](https://github.com/Matrixdock-RWA/RWA-Contracts/commit/f3fbe97bd20ad514b76aa422a7dfc1f8a66cd66b#diff-f1dbc2c2c340ac285844595cba6f20040bb8b33c2ae726... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users can bypass the maxWinPercent limit using a partially closing
### Description
## Lines of code
https://github.com/code-423n4/2022-12-tigris/blob/b2ebb8ea1def4927a747e7a185174892506540ab/contracts/Trading.sol#L625-L627
## Vulnerability details
## Impact
Users can bypass the `maxWinPercent` limit using... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Accidental loss of NFTs due to misuse of push mechanism
### Description
https://github.com/code-423n4/2023-05-particle/blob/main/contracts/protocol/ParticleExchange.sol#L74
An accidental loss of NFTs can happen if the sender doesn't use `safeTransferFrom()` or submits an incorrect payload in `safeTransferFrom... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Early self liquidations receive a portion of future fees to be paid by other creditors
### Description
Self liquidations are permitted when a creditor is at loss. Put simply, this means when the total debt of a position exceeds its share of collateral, then creditors may self liquidate to realize the loss ins... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Emission of events during state changes
### Description
To satisfy the objective of transparency, it is recommended to emit events when any change
of importance takes place. In V3 Strategies, `updateSecurityFee()`, `updateTreasury()` and the
important upgrade related functions `clearUpgradeCooldown()` and
`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | false | false | ## Low: OVERFLOW CHECKS NOT SET FOR PROFILE RELEASE
### Description
While the `overflow-checks` parameter is set to **true** in `profile.release` and implicitly applied to all contracts and packages from in workspace, it is not explicitly enabled in **Cargo.toml** file for each individual contract and package, which 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 | high | liquidation | true | false | ## High: SwingTraderManager.addSwingTrader will push traderId with `active = false` to activeTraders
### Description
In SwingTraderManager.addSwingTrader, if `active = false`, the traderId is also pushed to activeTraders.
Afterwards, if toggleTraderActive is called on the traderId, the traderId will be pushed to act... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | flash-loan | false | false | ## High: Arbitrary Address Supplied to executeSwap of the TeaVaultAmbient Contract Allows the Pool Manager to Drain the Pool Resulting in a Theft of Funds
### Description
**Severity**: High
**Status**: Resolved
**Location**: TeaVaultAmbient.sol#executeSwap
**Description**:
The TeaVaultAmbient contract is a wrappe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insufficient Gas Limit for ETH Transfer in ETHUnwrapper Contract
### Description
The `ETHUnwrapper` contract is designed to unwrap WETH (Wrapped ETH) tokens and transfer the resulting ETH to a specified address. However, there is an issue with the gas limit set for the ETH transfer operation, which prevents Gn... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: DOS of user operations if totalXP is below 10
### Description
`_computeXP` calculates accrual rate modifier as `1e18/log10(totalXP)` if totalXP is greater than 0. The issue is that base10 log of any number less than 10 ranges from undefined, 0, to "0.decimals" which in solidity is eventually rounded down to 0.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Reserves can be re-added
### Description
## Medium Risk Report
**Severity:** Medium Risk
**Context:**
- LendingPool.sol#L777-L791
- MiniPool.sol#L708-L721
**Description:**
If the reserve for that specific asset and reserveType has already been added, revert instead. If we don't, some of the impor... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | high | reentrancy | true | true | ## High: Read-only reentrancy
### Description
The current implementation is vulnerable to read-only reentrancy, especially in the function [removeLiquidity](https://github.com/BeanstalkFarms/Wells/blob/7c498215f843620cb24ec5bbf978c6495f6e5fe4/src/Well.sol#L296).
The implementation does not conform to the [CEI pattern]... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | oracle-manipulation | true | false | ## Medium: Missing L2 sequencer uptime check in `OracleAdapter`
### Description
On L2, the `YToken` exchange rate is provided by custom Chainlink oracles. The exchange rate is queried in [`OracleAdapter::fetchExchangeRate`](https://github.com/YieldFiLabs/contracts/blob/40caad6c60625d750cc5c3a5a7df92b96a93a2fb/contract... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use Pyth Oracle Confidence Interval
### Description
## Elusiv Program and Pyth Oracles
The Elusiv program uses Pyth oracles to convert between USDC, USDT, and native SOL in order to compute fee amounts for SPL-token transfers. Currently, the code does not utilize the confidence metric in the Pyth oracle.
## ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `NonReentrant` modifier is missing
### Description
**Severity**: Low
**Status**: Resolved
**Description**
Most of the functions within `OriginalTokenBridge.sol` implements a `NonReentrant` modifier to avoid reentrancy. However, some of them are not implementing the modifier, like wrapBTC, unwrapBTC, etc. 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... | cyfrin_structured | low | flash-loan | true | false | ## Low: Insufficient data length validation in `onMorphoFlashLoan`
### Description
`RockoFlashRefinance::onMorphoFlashLoan` performs a basic check on the length of the `data` parameter, requiring it to be at least 20 bytes. However, this check is insufficient as the actual data being sent is much larger, containing mu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Cross Domain Messengers Can Fail in Relaying a Message
### Description
The [`L1CrossDomainMessenger` contract](https://github.com/mantlenetworkio/mantle-v2/blob/e29d360904db5e5ec81888885f7b7250f8255895/packages/contracts-bedrock/contracts/L1/L1CrossDomainMessenger.sol) extends [`CrossDomainMessenger`](https... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Returning true when the current time has reached the `expiration_time` in `is_vacant`
### Description
**Description:** `is_vacant` is used in `deposit` and `new_private_client`. In deposit function, we check whether the user is a private client and `is_vacant` is false, meaning the record has not expired. 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 | oracle | false | false | ## Medium: During oracle provider switch, if previous provider feed stops working completely, oracle and market will be stuck with user funds locked in the contract
### Description
Source: https://github.com/sherlock-audit/2023-09-perennial-judging/issues/10
## Found by
panprog
The [issue 46 of the main contest](h... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | logic | false | false | ## High: Logic error in `burnFlashGovernanceAsset` can cause locked assets to be stolen
### Description
_Submitted by shw_
A logic error in the `burnFlashGovernanceAsset` function that resets a user's `pendingFlashDecision` allows that user to steal other user's assets locked in future flash governance decisions. 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 | medium | other | false | false | ## Medium: Slashing fails if claims revert
### Description
Slashing claims yields for the slashed account as part of the process. Should claims revert, slashing attempts will revert too.
### Impact
Failing claims brick the slashing functionality until the erroneous plugin(s) are removed. During which, the slashed 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 | high | access-control | false | false | ## High: Missing Access Control in Policy termination blueprint
### Description
The functions `forecloseLite`, `forecloseBeforeExpiration`, and `reclaimOrForecloseAfterExpiration` in the `PolicyTerminationBlueprint` contract lack any form of access control protection. Without proper access control, any entity can call... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | false | false | ## Low: Style Consistency on Arithmetic Operator
### Description
**Update**
The team updated the solidity version to 0.8.15. Thus, the recommended `SafeMath` style is no longer preferred as it is unnecessary to use `SafeMath` after solidity 0.8.
**File(s) affected:**`libs/LibCheckpoint.sol`, `libs/LibCollateral.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 | low | access-control | false | false | ## Low: Users Can Join DAOs Using Removed Currencies Due To Missing Validation
### Description
**Lines of Code:**\
\
\
\
**Summary:**
The lack of check in the `joinDAO` function can allow users to interact with a token that is not \`*whiteListed\`*. When the `Admin_Role` calls the `removeCurrency` function in the `C... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Transfer of ETH may unexpectedly fail
### Description
The [`withdraw` function](https://github.com/UMAprotocol/protocol/blob/9d403ddb5f2f07194daefe7da51e0e0a6306f2c4/core/contracts/common/implementation/Withdrawable.sol#L20) of the `Withdrawable` contract allows authorized callers to withdraw any amount of ETH... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `update_period(..)` leads to wrong calculation in weekly emissions breaking accounting for the protocol
### Description
The `update_period(..)` function does the calculation and distribution of voter weekly and `_teamEmissions` of FLOW. However, the `_teamEmissions` calculations is over estimated making 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: Enable DNSSEC
### Description
The website’s DNS records are not signed with the Domain Name System Security Extensions (DNSSEC) protocol, which leaves end users vulnerable to attacks that manipulate the translation of the original domain name to rogue internet addresses, such as DNS cache poisoning and DNS spo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential DoS in _distributeExcessIdleSafe
### Description
## Security Report
## Severity
**Medium Risk**
## Context
- `HyperdriveLP.sol#L527-L532`
- `LPMath.sol#L759-L761`
- `YieldSpaceMath.sol#L508`
## Description/Recommendation
- **HyperdriveLP.sol#L527-L532**:
Use the safe version of `LPMath.calc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Ineffective Whitelist
### Description
_Submitted by cmichel_
[LensHub.sol#L146](https://github.com/code-423n4/2022-02-aave-lens/blob/aaf6c116345f3647e11a35010f28e3b90e7b4862/contracts/core/LensHub.sol#L146)
Creating profiles through `LensHub.createProfile` requires the caller to be whitelisted.
However,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | logic | true | false | ## High: Formulaic Error Rounds Down Causing Total Loss Of Funds For Bid Takers During Abort
### Description
A critical vulnerability exists in the `abortBidTaker()` function where an incorrect calculation leads to rounding errors, potentially causing
takers to lose all their deposited funds during bid abortion.
### ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | access-control | false | false | ## Gas: [11] Functions guaranteed to revert when called by normal users can be marked payable
### Description
### Proof of concept
*There are 6 instances of this issue.*
### Mitigation
If a function `modifier` or `require` such as `onlyOwner/onlyX` is used, the function will revert if a normal user tries to pay 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: AdvancedOrder.numerator and AdvancedOrder.denominator are unchecked for orders of CONTRACT order type
### Description
For most advanced order types, we have the following check:
```solidity
// Read numerator and denominator from memory and place on the stack.
uint256 numerator = uint256(advancedOrder.numer... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lacking `msg.data` length check
### Description
In ZKPay, the merchant oracles will finish the query via `fulfillQuery` and get the related fees. The fees will include the query resolve fee from `getPayoutAddressAndFee` and the related transaction's gas fee.
The gas calculation is based on this caluclation `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 | high | overflow | true | false | ## High: Multiple issues from unnecessary balance increase calculation in DebtToken.mint
### Description
When DebtToken is minted, it checks user's accrued debt interest from previous loan and increases mint amount by accrued debt.
However, this calculation is not necessary because accrued debt is already reflected 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: Unnecessary library for user types
### Description
Unnecessary library for user types:
https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/libraries/data/Types.sol
### Recommendation
We recommend moving each struct to contract where it uses. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Quick buy and sell allows vote manipulation
### Description
Computable relies on a voting system that allows anyone to vote with any weight at the last minute. As a result, anyone with a large fund can manipulate the vote. Computable’s voting mechanism relies on staking. There is no incentive for users to sta... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: repay(), liquidate() and liquidateWLp() receive shares as argument, which may revert if from approval to tx settled blocks have passed
### Description
`repay()`, `liquidate()` and `liquidateWLp()` transactions revert if users approve the exact repay amount they need in the frontend and only after some block... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Code Maturity
### Description
## Code Review Summary
1. **Event Emission in Administrative Tasks**
- The absence of emitted events in administrative tasks such as modifying swap fee, public swap, controller, or freeze state variables in setters and during the minting of shares in `token_utility`, within `mi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Keccak Constant values should used to immutable rather than constant
### Description
There is a difference between constant variables and immutable variables, and they should each be used in their appropriate contexts.
While it doesn't save any gas because the compiler knows that developers often make this mi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | false | false | ## High: Incorrect fee growth initialisation causes incorrect reward distribution
### Description
Severity: High Risk
Context: PoolUpdates.sol#L74-L92
Description: The initialisation of the rewardGrowthOutside of a tick differs from Uniswap 's. It is set to
maintain the following invariant:
for all ticks: if (tick > 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 | high | token | true | false | ## High: Tokens will get locked forever after pausing the contract.
### Description
**Severity**: Critical
**Status**: Resolved
**Description**
The `PausableToken` smart contract is an ERC20 token defined as `Pausable`. The token implements `pause()` and `unpause()` functions to define if the contract is paused 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 | cross-chain | false | false | ## Low: Missing Input Validation
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `e307470dcf6915c3377f3d0d2389a122405e5a2a`, `ac97fb6918c14431403beacc534ebcf4f3426e61`. The client provided the following explanation:
> Added recommended validations. However, baseFee, serviceFee, minimum and m... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | true | false | ## Low: [05] Liquidators can bypass `supplyCap` and `isFrozen` checks
### Description
In [`BVault.sol#depositERC20()`](https://github.com/code-423n4/2024-07-benddao/blob/main/src/libraries/logic/ValidateLogic.sol#L87-L95) it checks:
1. `if (assetData.supplyCap != 0)`
2. `require(!assetData.isFrozen, Errors.ASSET_IS_... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: `clearLoop()` can OOG because of the nested loop over empires and planets
### Description
Function `clearLoop()` loops through empires and planets and deletes their records:
```solidity
for (uint8 i = 1; i <= empireCount; i++) {
EEmpire empire = EEmpire(i);
for (uint256 j = 0; j < planets.length; j++... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | true | ## Low: Malicious referrer can selectively block users from selling shares
### Description
When selling shares, the contract sends a 1% referral fee directly to the referrer's address via `call`. If this transfer fails, the entire transaction reverts:
```solidity
function _sellSharesUnits(
uint256 playerId,
uin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Contracts use infinite approvals with no means to revoke
### Description
Infinite approvals on external contracts can be dangerous if the target becomes compromised. See [here](https://revoke.cash/exploits) for a list of approval exploits. The following contracts are vulnerable to such attacks since they have... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 of / operator can cause unexplained reverts
### Description
In the [`UniswapV2Library` library](https://github.com/AuctusProject/aco/blob/36bcab024c9781d799381f8f973e99fd5b0f4d2d/smart-contracts/contracts/libs/UniswapV2Library.sol) the `/` operator is used. If a division by `0` occurs, the transaction 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 | initialization | false | false | ## Medium: Admin Can Break All Functionality Through Weth Address
### Description
_Submitted by defsec_
On the protocol, almost all functionality is constructed through WETH address. However, if the admin is set to WETH address mistakenly, user could not claim through [Comptroller.sol#L1381](https://github.com/Plex-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 | initialization | true | false | ## Low: NatSpec is missing
### Description
**Description:**
NatSpec is missing for the following functions , constructor and modifier: | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: `BORG_SAFE` rights extension
### Description
The `BORG_SAFE` address as a caller should be also allowed in `createDirectGrant()`, `createBasicGrant()` and `createAdvancedGrant()` if `requireBorgVote` is false.
https://github.com/MetaLex-Tech/borg-core/blob/9074503d37cfa1d777ef16f6c88b84c98b4f54eb/src/implants/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TRST-M-10 MozBridge underestimates gas for sending of Moz messages
### Description
**Description:**
The bridge calculates LayerZero fees for sending Mozaic messages using the function below:
The issue is that the actual payload used for Mozaic messages is longer than the one calculated
above. For example,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Event Withdrawn is emitted using the wrong amounts of supplyBalanceInOf
### Description
Inside the `_withdraw` function, all changes performed to `supplyBalanceInOf` are done using the `_supplier` address. The `_receiver` is correctly used only to transfer the underlying token via `underlyingToken.safeTransfer... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: State variables should be cached in stack variables rather than re-reading them from storage
### Description
The instances below point to the second+ access of a state variable within a function. Caching of a state variable replaces each Gwarmaccess (**100 gas**) with a much cheaper stack read. Other less obvi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: | Unclear Naming
### Description
**Description**
`hasCollateralInEth` is used in many different ways throughout the codebase, it should have a more adaptable/explicit name.
**Recommendation**
Rename `hasCollateralInEth` or assign specific names to use-cases such as deposits and withdrawals.
**Resolution**
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Input Validation on `paymasterAndData` Field for `mode = 0`
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `d3c891ee73fb4c6a4f456b83d2e414a4142092ca`.
**File(s) affected:**`ERC20PaymasterV06.sol`, `ERC20PaymasterV07.sol`
**Description:** In the validation of the case `mode ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Role Transfer Not Following Two-Step Pattern
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> We will opt for Ownable for the time being for consistency across codebases.
**File(s) affected:**`HashRegistry.sol`
**Description:** The owner 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 | low | other | true | false | ## Low: Users with Negligible TST Holdings Might Not Receive Their Share of EUROs Fees
### Description
The fee distribution mechanism in the provided Solidity contract may result in perceived unfairness, especially for users with negligible TST holdings. The distribution is proportional to users' TST holdings relative... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: NO NEED TO INITIALIZE VARIABLES WITH DEFAULT VALUES
### Description
Initialization to 0 or false is not necessary, as these are the default values in Solidity.
* **Code Location**
```
File: core/Governance/TemporalGovernor.sol
60: for (uint256 i = 0; i < _trustedSenders.length; i++) {
103: for (uint256 i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | false | false | ## Medium: Users can stake for more than 52 weeks Severity: Medium
### Description
**Description:**
Docs says the user can stake from 1 to 52 weeks but this value is different from what is implemented. In initialize function is possible to set the rewardPeriods to any value, there isn't a max cap, and setting it 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 | medium | front-running | true | false | ## Medium: Adversary can grief kicker by frontrunning kickAuction call with a large amount of loan
### Description
Average debt size of the pool is used to calculated MOMP (Most optimistic matching price), which is used to derive NP (neutral price). Higher average debt size will result in lower MOMP and hence lower N... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | false | false | ## Low: Ingored Bounced Messages Could Lead to Loss of Funds
### Description
**Update**
The client fixed the issue in commit `c593e3c45da5439cd7e5474510ed503fee5c68c6` and provided the following explanation:
> Since all of these messages are already properly validated before being sent and are not expected to bounce,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Duplicate variables
### Description
The FantiumMinterV1 variables `fantiumNFTContract` and `fantiumNFTContractAddress` duplicate each other.
### Recommendation
It is recommended to remove either `fantiumNFTContract` or `fantiumNFTContractAddress` to save gas. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Duplicate IERC20 import in `DIAExternalStaking`
### Description
The `DIAExternalStaking` contract contains a redundant import statement: `import {IERC20} from "@openzeppelin/contracts/interfaces/IERC20.sol";`. This import is unnecessary if `IERC20` is already imported from another OpenZeppelin location 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 | medium | storage | false | false | ## Medium: Unvalidated ProposerIndex in BeaconBlock
### Description
During the `ProcessProposal()` period in cometBFT, validators currently do not explicitly check to ensure that the `ProposerIndex` in the proposed `BeaconBlock` is the correct index for the proposer chosen by cometBFT.
Down the line, the `ProposerIn... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: There can only ever be one market with USDT as the underlying
### Description
There can only ever be one market with USDT as the underlying
### Impact
_Smart contract unable to operate due to lack of token funds_
No USDT markets except for the first one will be able to be created. An admin can work around... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent order of `name` and `symbol` arguments in creation functions
### Description
The order of the `name` and `symbol` arguments in the creation functions of the `VibeFactory` contract (`createERC721` https://github.com/vibexyz/vibe-contract/blob/d08057edbaf83b00d94dcaca2a05e3c44a45e4d9/contracts/VibeF... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Different accumulation of debt will break the sorting of Troves
### Description
When a Trove is opened within a TroveManager, it is inserted into `SortedTroves`, a contract designed to keep Troves sorted by NICR (Nominal Individual Collateral Ratio). This sorting invariant is crucial for key operations such... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | token | true | false | ## Low: Use existing `available` function in `BeefyVaultConcLiq::balances`
### Description
`BeefyVaultConcLiq` has an `available` function that [returns](https://github.com/beefyfinance/experiments/blob/14a313b76888581b05d42b6f7b6097c79f3e65c6/contracts/protocol/concliq/vault/BeefyVaultConcLiq.sol#L91-L94) the token b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Redundant return value
### Description
`processBuy` function in [line 126](https://github.com/erkmos/moeda/blob/b2bf23119d563e251b6f16b29b642bac43e76a64/contracts/Crowdsale.sol#L126) is declared to return a boolean but never returns `false`. Instead, it always throws in case of error. Consider sticking to 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 | low | other | false | false | ## Low: authority can be declared external
### Description
The authority function in `AuthNoOwner.sol` is currently marked as public. However, it is not accessed internally, which means it can safely be marked as external.
### Recommendation
Consider changing the visibility of the authority function from public to ex... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Open-term loan manager functions missing isLoan validation
### Description
The following open-term loan manager functions do not validate their `loan_` argument using the `isLoan` modifier:
- `proposeNewTerms`
- `rejectNewTerms`
- `callPrincipal`
- `removeCall`
This allows the pool delegate to forward a call ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | front-running | false | false | ## High: Users can get front-run and as a consequence pay more funds than expected
### Description
**Severity**: High
**Status**: Resolved
**Description**
There are certain defined thresholds of sold vaults that increase the vault’s price. When a user submits a transaction for buying x amount of vaults, he can get... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `BalancedVault` doesn't consider potential break in one of the markets
### Description
In case of critical failure of any of the underlying markets, making it permanently impossible to close position and withdraw collateral all funds deposited to balanced Vault will be lost, including funds deposited to oth... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | false | false | ## Medium: SafeERC20 should be used.
### Description
**Description**
Transferring of BASE and XGBT token is performed with regular transfer() and transferFrom() methods from the OpenZeppeling IERCO interface. Though, in general, the ERCO token may have not return value for these methods (see USDT implementation) and ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Inaccurate reward calculation in `ExternalBribe` contract
### Description
The reward calculation in the `ExternalBribe` contract uses the supply at the end of the previous epoch while relying on the last recorded user balance from that epoch. This discrepancy can lead to inaccurate reward distributions, allowi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Capturing the award balance may fail
### Description
The [`captureAwardBalance` function](https://github.com/pooltogether/pooltogether-pool-contracts/blob/5a9381340a7cef139c77e44c5ad5c2a5d6e12e36/contracts/prize-pool/PrizePool.sol#L461) of the `PrizePool` contract relies on the [underlying asset balance](ht... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | false | true | Source: https://github.com/sherlock-audit/2023-02-carapace-judging/issues/151
## Found by
Allarious
## Summary
If a lending pool is added to a protection pool, the `defaultStateManager` sets the `currentState` to late without setting the late timestamp. This can enable anyone in the network to be able to call the `... | Sherlock | 4 | Carapace |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Signer Check On Accounts
### Description
The vulnerability pertains to the management of multi-signature accounts when constructing withdrawal instructions for withheld tokens within the confidential transfer fee extension in both `withdraw_withheld_tokens_from_mint` and `withdraw_withheld_tokens_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... | cyfrin_structured | low | other | true | false | ## Low: <a name="NC-1"></a>[NC-1] Missing checks for `address(0)` when assigning values to address state variables | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | true | false | ## Low: Misleading token addresses
### Description
The function `claimAsset()` deploys `TokenWrapped` contracts via `create2` and `salt`. This `salt` is based on the `originTokenAddress`. By crafting specific `originTokenAddresses`, it’s possible to create vanity addresses on the other chain. These addresses could be ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Arranger has full control over deposited funds
### Description
The ArrangerConduit contains a special role called **arranger** which acts like a fund manager. This role can draw funds by calling `drawFunds` and then mark them as returned by calling the `returnFunds` function.
### Recommendation
Our recommenda... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 release() and withdraw() unvested tokens events
### Description
Important functions should emit an event, but the `release()` and `withdrawUnvestedTokens()` functions are missing the event emission. Currently, there is an event for transferring tokens to the beneficiary/bene-factor, but there is nothin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The owner has too many permissions
### Description
**Description**
According to the contract code, there is an ability to execute claim functions by the owner that
allows them to spend tokens from any allocation group. Such functionality is not required by
documentation.
**Recommendation**:
Discard the cond... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Dust Funds Can Be Locked in the Stargate Strategy
### Description
**Update**
**Quantstamp:** The Sperax team introduced `recoverERC20()` function to recover remaining tokens from the the strategy. **This function allows the owner to withdraw all ERC-20 tokens from all strategy contracts at any time**
**Updat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | false | false | ## Medium: DOS through sandwich attack on ceilingPrice
### Description
**Severity**: Medium
**Status**: Unresolved
**Description**
In contract PaymentProcessor.sol, function setTokenPricingBounds is used to set floorPrice and ceilingPrice for certain tokenIds, there is only one sanity check at line #571 that will r... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Missing Tests
### Description
The upgrade to the new version of `keccak256` lacks several tests that could significantly enhance the quality of the codebase. Consider adding the following tests to ensure the correctness of the upgrade process:
* A test for the upgrade process using the new version of `keccak... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | true | false | ## Medium: StrategyManager functions are not `payable`
### Description
Users can use StrategyManager to perform their strategies in one transaction and the code allows sending ETH for the transactions:
```solidity
function executeCall(address target, uint256 value, bytes memory data, bool allowRevert) public onlyOw... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use of deprecated Chainlink API
### Description
_Submitted by 0xRajeev, also found by a_delamo, cmichel and shw_
The contracts use Chainlink’s deprecated API `latestAnswer()`. Such functions might suddenly stop working if Chainlink stopped supporting deprecated APIs.
The impact is that, if the deprecated ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Validation | true | false | ## Security Issue Report
**Severity:** Medium Risk
**Context:**
- BridgeFacet.sol#L395-L414
- BridgeFacet.sol#L563-L567
- BridgeFacet.sol#L337-L369
**Description:**
A delegate address on the destination chain can be used to fix stuck transactions by changing the slippage limits and by re-executing transactio... | Spearbit | 5 | Connext |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | false | false | ## Low: [02] Make `repay()` and liquidations available in the same scenario
### Description
The current logic of the `CDPVault`, allows [for the pausing of liquidations](https://github.com/code-423n4/2024-07-loopfi/blob/57871f64bdea450c1f04c9a53dc1a78223719164/src/CDPVault.sol#L509), but not of repayments of debt.
No... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Calls to Oracles don't check for stale prices
### Description
Calls to Oracles don't check for stale prices.
### Impact
Oracle price feeds can become stale due to a variety of [reasons](https://ethereum.stackexchange.com/questions/133242/how-future-resilient-is-a-chainlink-price-feed/133843#133843). Using ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | false | false | ## Low: Code Refactoring
### Description
## Code Review
## Write Functions in utils.h
The `write_*` functions in `utils.h` are used to write given data to a given `data_ptr` and increment the `data_ptr` by the size of the data written to it. However, the `data` parameter passed into them is not used anywhere in 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 | high | other | true | false | ## High: You can deposit and withdraw simultaneously in the same block to manipulate exchangerate
### Description
In the `depositFor` and `withdraw` functions, the user's operations will be restricted so that the user cannot perform deposit and withdraw operations in the same block.
```solidity
if (lastTransactionBlo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | upgrade | true | true | ## Medium: Curators will lose reward for an epoch if they lose ownership of vault after epoch but before distribution
### Description
The `Rewards` contract calculates and assigns curator shares for each epoch by calling `VaultTokenized(vault).owner()` to determine the curator (vault owner) who should receive rewards.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | storage | true | false | ## Gas: Tightly pack storage variables/optimize the order of variable declaration
### Description
The EVM works with 32 byte words. Variables less than 32 bytes can be declared next to eachother in storage and this will pack the values together into a single 32 byte storage slot (if the values combined are
### We ca... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: PositionMath contains outdated compiler version
### Description
Using an outdated compiler version can be problematic especially if there are publicly disclosed bugs and issues that affect the current compiler version. It is recommended to use a recent version of the Solidity compiler.
Instance:
**[kyscott1... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: CacheManager bids cannot be increased
### Description
Bids in the cache manager placed on a particular code hash cannot be modified and do not accumulate. When a bid is placed, the CacheManager Solidity contract checks whether the code hash is currently cached and reverts the bid if so.
```solidity
/// Places... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.