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: Function never called
### Description
**Severity**: Low
**Status**: Resolved
**Description**
HordETHStakingManager.sol, _launchNAwValidator()
Function is never called, and it seems to be an internal clone of the launchValidator()
function.
**Recommendation:**
Delete the unused function or finalize thA 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 | medium | overflow | false | false | ## Medium: Reward tokens can never be added again once they are removed without breaking rewards completely
### Description
Once reward tokens are removed they can never be added back to the contract. The happens because accumulated rewards are tracked differently globally vs individually. Global accumulated rewards a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: Missing docstrings
### Description
All functions in the [`UniswapConfig` contract](https://github.com/compound-finance/open-oracle/blob/d0a0d0301bff08457d9dfc5861080d3124d079cd/contracts/Uniswap/UniswapConfig.sol) lack documentation. This hinders reviewers’ understanding of the code’s intention, which is funda... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: H03] Outdated ERC820
### Description
###### High
Component: [`policy`](https://github.com/BeamNetwork/currency/tree/af3428020545e3f3ae2f3567b94e1fbc5e5bdb4c/contracts/policy)
In [line 59 of `Policy.sol`](https://github.com/BeamNetwork/policed-contracts/blob/f9299f43e2bf3629bee2f82bf637918ac9221d62/contrac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Single step ownership transfer risks DOS for privileged functions
### Description
The `EpochManager` contracts inherit from OpenZeppelin's `OwnableUpgradeable` contract and allows for single-step ownership transfer via the `transferOwnership()` function. In this aspect, it is crucial that the address to which ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | false | false | ## Low: Use `immutable` for storage slots only set once in the constructor of non-upgradeable contracts
### Description
Use `immutable` for storage slots only set once in the constructor:
* `MTokenMessager::ccipClient`
* `MTokenMessagerBase::ccipClient` | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Using `camelCase` style for variables
### Description
Variable naming can be updated:
- https://github.com/EnsoFinance/enso-weiroll/tree/9289118113f753d460a97d7c6ee72577e5c3f5eb/contracts/VM.sol#L43 `outdata` by `outData`
- https://github.com/EnsoFinance/enso-weiroll/tree/9289118113f753d460a97d7c6ee72577e5c3f5... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The Deleverage Will apply twice on market USDtoken minting
### Description
When the `_fillOrder` is called we check that if the old position of user has some PNL , than we check that adjust profit and tries to find if any deleverage could be applied otherwise the PNL value will be provided `withdrawUsdTokenFr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A high value of _defaultIterations could make the withdrawal and repay operations revert because of OOG
### Description
When the user executes some actions, they can specify their own `maxIterations` parameter. The user `maxIterations` parameter is directly used in `supplyLogic` and `borrowLogic`.
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 | dos | true | false | ## High: The formula used in ````SafeCall.callWithMinGas()```` is wrong
### Description
The formula used in ````SafeCall.callWithMinGas()```` is not fully complying with EIP-150 and EIP-2929, the actual gas received by the sub-contract can be less than the required ````_minGas````. Withdrawal transactions can be final... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Frontrunning in UniswapHandler calls to UniswapV2Router
### Description
_Submitted by thank_you, also found by 0x0x0x, cmichel, defsec, harleythedog, hyh, Koustre, leastwood, Meta0xNull, pauliax, pmerkleplant, tabish, WatchPug, and xYrYuYx_
UniswapHandler utilizes UniswapV2Router to swap, add liquidity, a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | false | ## Medium: AutoCompoundingPodLP does not use correct oracle price as slippage for pairedLpTKn -> pTKN swap.
### Description
AutoCompoundingPodLP does not use correct oracle price as slippage for pairedLpTKn -> pTKN swap.
### Impact
Oracle for pairedLpTKN -> pTKN swap slippage is incorrect. The slippage result is unde... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: It is safer to change the
### Description
[L-02] It is safer to change the owner address with the safeSetOwner pattern
maverick-v1/contracts/models/Factory.sol:
39
40: function setOwner(address _owner) external {
41: require(msg.sender == owner && _owner != address(0), "Factory:NOT_ALLOWED");... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Function is not restricted.
### Description
**Description**
FNDZController.sol: createNewFund().
FundDeployer.sol: createMigratedFundConfig(), cancelMigration(),
cancelMigrationEmergency(), executeMigration(),
executeMigrationEmergency().
**Recommendation**:
Verify that functions should not be restricted. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | true | false | ## Low: Frequent `updateElyAssetPrice` calls bypass fee due to rounding
### Description
_Resolved_
The `updateElyAssetPrice()` function in the `ElytraDepositPoolV1` contract calculates the protocol fee based on the increase in asset value. This fee is first computed in HYPE, then converted into elyAsset tokens to 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 | high | overflow | true | false | ## High: Missing division leads to massively deflated stored product
### Description
**Severity**
**Impact:** High
**Likelihood:** High
**Description**
During a swap, the product of the virtual balances needs to be adjusted for the fee. This is done in the following line. (Line 286)
This expression is incorrect.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Cache amount and use Solady `SafeTransferLib::safeTransferETH` when refunding excess fee
### Description
**Description:** In `MTokenMessager::sendDataToChain` and `MTokenMessagerV2::sendDataToChain`, cache the amount and [use Solady](https://github.com/devdacian/solidity-gas-optimization?tab=readme-ov-file#10-... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `@TODO` flag in Utils library
### Description
A `TODO` flag is present in the Utils library.
https://github.com/eywa-protocol/eywa-clp/blob/d68ba027ff19e927d64de123b2b02f15a43f8214/contracts/utils/Utils.sol#L257
### Recommendation
We recommend removing `TODO` and completing the comments to the `compressMCPub... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | false | false | ## Low: Avoid _shadowing_ `inherited state variables`
### Description
In `GraphProxy.sol#L140`, there is a local variable named `_pendingImplementation`, but there is a function named `_pendingImplementation()` in the inherited ``` GraphProxyStorage``` with the same name. This use causes compilers to issue warnings, 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 | access-control | true | false | ## Low: Incomplete Authority Check for Setting Vault Fees in BaseFeeCalculator
### Description
The `BaseFeeCalculator` contract's `setVaultFees` function currently checks that the caller is the owner of the vault by verifying:
```solidity
if (msg.sender != ISingleDepositorVault(vault).owner()) revert FeeCalculator__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 | medium | oracle | true | false | ## Medium: Use of Deprecated Chainlink's latestAnswer() Function
### Description
In the contracts `AssetAdapter` and `PegStabilityModule`, the deprecated `latestAnswer()` function is used to retrieve prices from Chainlink:
```
function _underlyingPriceOracleLatestAnswer()
private
view
returns (uint256)
{
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 | reentrancy | true | false | ## Medium: AbstractRewardMine - Re-entrancy attack during withdrawal
### Description
_Submitted by ScopeLift_
The internal `_withdraw` method does not follow the checks-effects-interactions pattern. A malicious token, or one that implemented transfer hooks, could re-enter the public calling function (such as `withdr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Slippage | true | false | ## Severity: Medium Risk
## Context
BridgeFacet.sol#L741-L746
## Description
If `BridgeFacet.execute()` is executed before `BridgeFacet.forceUpdateSlippage()`, the user won't be able to update slippage on the destination chain. In this case, the slippage specified on the source chain is used. Due to different conditi... | 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 | other | false | false | ## Low: Owner Can Set `commission` to Be over `100%`
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `d44be2d`. The commission is no longer a percentage of the ETH being swapped but is now calculated off-chain as an absolute value.
**File(s) affected:**`ReachFactory.sol`, `ReachAffiliateDist... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: OracleRouter Not Utilizing Pyth Confidence Interval
### Description
The OracleRouter [reads data from Pyth](https://github.com/radiant-capital/riz/blob/65ca7bb55550d30388e2b2277fefe5686ab7e4e8/src/OracleRouter.sol#L166) without incorporating the [confidence interval](https://github.com/radiant-capital/riz/blob... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Rewards allocated during periods of no stakers will be locked in the contract
### Description
A known limitation of this type of staking contract is that rewards are allocated per period. If there are no stakers during a given period (i.e., totalSupply of stTEA is 0), the pre-allocated rewards for that period ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | access-control | true | false | ## High: Lack of two-step process for contract ownership changes
### Description
The owner of the `IncentivesVault` contract and other Ownable Morpho contracts can be changed by calling the `transferOwnership` function. This function internally calls the `_transferOwnership` function, which immediately sets the contra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [08] Unused field
### Description
[`Vesting::UserData`](https://github.com/Tapioca-DAO/tap-token/blob/20a83b1d2d5577653610a6c3879dff9df4968345/contracts/tokens/Vesting.sol#L47-L52):
The field `revoked` in `UserData` is not used, consider removing it. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | flash-loan | true | false | ## Low: Consider reverting the flashloan operation if the returned amount of is not exactly the original balance
### Description
## Severity: Low Risk
**Context:** Borrowing.sol#L176
**Description:** The current flashloan logic will revert if the new EVault balance is lower compared to the one snapshotted before 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 | other | false | false | ## Medium: Balance not checked
### Description
Balance of `creditAccount` is not checked:
https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/adapters/YearnV2.sol#L83
### Recommendation
We recommend adding a check that `balanceBefore > 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 | high | other | true | false | ## High: Maliciously cra�ted catchup package shares could cause memory resource exhaustion
### Description
The purger deletes old artifacts from the consensus pool. By sending two malicious catchup package (CUP) shares, it is possible to cause the purger to ignore all artifacts in the unvalidated pool, exhausting the ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | true | false | ## Low: OracleManager does not check for oracle stale values
### Description
`OracleManager.generatePerformance()` gets all data from oracles but it does not check if oracle data is stale based on block number, timestamp or any other method:
Record Oracle data timestamp and ignore stale oracle data in `generatePerfo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Sequencer upgrades overriding allows the old sequencer to operate for a while
### Description
There is a single place to store a sequencer upgrade. If the sequencer upgrade is not yet activated and another one is read, then the previous setting is overridden. There is one caveat. Assume we have an old sequence... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Medium: Fee Distribution Re-Entrancy
### Description
The `distribute` function of `NFTXFeeDistributor` has no access control and will invoke a fallback on the fee receivers, meaning that a fee receiver can re-enter via this function to acquire their allocation repeatedly potentially draining the full balance and se... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Loop Optimization in `getSqrtRatioAtTick`
### Description
[Math.sol](https://github.com/code-423n4/2023-11-panoptic/blob/main/contracts/libraries/Math.sol#L38)
The original code in `getSqrtRatioAtTick` contains repetitive `if` statements for each bit position. This can be optimized using a loop.
### Origina... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Counterparty balance can be drained if excess allowance is given
### Description
It is expected that the allowance given will only be the requested swap amount. However, should excess allowance be given either by the service or counterparty, then the excess allowance can be spent by anyone.
### Recommendation... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Receive function accepts ETH from more sources than strictly necessary
### Description
The `receive()` function is only needed to receive ETH from the WETH contract during withdrawals. It does, however, allow any contract or EOA (Externally Owned Account) to send ETH to it, which leaves the funds stuck 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 | low | other | false | false | ## Low: AP 's offer cannot be filled if the remaining ratio is lower than a certain percentage
### Description
Severity: Low Risk
Context: RecipeKernel.sol#L411
Description: The minimum fill percentage check prevents a griefing attack where a malicious IP can fill an
AP's offer multiple times with small amounts, causing A... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | false | ## High: `Boost.setLockStatus()` should update the caller's rewards first.
### Description
**Severity:** High
**Context:** [`Boost.sol#L35-50`](https://github.com/getmetafinance/meta/blob/00bbac1613fa69e4c180ff53515451df4df9f69e/contracts/reward/Boost.sol#L35-50)
**Description:**
In the rewards contracts(`StakeRewar... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Execution of a proposal with a blacklisted selector
### Description
Users are prohibited from creating proposals with blacklisted selectors in the ProposalManager contract.
https://gitlab.ubertech.dev/blockchainlaboratory/eywa-dao/blob/29465033f28c8d3f09cbc6722e08e44f443bd3b2/contracts/ProposalManager.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: setPriceFeed should be managed by DEFAULT_ADMIN_ROLE
### Description
Severity: Low Risk
Context: VaultAdmin.sol#L164
Description: There are two administrative roles in the Honey system:
• DEFAULT_ADMIN_ROLE responsible for upgrades, vault creation, and fee address management.
• MANAGER_ROLE setting bad asset s... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | false | false | ## High: Liquidated USDO from BigBang not being burned after liquidation inflates USDO supply and can threaten peg permanently
### Description
Absence of proper USDO burn after liquidation in the BigBang market results in a redundant amount of USDO being minted without any collateral or backing. Thus, the overcollater... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Event Emission in StakingVault's penalizeUser
### Description
In the `penalizeUser` function of the StakingVault contract, there's an inconsistency in the event emission logic. The `notifyPenalizedBoost` event is emitted regardless of whether a penalty is actually applied.
`- src/StakingVault... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Possible excess of gas limit
### Description
In following function it is worth to add check of how much gas left.
https://github.com/CreamFi/compound-protocol/blob/23a4ae93adc70334553f5a83429a4e967c1eefaa/contracts/Comptroller.sol#L1266
### Recommendation
We recommend add following check in head of `for` l... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | true | false | _Submitted by cmichel_
The `LendingPair.accrueAccount` function distributes rewards **before** updating the cumulative supply / borrow indexes as well as the index + balance for the user (by minting supply tokens / debt).
This means the percentage of the user's balance to the total is not correct as the total can be u... | Code4rena | 5 | Wild Credit |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [41] Unused local variables
### Description
The following local variables are not used. It is recommended to check the code for logical omissions that cause them not to be used. If it's determined that they are not needed anywhere, it's best to remove them from the codebase to improve code clarity and minimize... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Anyone can deploy a console with the same set of parameters but with a different _policyCommit
### Description
Anyone can set the first `_policyCommit` for a console by deploying it first with the desired parameters as what the original owners of the safe want. This is due to the fact that the `PolicyRegistry`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect check for cRation_MAX
### Description
The current implementation of the check stops the user for increasing the collateral with the exact max amount. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Reading the array length from storage costs more gas
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
In the liquidatePosition() function of the Escrow contract, liquidablePositions.length is read at every literal.
**Recommendation**:
Cache the liquidablePositions.length w... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Pragma version lock
### Description
**Description**
It's recommended to have the same compiler version that the contracts were tested with the most. This way it reduces the risk of introducing unknown bugs. There are also different versions used throughout the project, for example ^0.8.0 in LzApp.sol and ^0.8... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: An unnecessary arithmetic operation
### Description
There is an issue at line https://github.com/curvefi/stableswap-ng/blob/8c78731ed43c22e6bcdcb5d39b0a7d02f8cb0386/contracts/main/LiquidityGauge.vy#L254. There is no need to divide and then multiply the `prev_week_time` value by `WEEK` as it is done inside the ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Collected protocol fees may count against user’s currency deltas
### Description
Uniswap v4’s protocol-level fee collection operates outside of the currencyDelta model used by the rest of the protocol. This creates an opportunity for erroneous settle calculations if protocol fee collection is performed after s... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | true | false | ## Medium: Collateral can still be allocated to PartyA when the system is paused by exploiting the new internal transfer function
### Description
Collateral can still be allocated to PartyA when the system is paused by exploiting the new internal transfer function.
### Impact
When the global pause (`globalPaused`) an... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: [03] Setters should always have equality checkers
### Description
Take a look [here](https://github.com/code-423n4/2024-03-acala/blob/9c71c05cf2d9f0a2603984c50f76fc8a315d4d65/src/orml/rewards/src/lib.rs#L252-L262).
This function sets a new share value for a pool, now there are no checks that ` new_share != s... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | token | true | false | ## High: `ERC20ConvictionScore`'s `governanceDelta` should be subtracted when user is not a governor anymore
### Description
The `TOTAL_GOVERNANCE_SCORE` is supposed to track the sum of the credit scores of all governors.
In `ERC20ConvictionScore._updateConvictionScore`, when the user does not fulfill the governance ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unsafe transfer of non-standard ERC-20 tokens
### Description
**Description:** The `DistributionManager` uses the standard ERC-20 `transfer()` function instead of a safe transfer equivalent when distributing reward tokens to controllers. While the reward token (QI) is a known, trusted contract that conforms 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 | initialization | false | false | ## High: Reward Inflation and Distribution Inconsistencies due to Improper LastUpdatedBlock Initialization
### Description
The `UpdateAccPerShare` function initializes the `PoolRewardInfo` struct if it is not found in the store. However, the `LastUpdatedBlock` field is set to 0 in this case, which could lead to severa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Individual Token Amount Check
### Description
## Vulnerability in InitializeIDO
The vulnerability pertains to the initialization process of an IDO (Initial DEX Offering) in `InitializeIDO`.
In an IDO setup, `individual_minimum_amount` represents the minimum number of tokens that a participant must 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 | oracle | false | false | ## Low: stETH Deposit Recording Inaccuracies
### Description
Lido's mechanism for accounting with stETH advises using their share system due to the rebasing nature of stETH. In addition to this, currently stETH is valued equally to ETH when depositing. If future strategies add support for other LSTs, then it is advisa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `ousgInstantManager::mint`/`redeem` lacks slippage parameter
### Description
In `ousgInstantManager` you can mint either `rOUSG` or `OUSG` using `USDC` and then redeem back to `USDC`. Both of these use an oracle to track the price of `OUSG`. This price can vary between when a transaction is sent to when it is ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: Suggestion for a Time Delay for Fee Updates
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `8eec77791ff01d2735f2c62cfc1502daa2b7904f`. The fix adds a time delay contract that requires at least a 24h delay for exit fee increases.
**File(s) affected:**`contracts/tranches/Accounting.so... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | true | false | ## Medium: No Protection of Uninitialized Implementation Contracts From Attacker
### Description
In the contracts implement Openzeppelin’s UUPS model, uninitialized implementation contract can be taken over by an attacker with `initialize` function, it’s recommended to invoke the `_disableInitializers` function 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 | cross-chain | true | false | ## High: `multiHopSellCollateral()` will fail due to call on an invalid market address causing bridged collateral to be locked up
### Description
`multiHopSellCollateral()` allows users to leverage down by selling the `TOFT` collateral on another chain and then send it to host chain (Arbitrum) for repayment of USDO lo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: WITHDRAWAL_REQUEST_TIMEOUT cannot be too short
### Description
**Severity**
**Impact:** High, the protocol will stop
**Likelihood:** Low, the variable has a default value and unlikely to be revised
**Description**
`OwnershipFacet` has `setWithdrawalRequestTimeout()` which sets `WITHDRAWAL_REQUEST_TIMEOU... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | false | false | ## High: Trapped Proposer Reward
### Description
The `LongShortPair` contract [retrieves a proposer reward](https://github.com/UMAprotocol/protocol/blob/d4e7ea22159b2eed8e39d5b86ce0026ea3b8b995/packages/core/contracts/financial-templates/long-short-pair/LongShortPair.sol#L369-L372) from whichever address triggers 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: `createPromotion()` Lack of input validation for `_epochDuration` can potentially freeze promotion creator's funds
### Description
_Submitted by WatchPug_
In the current implementation of `createPromotion()`, `_epochDuration` is allowed to be `0`.
However, when `_epochDuration = 0`, it will be impossible f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Setting `bool` variables to `false` is redundant
### Description
*Note: Minor optimation, the amount of gas saved is minor, change when you see fit.*
[MasterChef.sol#L204-L204](https://github.com/code-423n4/2022-02-concur/blob/72b5216bfeaa7c52983060ebfc56e72e0aa8e3b0/contracts/MasterChef.sol#L204-L204):br
S... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Incorrect interface ID
### Description
It's unclear what the interface with such an ID (`_INTERFACE_ID_BASE_CONDITION = 0x8b94fce4`) is because the `ICondition` interface has a different interface ID: https://github.com/MetaLex-Tech/LeXscrow/blob/c3cbdb6f051dbce1bae237c20b6bc3d06a82af78/src/libs/LexscrowCondit... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | access-control | true | false | ## High: Unauthorized access to `update()` function
### Description
The `GigaNameNFTBeforeUpdateHandler` and `GigaNoobNFTBeforeUpdateHandler` handler contracts are called by the `GameNFT._update()` function when **GigaNameNFT** or **GigaNoobNFT** tokens are minted, transferred, or burnt, where these handler contracts ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Scientific notation
### Description
For readability, it is best to use scientific notation (e.g `10e5`) rather than decimal literals(`100000`) or exponentiation(`10**5`)
### Proof of Concept
Instances include:
#### InfinityExchange.sol
[uint32 public WETH_TRANSFER_GAS_UNITS = 50000](https://github.com/code... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Desync between bribes being paid and gauge distribution allows voters to receive bribes without triggering emissions
### Description
Because of the fact that `BribeVotingReward` will award bribes based on the voting power at `EPOCH_END - 1`, but `Minter.update_period()` and `Voter.distribute()` can be calle... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | signature | false | false | ## Medium: checks in Restore should be performed as soon as possible
### Description
## Medium Risk Report
**Severity:** Medium Risk
**Context:** core/vm/evm.go#L812-L834
**Description:** Gas checks should be done as soon as possible to avoid unnecessary work. There are some operations, like a signature validatio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Roles Can Be Left without Holders
### Description
**Update**
Marked as "Fixed" by the client. The issue is fixed by following the recommendation. Addressed in: `3454c4578a8d2387b04fc991a393dfb5a5d96980`.
**File(s) affected:**`contracts/access/AccessController.sol`
**Description:** The `AccessController` 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: DoS in all deposits by reaching max. cap in one of the farms
### Description
The AfterMintHook implementation could lead to a denial of service (DoS) condition, halting all deposit operations across the protocol. This issue occurs due to the behavior of the `_findOptimalDepositFarm` function, which is taske... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | false | false | ## Medium: removeValidator() and removeMinter() may fail due to exceeding gas limit
### Description
### Vulnerability Details
#### removeValidator() and removeMinter() may fail due to exceeding gas limit
for (uint256 i = 0; i
for (uint i = 0; i Technically correct, but in practice, the number of minters will... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: fee can change without the consent of users
### Description
## Lines of code
https://github.com/code-423n4/2022-06-putty/blob/3b6b844bc39e897bd0bbb69897f2deff12dc3893/contracts/src/PuttyV2.sol#L240
https://github.com/code-423n4/2022-06-putty/blob/3b6b844bc39e897bd0bbb69897f2deff12dc3893/contracts/src/Putt... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `OraclePoolOfferHandler::validateOffer` allows borrowers to game spot `aprPremium` movement to get lower apr
### Description
In OraclePoolOfferHandler.sol, `aprPremium` is partially based on current pool utilization (`totalOutstanding`/`totalAssets`).
In `OraclePoolOfferHandler::validateOffer`, `aprPremium` ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Code Refactoring
### Description
## Remove View Functions
Remove view functions, as they are not necessary on Solana.
## Remediation
Implement the above-mentioned suggestion.
## Patch
Resolved in 5339 feb.
© 2024 Otter Audits LLC. All Rights Reserved. 17/19
### Recommendation
Implement the above-mention... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Allow List Entries Can Be Added and Removed by Any State Allower
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `1854b38bbdfdc51db030e31f4b60889e98fc627b`. The client provided the following explanation:
> Great find! We appreciate the suggested test and have added it to our test su... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Oracle | true | true | ## Handle
sirhashalot
## Vulnerability details
## Impact
The comment on [line 54](https://github.com/code-423n4/2022-01-behodler/blob/cedb81273f6daf2ee39ec765eef5ba74f21b2c6e/contracts/FlanBackstop.sol#L54) of FlanBackstop.sol states "the opportunity for price manipulation through flash loans exists", and I agree ... | Code4rena | 4 | Behodler |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unbounded Loop in `_deltaSourceUpdate` Leads to Potential Denial-of-Service (Dos) Attack
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `59f96ebaa454bcdda62f975e84ec938117498941`. The client provided the following explanation:
> We modified the contract to implement a registration l... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Rounding in favour of users will cause slight inaccuracies over time
### Description
**Impact**
Liquity V2 rounds in favour of the user in a few spots
-> Total Debt
-> Reduces the average debt weight -> Charges slightly less over time
-> Batch Debt
-> Increases the total debt sum
-> Charges slightly higher ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Anyone can cancel another user's scheduled recovery
### Description
**Impact:**
High, as important protocol feature can be permanently blocked for a victim user
**Likelihood:**
High, as it has no preconditions and can be exploited by anyone
**Description**
A wallet recovery mechanism in Ambire allows a pre... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | true | false | ## Low: Inconsistent implementation for `rewardRate`
### Description
We have two different kinds of gauges according to different pools. When we notify rewards, the reward rate's calculation way is different.
In gauge, we will use `(_amount * PRECISION) / DURATION`. In CLGauge, we will use `rewardRate = amount / epoc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Token exchange blocking
### Description
There are two tokens on the balance of the contract.
The exchange of token 0 for token 1 is possible when there is token 1 on the contract balance.
You can block the exchange functionality if you constantly make a small balance of one of the tokens.
This check is on 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 | high | initialization | true | false | ## High: Misuse of AMM model on minting `Synth` (resubmit to add more detail)
### Description
_Submitted by jonah1005_
`Pool` calculates the amount to be minted based on `token_amount` and `sparta_amount` of the Pool. However, since `token_amount` in the pool would not decrease when users mint `Synth`, it's always ch... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: EXPERIMENTAL KEYWORD USAGE
### Description
**ABIEncoderV2** is enabled and using experimental features could be dangerous in live deployments. The experimental ABI encoder does not correctly handle non-integer values less than 32 bytes. This applies to bytesNN types, bool, enum and other types when they are pa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | access-control | true | false | ## High: Reducing the quantity of a policyholder results in an increase instead of a decrease in totalQuantity
### Description
In Llama, policyholders can approve or disapprove actions. Each policyholder has a quantity that represents their approval casting power. It is possible to update the quantity of an individual... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unlocked Pragma
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> The pragma is locked in the contracts we’re going to upgrade (XVSVault, VAIVault, VRTVault). Updating other contracts is out of the scope for this release.
**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 | gas | liquidation | true | false | ## Gas: Don't read `position.size` from storage after `position` has been reset in `LiquidationBranch::liquidateAccounts`
### Description
**Description:** Consider this code:
Here `position` has just been reset then in the call to `PerpMarket::checkOpenInterestLimits` for the third parameter, the value 0 will always... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `JUSDBankStorage::getTRate()`,`JUSDBankStorage::accrueRate()` are calculated differently, and the data calculation is biased, Causes the `JUSDBank` contract funciton result to be incorrect
### Description
```js
function accrueRate() public {
uint256 currentTimestamp = block.timestamp;
if (currentTimes... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Underscore function arguments
### Description
Lack consistency function arguments structure e.g underscores _
### Impact
Informational: This leads to inconsistency in code affecting code quality | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `setDebtInterestApr` should accrue debt first
### Description
_Submitted by cmichel, also found by pedroais_
[NFTVault.sol#L212](https://github.com/code-423n4/2022-04-jpegd/blob/e72861a9ccb707ced9015166fbded5c97c6991b6/contracts/vaults/NFTVault.sol#L212)
The `setDebtInterestApr` changes the debt interest ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Blast informational findings
### Description
Some informational findings regarding Blast deployment:
- The `SablierV2MerkleLockupFactory` does not inherit from `SablierV2Blast`, which is needed to be able to claim Blast's gas refunds. This is done through the `configureYieldAnGas()` function to set the Governo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: updateInterestRate uses incorrect reference of borrow interest rate to calculate deposit interest can lead to the loss of lenders unclaimed yield
### Description
Report type: Smart Contract
Target: https://testnet.snowtrace.io/address/0x96e957bF63B5361C5A2F45C97C46B8090f2745C2
Impacts:
* Permanent freezing... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The gateway owner can set a malicious swapper that could cause losses
### Description
The `setSwapper` function allows the `Gateway owner` to set any contract as the swapper, If the owner sets a malicious contract as the swapper, the malicious contract can be programmed to steal funds during the swap process:
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | rounding | false | false | ## High: Share Price Manipulation
### Description
## Vulnerability Report: Bluefin Vault
**Description:**
Bluefin Vault is vulnerable to a general class of rounding attacks against lending protocols concerning the conversion rate between tokens and shares in a lending pool. The attack involves manipulating the shar... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use nested if and, avoid multiple check combinations
### Description
Using nested is cheaper than using && multiple check combinations. There are more advantages, such as easier to read code and better coverage reports.
19 results - 9 files:
https://github.com/code-423n4/2023-01-timeswap/blob/main/packages/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | ## Low: (HAL-30) Division by Zero Not Prevented
### Description
In `SHProduct`, the `fundAccept()`, `deposit()` and `earlyWithdraw()` functions perform division operations that are susceptible to division by zero errors. This could cause transactions to revert unexpectedly. For example:
* In the `fundAccept()` 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 | medium | overflow | true | false | ## Medium: Slice bounds check can be overflowed to access unrelated data
### Description
The bounds check for slices does not account for the ability for `start + length` to overflow when the start value is not a literal. This creates the ability for an attacker to overflow the bounds check to use the `slice()` built-... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.