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 | medium | other | true | false | ## Medium: Pending withdrawal batch debt cannot be paid by the borrower until the cycle ends
### Description
The borrower will have to pay the interest and fees until the end of the withdrawal cycle.
### Proof of Concept
To repay a lender who has requested for withdrawal, the borrower is supposed to transfer the ass... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: UNCHECKED TRANSFER
### Description
In the contract `UniswapV3Integration` the return value of an external transfer call is not checked. Several tokens do not revert in case of failure and return false. If one of these tokens is used, in case of failure, the `withdraw()` call would not revert and the `Kernel` 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: Check for other VariableIrm.Config parameters missing in IrmFactory.createVariableIrm
### Description
Check for other `VariableIrm.Config` parameters missing in `IrmFactory.createVariableIrm` such as:
- **minFullUtilizationRate**
- **maxFullUtilizationRate**
### Recommendation
Make sure `minFullUtilizationRat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 amount state variable
### Description
The contract has an [`amount`](https://github.com/ChainXcom/coinfix.io-smart-contracts/blob/75edd659ce96c88fe2784f3e767d6617787e8b7c/merchant_subscription/MerchantSubscription.sol#L35) state variable, which intends to track the amount of ether received. 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 | low | other | false | false | ## Low: Revert messages are too long and costly
### Description
**Severity**: Low
**Status**: Resolved
**Description**
Error messages in some require statements are long and considered costly in terms of gas.
**Recommendation**:
Write shorter error messages
Use custom errors which is the goto choice for develope... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: inefficient implementation of a loop inget_vault_borrowing_power()
### Description
`get_vault_borrowing_power()` may loop through a large number of array elements, calling external functions on every single one, leading to significant gas costs.
`get_vault_borrowing_power()` contains a loop, starting on line ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | access-control | true | false | ## High: Unauthorized Access to proposeRemoveTransmitters Function
### Description
The `MSCProposeHelper` contract has a vulnerability in the `proposeRemoveTransmitters` function that allows unauthorized access to remove transmitters from a specified protocol on a specified chain. The function is marked as `external`,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 `TODO` in code
### Description
The `_resolveCondition` method in `CoreBase.sol` has an open `TODO`, consider fixing or deleting 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 | rounding | false | false | ## Low: PRECISION storage variable can be constant
### Description
**Severity**: Informational
**Status**: Acknowledged
**Description**
In TradingStorage contract, PRECISION variable (line#13) has been updated to be not constant while making the contract upgradeable.
Since there is no method to update the PRECISIO... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## High: Self transfer can lead to unlimited mint
### Description
_Submitted by Omik, also found by gpersoon_
The implementation of the transfer function in [`nTokenAction.sol`]( https://github.com/code-423n4/2021-08-notional/blob/main/contracts/external/actions/nTokenAction.sol) is different from the usual erc20 tok... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 decoding of method arguments results in the use of invalid values
### Description
Certain methods use the `Btoi` instruction to decode the arguments of the other transactions in their group, resulting in the use of incorrect values. Most of the protocol operations involve a group of multiple transact... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Input Validation
### Description
**Update**
Some of the recommendations have been implemented in commit `90daa9287068fbfe5768b3281be06ee7294a25ee`.
**Description:** It is important to validate inputs, even if they only come from trusted addresses, to avoid human error. Specifically, in the following f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Zero address `feeRecipient` risk
### Description
If the `feeRecipient` is unset, the `confirmMintRequest` function triggered by the minter fails due to the transfer of fees to the zero address. Meanwhile, the `addMintRequest` function, triggered by the user before the confirmation, completes successfully. This... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | true | false | ## High: CANNOT LIQUIDATE LIQUIDATABLE SECUREDLOAN DUE TO COLLATERAL RATIO CHECK
### Description
The `SecuredLoan` can get the `LIQUIDATABLE` status in two cases: when the loan's deadline has passed or when the collateral ratio is below the threshold. When the loan has the `LIQUIDATABLE` status, the arbiter can take 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: Insertion of Expired Orders
### Description
Description
There are no sanity checks on the value expiration of an order.
As a result it is possible for a user to submit expired orders. These orders are never able to be matched since
they are expired.
Recommendations
Consider adding some sanity checks to enforce... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | true | false | ## Low: Analysis of balanceDecreaseAllowed when there is at least one reserve borrowed but the
### Description
vars.totalDebtInETH is 0
**Severity:** Low Risk
**Context:** MiniPoolGenericLogic.sol#L79-L84, GenericLogic.sol#L97-L99
**Description:**
1. **Mini Pool:**
In the usual flows the return statement 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 | access-control | true | false | ## Medium: UniswapPriceAdaptor fails after updating impact
### Description
The `impact` variable can have a maximum value of `uint32` (=4.294.967.295) after updating. This is too low and will cause the `UniswapPriceAdaptor#getMarkPrice()` function to revert.
### Impact
The UniswapPriceAdaptor will malfunction and not... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 non-zero checks allow event emission spamming
### Description
Functions `depositNFTs()` and `depositERC20()` are meant to allow deposits into the pair post-creation. However, they do not check if non-zero NFTs or tokens are being deposited. The event emission only checks if the pair recipient is valid.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `increase_amount()` lacks support for perpetual lock amounts
### Description
The `increase_amount()` function in the `vePeg` contract is designed to enable anyone to deposit additional tokens for any lock (`tokenId`) without modifying the unlock time. However, while this function is supposed to be compatibl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: | Arbitrage Attack
### Description
**Description**
Documentation in README.md suggests that spot prices from multiple exchanges will be used to determine prices for execution. Such a price collection scheme potentially allows for economically viable price manipulation/arbitrage attacks. Attackers may be able... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Possible unbounded loop over enteredMarkets array in _getUserHypotheticalBalanceStates
### Description
`PositionsManagerForAaveLogic._getUserHypotheticalBalanceStates` is looping through `enteredMarkets`, which could be an unbounded array leading to a reverted transaction caused by a block gas limit. While 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 | medium | token | true | false | ## Medium: Did not Approve to zero first
### Description
Source: https://github.com/sherlock-audit/2023-01-derby-judging/issues/36
## Found by
HonorLt, Ruhum, Saeedalipoor01988, SunSec, chainNue, hyh, koxuan, martin, tsvetanovv
## Summary
## Vulnerability Detail
Some ERC20 tokens like USDT require resetting the 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 | token | true | false | ## Low: Unchecked ERC-20 return values in the Absorber
### Description
The `transfer_assets` function in the Absorber contract serves as a helper function to transfer multiple assets to a target address in one function call. Per the ERC-20 standard, calls to the `transfer` function return a Boolean indicating whether ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Some compilers can't handle two different contracts with the same name
### Description
Some [compilers](https://github.com/trufflesuite/truffle/issues/2147) only compile the first one they encounter, ignoring the second one. If two contracts are different (e.g. different struct argument definitions) then they ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Admin | true | true | ## Handle
WatchPug
## Vulnerability details
https://github.com/code-423n4/2022-01-insure/blob/19d1a7819fe7ce795e6d4814e7ddf8b8e1323df3/contracts/Vault.sol#L485-L496
```solidity
function setController(address _controller) public override onlyOwner {
require(_controller != address(0), "ERROR_ZERO_ADDRESS");
... | Code4rena | 5 | InsureDAO |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Clone-and-Own
### Description
**Update**
`vendor/@uniswap/v3-periphery/contracts/libraries/FullMath.sol` is now used instead of `Math.sol`.
Commit: `e34ccc61a8c0c6dfce1a98e01dcda49d042fca4f`
**File(s) affected:**`Math.sol`, `vendor/*`
**Description:** The clone-and-own approach involves copying and adjustin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | signature | true | false | ## Severity: Medium Risk, Gas Optimization
## Context
- **File**: `EIP712SignerRecovery.sol#L12-L14`
Currently, for deploying on EVM compatible chains, the unique identifier `_chainId` is specified by Brink. The users need to trust the deployer, i.e., Brink, to have unique values of `_chainId` for different chains.... | Spearbit | 5 | Brink |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [FIXED] No access control for `deposit` function call in `VaultStrat`
### Description
The `deposit` function of the `VaultStrat` contract has an `external` visibility modifier and can be called by any address without permissions. An attacker can make a fake deposit to the `VaultStrat` contract by directly cal... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of Time-Weighted Voting and Weight Decay in GaugeController
### Description
The `GaugeController` contract implements a voting mechanism that lacks proper time-weighted voting and weight decay functionality. This is a significant deviation from the established Curve Finance model and what is documented... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: GenericOracle public frontrun for `initialize()`
### Description
The first call of `GenericOracle.initialize()` can be made by anyone.
- https://github.com/ConicFinance/protocol/blob/7a66d26ef84f93059a811a189655e17c11d95f5c/contracts/oracles/GenericOracle.sol#L20-L24
As a result, anyone can frontrun the of... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | true | false | ## Medium: Borrowers can avoid liquidations, if ERC777 token is configured as an `emissionToken`
### Description
If a borrower is `undercollateralized` then he can be liquidated by a liquidator by calling the `MErc20.liquidateBorrow` function. `liquidateBorrow` function calls the `MToken.liquidateBorrowFresh` in its 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 | other | false | false | ## Low: 3S-LENFT-N06 Throughout codebase: some events could be emitted
### Description
- In InterestRate.sol, when [adding ](https://github.com/leNFT/contracts/blob/9b1ae95f97ec5d2423c022179642714cee470a68/contracts/protocol/Lending/InterestRate.sol#L32-L39) or [removing ](https://github.com/leNFT/contracts/blob/9b1ae... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Race condition on core rescue
### Description
_Resolved_
If owner calls rescueHyperCore() for USDC token while users are executing borrow, the rescue can drain funds before the user's transfer executes on HyperCore, causing silent fund loss. According to HyperEVM specs, CoreWriter actions execute after USDC t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Missing zero value check for gap in `RiskManagerEscrow_V2`
### Description
**Severity**: Low
**Status**: Resolved
**Description**
There is no check in the `setPara()` function to check that the `_ratio` parameter assigned to the gap variable should not be zero. A zero value assigned to gap can lead to divis... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | token | true | false | ## Gas: `Remove` unnecessary `require` statements
### Description
### Instance #1
Saves ~115 Gas every time the `_beginDistribution` function is called.
Since `_beginDistribution` function is called only once inside `distribute` when `LockedForDistribution` is false, `LockedForDistribution` will always be false when... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 variables declaration
### Description
**Description**
At contract Bpool.sol at function getNormalizedWeight there is a denorm variable that is
actually used only once and can be removed.
**Recommendation**:
Use direct insertion, example:
return bdiv(_records[token].denorm, _totalWeight);
Worth ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Uninitialized `forceVAILiquidate` Allows Bypassing the `VAI` Debt Validation
### Description
**Update**
Marked as "Acknowledged" by the client. It was added as an improvement proposal in: https://github.com/VenusProtocol/vips/commit/91e25d3f1ab38bd75b0f2946f34c82dee32570d3.
**File(s) affected:**`Liquidator.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 | reentrancy | false | false | ## Medium: Potential issue with re-entrancy
### Description
Method `report` at this [line](https://github.com/iearn-finance/yearn-vaults/blob/054034304c7912d227d460feadc23177103de0b9/contracts/Vault.vy#L1246) called by strategy makes an external call back to strategy in `_assessFees` method: https://github.com/iearn-f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: `withdrawArbitrageProfits()` will revert when `depositedWETH <= PoolUtils.DUST`
### Description
`withdrawArbitrageProfits()` will revert when attempting [to withdraw](https://github.com/code-423n4/2024-01-salty/blob/53516c2cdfdfacb662cdea6417c52f23c94d5b5b/src/dao/DAO.sol#L304) less than the dust amount, [beca... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | true | false | ## High: Linearization of exponential compounding could lead to insolvency
### Description
In money markets such as Aave and Compound, liquidity is expected to compound exponentially. However, when computing the money market rate per second, the 88mph protocol assumes that the rate will compound linearly:
```solidity... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: NFT NUMBER 0 CAN NEVER BE TRADED
### Description
While currently supported NFTs start with `tokenId` equal to one, should additional NFT series be supported, with the first `tokenId` being zero, they would not be able to be traded.
Code Location
-------------
Location: `NftSwap.sol` - function `createOffer`
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Token:mint`: infinite loop if the founders' shares sum up to 100
### Description
_Submitted by zzzitron, also found by 0xSmartContract, ChristianKuri, davidbrai, elad, ElKu, hansfriese, immeas, ladboy233, Lambda, MiloTruck, scaraven, tonisives, and volky_
[Token.sol#L179](https://github.com/code-423n4/202... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Interest Accrual Failure Due to Incorrect Scaling in RToken Implementation
### Description
The `RToken.sol` contract fails to properly implement the scaled balance mechanism for interest-bearing tokens, leading to a systemic failure in interest distribution to depositors. While the protocol correctly tracks 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... | cyfrin_structured | low | other | true | false | ## Low: Redundant requirement | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
If the reserve for that specific asset and reserveType has already been added, revert instead. If we don't, some of the important parameters can be rewritten, and also the liquidity and borrow indices would be reset to one RAY.
### Recommendation
It would be best to... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: Missing Error Messages in require Statements
### Description
Within [`WETH9.sol`](https://github.com/scroll-tech/scroll/blob/3bc8a3f5c6ac816ddffadca41024331dcf4d3064/contracts/src/L2/predeploys/WETH9.sol) there are multiple `require` statements that lack error messages. For instance:
* The `require` statemen... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Revert Case for Oracle being provided insufficient gas is inaccurate
### Description
**Impact**
The following finding has no impact unless Chainlinks proxy is changed to revert for OOG on purpose
Meaning that the CL team would need to:
- Replace their proxy
- Purposefully put a malicious one that reverts
I... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Typos
### Description
See [original submission](https://github.com/code-423n4/2022-04-backd-findings/issues/182) for instances. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of Fee-on-Transfer Tokens Check
### Description
This issue has been identified within the `bridge` function of the `USDXBridge` contract.
The function [does not account](https://github.com/LayerLabs-app/Ozean-Contracts/blob/dacd9ed9c895c9b6be422531eea15fecc3c2b1d8/src/L1/USDXBridge.sol#L109-L134) for tok... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Missing disable initializer
### Description
**Severity**: Low
**Status**: Resolved
**Description**
Contract `PreMarketEscrow.sol` implements the `initialize(...)` method with the initializer modifier without disabling the initializers for the implementation contract as recommended by OpenZeppelin here[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 | initialization | true | false | ## Low: `reqeustRandomNumberMany()` has incorrect array initialization
### Description
### Instances(1)
In ThrusterTreasure.sol, `requestRandomNumberMany()` has incorrect array initialization, which causes the tx to revert. Specifically, a dynamic array `uint64[] memory seqNums` is declared as a return variable, but ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `liquidationType2()` will always due wrong assumption that Asset:sAsset are minted 1:1
### Description
_No response_
### Impact
This can lead to a DOS using `liquidationType2()`
### Recommendation
considering caching the actual balance of sETH received from the `wrapper and use it to call `exchange()` | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Incorrect flag results to `_hasFallbackToggled` always set to false on `createMultipleSettlement`.
### Description
Function `_hasFallbackToggled` would be set to false on `createMultipleSettlement` regardless of user intentions.
### Proof of Concept
Users can specify if they want a fallback on their trans... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | false | false | ## Medium: Stuck emissions for nullified epochs
### Description
If either the premium and / or collateral vault has 0 TVL for an epoch with emissions, those emissions will not be withdrawable by anyone.
### Impact
Emissions cannot be recovered.
### Recommendation
Create a function to send emissions back to the treas... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Usage of deprecated ChainLink API in `EIP1271Wallet`
### Description
_Submitted by cmichel, also found by 0x1f8b, defsec, leastwood, pauliax, sirhashalot, TomFrenchBlockchain, UncleGrandpa925, and WatchPug_
The Chainlink API (`latestAnswer`) used in the `EIP1271Wallet` contract is deprecated:
> This API i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | false | false | ## Low: | Unimplemented Interface Methods
### Description
**Description**
The `BridgesFactory` contract fails to provide implementations for the `feeTo`, `tradingStart`, and `setFeeTo` functions defined in the `IBridgesFactory` interface.
**Recommendation**
Either add implementations for these functions in the `Bri... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 be liquidated prematurely because calculation understates value of underlying position
### Description
When the value of the underlying asset is calculated in `getPositionRisk()`, it uses the `underlyingAmount`, which is the amount of tokens initially deposited, without any adjustment for the intere... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unhandled Return Value of ERC20 Transfer in `transfer` and `withdraw` Functions
### Description
**Update**
Fixed by using `SafeERC20 for IERC20` in `FloatController.sol`. Addressed in: `7acb12552b5da4dd97d4babcbaa90cb122ef5ab1`.
**File(s) affected:**`FloatController.sol`
**Description:** In the `FloatControl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Withdraw Instruction Trying to Create New Asset Records for Non-Existent Tokens Instead of Failing
### Description
**Description:** The `withdraw` instruction uses `alloc=true` when resolving the token asset, which tries the creation of a new asset record with zero balance if the token doesn't exist, instead 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... | solodit_api | medium | Pause | true | false | ## Lines of code
https://github.com/code-423n4/2022-06-nibbl/blob/8c3dbd6adf350f35c58b31723d42117765644110/contracts/NibblVault.sol#L443
## Vulnerability details
## Proof-of-Concept
Calling `NibblVault.updateTWAP` function will change the state of the system. It will cause the TWAP to be updated and buyout to be r... | Code4rena | 5 | Nibbl |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Suboptimal Search Iteration
### Description
Contract Core utilises two address lists, namely `stablecoinList` and `governorList`, to store the list of stablecoins and governors, respectively. To track the existence of a stablecoin or a governor in the mentioned lists, the contract iterates through the lists 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 | other | false | false | ## Medium: Missing boundary check for `duration`
### Description
There is an issue at [the following line](https://github.com/MetaLex-Tech/borg-core/blob/b89ff5b7796047bbb6123c97192cfcff33e6b7f5/src/implants/daoVoteGrantImplant.sol#L139). `_duration` value is not checked which may lead to a significant proposal durati... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TRST-M-5 potential overflow in reward accumulator may freeze functionality
### Description
**Description:**
Note the above description of `updatePool()` functionality. We can see that **accRewardPerShare** is only allocated 128 bits in **PoolInfo:**
Therefore, even if truncation issues do not occur, 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 | other | false | false | ## Low: Hardcoded wait times for exponential back-off
### Description
The exponential back-off for journal writes is hard-coded.
### Recommendation
Consider not hardcoding the wait time and the exponential back-off parameters. Use a flag or project-level config. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Anyone Can Call `executeMigration()` Once `migrationDestination` Is Set
### Description
The current implementation allows anyone to execute the `executeMigration()` function once the `migrationDestination` is set, bypassing the intended logic of requiring a >50% vote based on capital. The function `executeM... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Overestimated Vault Group Capacity Due to globalVaultState.depositIndex Misuse in CommunityVCS::deposit Function
### Description
During deposits in the [`CommunityVCS::deposit`](https://github.com/Cyfrin/2024-09-stakelink/blob/f5824f9ad67058b24a2c08494e51ddd7efdbb90b/contracts/linkStaking/CommunityVCS.sol#L85-... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: First reward claim is zero for newly listed reward tokens
### Description
When Aave adds a new reward token for an asset, the reward index for this (asset, reward) pair starts at 0. When an update in Morpho's reward manager occurs, it initializes all rewards for the asset and would initialize this new rewar... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Poorly descriptive variable and function names in `GeoEmaAndCumSmaPump` are difficult to read
### Description
For example, in `update`:
* `b` could be renamed `returnedReserves`.
* `aN` could be renamed `alphaN` or `alphaRaisedToTheDeltaTimeStamp`.
Additionally, `A`/`_A` could be renamed `ALPHA`, and `readN` ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | dos | false | false | ## High: Malicious user can use an excessively large _toAddress in OFTCore#sendFrom to break layerZero communication
### Description
By default layerZero implements a blocking behavior, that is, that each message must be processed and succeed in the order that it was sent. In order to circumvent this behavior the rece... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The Refund Recipient Might Be Aliased to an Unexpected Address
### Description
The [`Mailbox`](https://github.com/matter-labs/era-contracts/blob/518bfff51085743dc85d2824d823aaf4bb3e82d8/ethereum/contracts/zksync/facets/Mailbox.sol) contract implements the [`requestL2Transaction`](https://github.com/matter-labs... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Minimum Chrome version not enforced
### Description
The `manifest.json` file of the Uniswap wallet browser extension does not contain a field to enforce a minimum Chrome version. Having this field can prevent a user from using a potentially vulnerable version because it will force the user to update before usi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Balance check in `FighterFarm.reRoll()` is not necessary since `transferFrom()` will revert in case of insufficient balance
### Description
In the function below, the balance require check is not necessary due to `transferFrom()` implementation.
```solidity
function reRoll(uint8 tokenId, uint8 fighterType) p... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | true | false | ## High: Risk of median price manipulation
### Description
The `submit_price` function, which enables oracles to add new values to the sorted price list, fails to perform proper data validation. As a result, a node can submit a batch of prices that will cause the price of an asset to be set to, and reported as, zero.
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redundant DIAOracleV2metadata Across Repositories
### Description
The `DIAOracleV2metadata` is currently present in two different repositories: Spectra-interoperability and decentral-feeder. This redundancy can lead to potential inconsistencies and maintenance challenges.
### Recommendation
We recommend imple... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: LibProxy.proxyCall() may overwrite important memory ✓ Fixed
### Description
`LibProxy.proxyCall()` copies from call data to memory, starting at address 0:
**code/contracts/staking/contracts/src/libs/LibProxy.sol:L52-L71**
```
assembly {
// store selector of destination function
let freeMemPtr := 0
if... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of input validation on callbackParams.gauge allows for theft of positions
### Description
## Vulnerability Report: Gauge Parameter Verification
**Context:** VeloAmmModule.sol#L39
**Description:** The gauge parameter is nowhere verified to be an actual Velodrome gauge. This would allow for an attacker 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 | front-running | false | false | ## Medium: Liquidations Should Not Be Paused If Contract Is Paused
### Description
**Severity** - Medium
**Status** - Resolved
**Description**
The contract StakingPool can be paused by the staking pool configurator in cases of emergency , once paused functions borrow , stake , unstake , withdraw , repay and liquida... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Optimizing the `_buyCurvesToken` Function for Efficiency and Clarity
### Description
Introducing an if block in `Curves._buyCurvesToken()` to check if supply is non-zero before executing `getPrice()` and `getFees()` could significantly enhance transaction efficiency and align with the contract's design of offe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: refresh() will revert on Oracle deprecation, effectively disabling part of the protocol
### Description
## Lines of code
https://github.com/reserve-protocol/protocol/blob/df7ecadc2bae74244ace5e8b39e94bc992903158/contracts/plugins/assets/Asset.sol#L102
https://github.com/reserve-protocol/protocol/blob/df7ec... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improper Full Access Key Fallback Design
### Description
**Description:**
A Full Access Key could have total control over the account. It can transfer NEAR, deploy a smart contract and so on. Full access keys have more privileges than the owner and can do more things than the owner. In the current design,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | dos | false | false | ## High: Improper Storage Management of Open Loan Accounts
### Description
When loans are open, the associated account address gets added to the `accountsWithOpenLoans` array regardless of whether the account already has a loan/is already included in the array (see `storeLoan()` function called by the `openLoan()` fun... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Overflow/Underflow | true | false | _Submitted by gpersoon, also found by cmichel_
There are a few underflows that are converted via a typecast afterwards to the expected value. If solidity 0.8.x would be used, then the code would revert.
* `int256(a-b)` where a and b are uint: For example, if `a=1` and `b=2`, then the intermediate result would be `uint... | Code4rena | 5 | Gro Protocol |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | false | false | ## Medium: Function can be called by anyone
### Description
**Severity**
**Impact:** Low
**Likelihood:** High
**Description**
In the `NablaRouter` contract, the `swapExactTokensForTokens` function uses the `allowed` modifier to check if the caller is allowed to access the function. However, the `swapExactTokensFor... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | Business Logic | true | true | _Submitted by 0xsanson, also found by cmichel_
[BasicOrderFulfiller.sol#L346-L349](https://github.com/code-423n4/2022-05-opensea-seaport/blob/main/contracts/lib/BasicOrderFulfiller.sol#L346-L349)<br>
When fulfilling a basic order we need to assert that the parameter `totalOriginalAdditionalRecipients` is less or equa... | Code4rena | 4 | OpenSea |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 PROCESS
### Description
The ownership of the contracts can be lost as the contracts inherits from the Ownable contract and their ownership can be transferred
in a single-step process. If the nominated EOA account is not a valid account, it is entirely possible that the owner ma... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `totalEarnings` is incorrect when withdrawing after ending which will withdraw too many funds leaving the `Vault` insolvent
### Description
`totalEarnings` in [LidoVault::vaultEndedWithdraw()](https://github.com/sherlock-audit/2024-08-saffron-finance/blob/main/lido-fiv/contracts/LidoVault.sol#L709) is calcula... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Simplify claim tokens for a gas discount and less code ✓ Fixed
### Description
The method `claimTokens` in `TokenDistributor` needs to do a few checks before it can distribute the tokens.
A few of these checks can be simplified and optimized.
The method `hashMatch` can be removed because it’s only used onc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: RATIO FUNCTION IS NOT GAS EFFICIENT
### Description
The current implementation of the **ratio()** function in the smart contract inefficiently retrieves the total deposited amount twice due to repeated calls to **getTotalDeposited()**. This redundant fetching of the same data results in unnecessary gas costs, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [06]
### Description
For each deposit of an ERC20 token, the information of the token is read and packed and sent to L2. Even if this token is used before for deposit, again this information is sent to L2, which is waste of gas.
[L1ERC20Bridge.sol#L164-L169](https://github.com/code-423n4/2022-10-zksync/blob/45... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Validation Logic
### Description
## Token Account Issues and Remediation
## Current Issues
1. **Mint Checks Enforcement**
- Currently, mint checks are not properly enforced for token accounts. Instead, the system relies on these accounts to fail during token transfers if the mint is incorrect. This... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | false | false | ## High: Losses are not taken into account in the strategy
### Description
The withdrawer from vault should incur the losses from liquidation caused by his own withdrawal. However, the [liquidatePosition()](https://github.com/orbxball/liquity-stability-pool/blob/c3fa76af0a4e2d5fd7132b8e24361d5b7439a75d/contracts/Strat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: Funds Will Get Locked in the `ReachFactory`
### Description
**Update**
The newly added function `withdrawETH()` is unnecessary since there is no normal way for the contract to receive `ETH`. The only way is for another contract to self-destruct and provide the factory's address as the receiver of the `ETH` ba... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | reentrancy | true | false | ## Gas: Use `ReentrancyGuardTransientUpgradeable` for faster `nonReentrant` modifiers
### Description
**Description:** Use [ReentrancyGuardTransientUpgradeable](https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/master/contracts/utils/ReentrancyGuardTransientUpgradeable.sol) for faster `nonReentra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The owner cannot directly transfer tokens using `transferFrom`
### Description
In the `ERC20RebasingUpgradeable` contract, when the owner transfers tokens using `transferFrom` or `transferSharesFrom`, they still need to spend an allowance. This means the owner must first call the `approve` function to authoriz... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Medium: Buyers can pledge for tokens without having signed all documents that are required to be signed
### Description
**Description:** When buyers pledge() during the pledgeRound, it is verified that they [have signed all the documents](https://github.com/remora-projects/remora-smart-contracts/blob/main/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 | high | liquidation | false | false | ## High: Any borrower with bad debt can be liquidated multiple times to lock funds in the lending pair
### Description
_Submitted by panprog, also found by 0xA5DF and Lambda_
Leftover shares in `liquidateClean` are only subtracted from pair totals, but not from user's borrowed shares. This means that after `liquidate... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | false | ## High: Incorrect uplift fee calculation leads to LPs incurring more fees than expected
### Description
According to the docs and white paper, the uplift fee is calculated only on the uplift/increase in the BPT value since deposit.
README
> Each deposit tracks its LP token value in a base currency. On withdrawal, a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Single-Step Ownership Transfer Process
### Description
The ownership transfer of the **bithive** contract is executed in a single step, which introduces a security risk. This issue is present in the `admin::change_owner` function, where the change of ownership lacks a verification step before finalization. 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 | token | true | false | ## Medium: The `unwhitelist` function of `ERC20Custody` cannot be invoked.
### Description
The `unwhitelist` function of `ERC20Custody` cannot be invoked,
### Proof of Concept
The `unwhitelist` function of `ERC20Custody` is supposed to be triggered by `SignWhitelistTx`, but `SignWhitelistTx` is not called anywhere 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 | liquidation | true | false | ## Low: The word principal is used with different connotations leading to confusion
### Description
1. In `ReserveLogic`, `MiniPoolReserveLogic`, we have:
```solidity
// Calculate the last principal variable debt.
vars.previousVariableDebt = scaledVariableDebt.rayMul(previousVariableBorrowIndex);
```
Here, p... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.