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: Majority of participants can collude
### Description
If the majority of addresses (up to 1 less than the maximum number of participants) join a round, they have a very high likelihood of winning. This may be a strategy to guarantee a win with high probability. However, from an individual player's perspective, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 total staked amount calculation leads to inaccurate reward distribution
### Description
The UsualSP contract incorrectly uses the total minted supply of UsualS tokens instead of the actual staked amount in its reward calculations. This leads to inaccurate reward distributions, particularly when us... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Strategists can't be removed
### Description
_Submitted by kenzo, also found by Ruhum, dirk_y, shenwilly, and 0x1f8b_
There is no option to revoke strategist's privilege.
As the strategist is a very strategic role which can effectively steal LP's funds, this is very dangerous.
### Impact
A rogue / compr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Calc.boundedAdd used intitally but later regular subtraction used
### Description
In MarketDecrease order flow the funding amount per size calculation uses `Calc.boundedAdd` but further down the call path there is a calculation that does not use `Calc.boundedSubtract` but rather a regular `-`, which could 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 | token | true | false | ## Low: [01] Config on `Starknet` allows calling for `to_chain` and `to_handler` at the same chain
### Description
### Issue Description
Looking at the assert statement in `handler_erc20::receive_cross_chain_callback` we can see that `to_handler` and `to_chain` are also validated to be in the `support_handler` collec... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `transferRights()` requires a two-step process to change the address
### Description
This issue has been identified within the `transferRights` function of the `BaseAllocation` contract.
The current implementation allows the grantee to transfer the rights to claim tokens in [a single step](https://github.com/M... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | dos | true | false | ## High: Denial of service via front-run gas limit manipulation
### Description
**Severity**: High
**Status**: Resolved
**Description**
The execute function of the Forwarder contract is designed to forward transactions on behalf of users, allowing for operations such as token transfers or contract interactions. Ho... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential Panic During Data Slicing in _executeCall
### Description
In the [`_executeCall` function](https://github.com/matter-labs/zksync-sso-clave-contracts/blob/c7714c0fe0a33a23acce5aa20355f088d330b4f7/src/SsoAccount.sol#L128) of the `SsoAccount` contract, there is a slice operation performed on the `_data`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: USE ++i INSTEAD OF i++ ON FOR LOOPS
### Description
Using `++i` instead of `i++` saves 5 gas per loop iteration.
The identified loops withing the protocol that can be optimized are:
* ActivityRewardDistributor.sol L79, L89, L250
* BatchManager.sol L90, L158, L189, L229, L242, L291
* FeeExecutor.sol L51, L87,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Sequencer Censorship Issues
### Description
The design of the system exposes multiple points at which the sequencer can apply censorship. While the documentation mentions building towards ["enabling Censorship Resistant Withdrawals"](https://docs.linea.build/decentralization-roadmap#phase-2), the current 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 | medium | token | true | false | ## Medium: IERC20(token).approve revert if the underlying ERC20 token approve does not return boolean
### Description
IERC20(token).approve revert if the underlying ERC20 token approve does not return boolean
### Impact
USDT or other ERC20 token that does not return boolean for approve is not supported as the payout ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | high | other | true | true | ## High: Malicious users can double their voting power.
### Description
When calculating The `voteWeight` of a delegatee, its own `ownVoteWeight` is added. This makes it possible for some users to double their voting power by constructing a cycle. For example, Alice delegates Bob, Bob delegates Alice.
```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: Transfer to zero can lead to unexpected burns
### Description
`BalancerPoolToken` uses a `Transfer-to-zero` event to indicate a burn. That same event can be triggered without burning tokens, which could cause confusion among off-chain monitors.
When tokens are burned, the total supply decreases, and a `Transf... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: MerkleResistor: zero coinsPerSecond will brick tranche initialization and withdrawals
### Description
_Submitted by hickuphh3, also found by GimelSec, gzeon, and scaraven_
### Details & Impact
It is possible for `coinsPerSecond` to be zero. In these cases, the `startTime` calculation
will revert from d... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | false | false | ## High: Insolvent initial position
### Description
The initial sponsor in any contract is free to [open a position](https://github.com/UMAprotocol/protocol/blob/e6eaa48124ae3f209fb117cf05eb18292cf26d21/core/contracts/financial-templates/implementation/PricelessPositionManager.sol#L303) with any amount of tokens for 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 | other | true | false | ## Medium: If `NFT` Is Transferred to Current Owner, It Is Lost
### Description
The vulnerability arises in the `updateOwner()` function, designed to transfer ownership of an adapter between two addresses within a system managing positions through NFTs. The function incorrectly handles the case where the `oldOwner` 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 | medium | access-control | false | false | ## Medium: Centralization issues
### Description
**Severity**: Medium
**Status**: Acknowledged
**Description**
In `CEToken.sol`, the `setCore()` allows to reset the core and `PoolId` and overwrite them.
`setTransferBlockRelease()` can be used to freeze the assets of any user by a malicious admin indefinitely. Also... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Anyone can steal pool shares from lender group if no-revert-on-failure tokens are used
### Description
Anyone can steal pool shares from lender group if no-revert-on-failure tokens are used.
### Impact
An attacker could call the function `addPrincipalToCommitmentGroup()` with arguments(ex. too big value 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 | dos | true | false | ## Medium: Attacker can fill merkle tree in `L2ToL1MessagePasser`, blocking any future withdrawals
### Description
An attacker can fill the merkle tree used for withdrawals from `L2 -> L1`, preventing any withdrawals from `L2` to `L1`.
### Impact
Permanent DoS of the rollup as no `L2 -> L1` withdrawals/messages 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 | gas | storage | false | false | ## Gas: Refactor Sale struct to avoid using unnecessary storage slot
### Description
We can use `uint32` for time variables instead of `uint96` since it will be enough until the year **2106** but can save a decent amount of gas.
`test_Buy() (gas: -24451 (-6.415%))`
`Overall gas change: -370656 (-99.469%)`
Same her... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unchecked possible zero address
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
In contract UmamiPriceFeed.sol there are multiple cases where input addresses are not checked to not be null/zero. For example, the setGov function sets the gov address, so in case the input address ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Admin should be able to refund or redeem the sanctioned users
### Description
Sanctioned user's funds are locked.
### Proof of Concept
It is understood that the sanctioned users can not mint nor redeem because the functions `requestMint()` and `requestRedemption()` are protected by the modifier `checkKYC(... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: fastTrackAuction accounts for debt incorrectly
### Description
Currently, when the [system is shutdown](https://github.com/reflexer-labs/geb/blob/261407b6b332c2063e4256aa5f9b223d52dad7e1/src/GlobalSettlement.sol#L254), if there are any collateral auctions still occurring they can be ended by calling [`fastTra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | ## Lines of code
https://github.com/code-423n4/2022-10-inverse/blob/main/src/Market.sol#L559-L572
https://github.com/code-423n4/2022-10-inverse/blob/main/src/Market.sol#L531-L539
https://github.com/code-423n4/2022-10-inverse/blob/main/src/Market.sol#L472-L474
https://github.com/code-423n4/2022-10-inverse/blob/main/src... | Code4rena | 4 | Inverse Finance |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | initialization | false | false | ## Gas: Remove check inside `InitCore.callback` function.
### Description
The [check inside `InitCore.callback` function](https://github.com/code-423n4/2024-01-init-capital-invitational/blob/main/contracts/core/InitCore.sol#L519) is not needed, because `InitCore` contract even don't have `coreCallback` function. You 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 | medium | access-control | true | false | ## Medium: Remove splitter will always revert if there are some rewards left on splitter contract
### Description
Stakelink users can register to share their LST rewards with other addresses through the `LSTRewardsSplitterController` contract. Upon registration, the user will set fee addresses, and an individual `LSTR... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: LOSS OF PRECISION DUE TO ROUNDING
### Description
FILE : 2023-03-canto-identity/canto-bio-protocol/src/Bio.sol
49: uint lines = (lengthInBytes - 1) / 40 + 1;
[Bio.sol#L49](https://github.com/code-423n4/2023-03-canto-identity/blob/077372297fc419ea7688ab62cc3fd4e8f4e24e66/canto-bio-protocol/src/Bio.sol#L49)... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 array lengths before loops
### Description
To save gas, it is recommended to cache the length value before beginning a for loop (rather than recalculating it on each iteration).
This is performed in `validate()` but is not in `castVotesWithReasonBatched()`, `subDelegateAllBatched()`, or `subDelegateBatc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [02] `execute` function is defined as payable
### Description
https://github.com/code-423n4/2024-06-krystal-defi/blob/main/src/V3Automation.sol
The `execute` function includes the `payable` keyword but does not utilize ETH tokens within its logic. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Mask Check for Island in `SWAP_AND_EXIT_ONLY` Branch
### Description
In `KodiakIslandGatewayAdapter.setIslandStatusBatch`, the branch handling the `SWAP_AND_EXIT_ONLY` status does **not** check that a mask exists for `islands[i].island` using `_getMaskOrRevert`. This is inconsistent with the other stat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Changes in modules not detected
### Description
The function `validatePostExecutorTransaction()` checks if the executor plugin is still enabled. However, other modules are not checked. As modules are very powerful, if they were to be "sneaked" in, they would pose risks to the safes.
```solidity
function va... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Payout of staking rewards is not guaranteed
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation: It is highly unlikely that there will never be a reward paid out. However, we cannot make guarantees about when the reward will be paid out.
**File(s) 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 | access-control | true | false | ## Medium: anyone can create a vault by directly calling the factory
### Description
_Submitted by jonah1005_
#### Impact
In [MochiVaultFactory.sol#L26-L37](https://github.com/code-423n4/2021-10-mochi/blob/main/projects/mochi-core/contracts/vault/MochiVaultFactory.sol#L26-L37), there's no permission control in the `v... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | access-control | true | false | ## High: CtrlChar/Markdown Injection in renderSignTransaction, renderSignAllTransactions
### Description
On certain occasions, the snap may need to present a dialog to the user to request confirmation for an action or data verification. This step is crucial as dapps are not always trusted, and it’s essential to preven... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Liquidity providers can create deficit of DAI tokens ✓ Fixed
### Description
The current staking system is built in a way that a liquidity provider can stake DAIx tokens to the staking contract. By doing so, DAI tokens are getting withdrawn from the PolicyBook and there may be not enough funds to fulfill clai... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Deposit stores a world-readable file with sensitive information
### Description
The deposit tool saves the keys in world-readable files. This practice is risky and could lead to a compromise. After generating the key, deposit stores the encrypted keys in a directory that is world-readable by default. Thus, any ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Deprecated ETH transfer.
### Description
**Description**
PlatformAuction.sol: function_currency Transfer().
Due to the Istanbul update, there were several changes provided to the EVM, which made .transfer() and .send() methods deprecated for the ETH transfer. It is highly recommended to use .call() functiona... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary check for `msg.sender` being `address(0)`
### Description
Unless there's a way to own `address(0)` (in which case, please DM), these checks should be deleted: | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [07] Inadequate validation of event unpacking in `parseTransferOutAndCall`
### Description
The function `parseTransferOutAndCall` is designed to unpack and process `TransferOutAndCall` events from the log data. However, the function lacks adequate validation after unpacking the event data. Specifically, if 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 | true | false | ## Low: Silent Failure in `voting_reset`
### Description
**Description:** The `voting_reset` function silently ignores failures when attempting to upgrade the community account header for writing. If the `community_acc` account is not marked as writable, the `upgrade()` call fails, but the function still returns `Ok((... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Executing the resolveDispute and revealVote functions in the same block can lead to loss of funds
### Description
If the `revealVote` function is executed after the `resolveDispute` function, provided this is done in the same block, the user that called `revealVote` will permanently lose access to their 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 | medium | other | true | false | ## Medium: Account-Specific Zero Fee Setting Impossible Due to Fallback Logic
### Description
The fee calculation logic in `previewMintAccount()` makes it impossible to set a zero fee for specific accounts when the asset has a non-zero default fee rate. The code treats `accountFeeRate[account] = 0` as "not set" and fa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | storage | false | false | ## Medium: Risk of Storage Collision in Proxy Contract
### Description
The [AnvilGovernorDelegator.sol](https://github.com/AmperaFoundation/sol-contracts/blob/c6e940c12044c8994f778c978e34582449229df8/contracts/governance/AnvilGovernorDelegator.sol) proxy contract does not follow the [ERC\-1967](https://eips.ethereum.o... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | other | true | false | ## Low: Incorrect Comment and Missing Lower Bound for `minimumJrtSrtRatio` in `Accounting`
### Description
```solidity
/// @dev minimum TVL ratio: TVLjrt/TVLsrt, e.g. >= 0.05%
```
```solidity
minimumJrtSrtRatio = 0.05e18;
```
The comment says “0.05%” (0.0005e18) but the value is 5% (0.05e18). and there is no check 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 | true | false | ## Medium: When APR late rate is lower than APR, an OCC locker bullet loan borrower can pay way less interests by calling the loan
### Description
A bullet loan borrower can pay less interests by calling [`callLoan`](https://github.com/sherlock-audit/2024-03-zivoe/blob/main/zivoe-core-foundry/src/lockers/OCC/OCC_Modul... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Repeated Fee Deduction
### Description
## Claim Sale Token
`claimSaleToken` includes a call to `_chargeClaimFlatFee`, responsible for charging a flat fee for claiming tokens. If this internal function is not designed carefully, it may introduce vulnerabilities, especially in scenarios where it may be called ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | flash-loan | true | false | ## Medium: Emission Rate can be Manipulated (Locked, Higher or Lower)
### Description
When `calculateNewEmissionRate()` is called, it **only** adjusts the emission rate if the `utilizationRate` is strictly greater than (`>`) or strictly less than (`<`) the `utilizationTarget`. If the `utilizationRate` equals (`==`) th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Unrecoverable states through misconfiguration
### Description
An existing ward on `DelayedAdmin.sol` can remove all other wards in this contract, `pause()` the protocol, and renounce itself from `DelayedAdmin.sol` accidentally or maliciously. Since `DelayedAdmin` and `PauseAdmin` are the only initial admins 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 | token | false | false | ## Medium: AutoleverageBase: Must approve 0 first
### Description
_Submitted by cccz_
Some tokens (like USDT) do not work when changing the allowance from an existing non-zero allowance value.They must first be approved by zero and then the actual allowance must be approved.
### Proof of Concept
[AutoleverageBase.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 | storage | false | false | ## Low: SENSITIVE DATA EXPOSURE IN LOCALSTORAGE
### Description
Secure or sensitive data should not be stored persistently in browser data stores as this may permit information leakage on shared systems and could result in account takeover by exfiltration of the jwtToken. Sensitive data is stored in localStorage locat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | front-running | false | false | ## High: Possible incentive theft through the arbitraryCall() function
### Description
_Submitted by toastedsteaksandwich, also found by Omik, ScopeLift, bitbopper, pedroais, gzeon, Meta0xNull, and wuwe1_
#### Impact
The `Locke.arbitraryCall()` function allows the inherited governance contract to perform arbitrary 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: NatSpec is incomplete
### Description
*There are 12 instances of this issue:*
[See original submission](https://github.com/code-423n4/2022-06-nibbl-findings/issues/139) for details. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [02] Streamlining token approvals in `PrizeVault._depositAndMint()` with `forceApprove()`
### Description
Incorporating `forceApprove()`, such as in `PrizeVault._depositAndMint()`, could offer a more streamlined approach to managing ERC20 token allowances; particularly in complex interactions involving asset 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 | token | false | false | ## High: Incorrect votingPower Accounting
### Description
**Contract Snapshot**
`SnapshotRepERC20Guild` replaces token locking with a snapshot mechanism implemented in the `ERC20SnapshotRep` token. The guild contract derives from `ERC20GuildUpgradeable` or `BaseERC20Guild` and overrides some important functions to 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 | medium | front-running | true | false | ## Medium: Users can deposit liquidity in the last minutes of the previous epoch and earn a fee
### Description
When am-AMM is enabled the BunniHook code collects the rent as BunniToken(LP) and burns each epoch's rent when new epochs begin.
```solidity
// burn rent charged
if (rentCharged != 0) {
_burnBidToken(... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Zero Address Check
### Description
**Severity**: Low
**Status**: Resolved
In the contact GenericERC20Token.sol, the following functions are missing zero address checks that could cause undesired effects:
**Recommendation**:
Add a custom error or require statement to ensure the zero address cannot ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unchecked Return and Handling of Non-standard Tokens in AssetReceiver
### Description
The current `AssetReceiver` contract implements "direct" ETH and ERC20 token transfers, but does not cover edge cases like non-standard ERC20 tokens that do not:
- revert on failed transfers
- adhere to the ERC20 interface (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 | access-control | false | false | ## Low: Obsolete DEFAULT_ADMIN_ROLE assignment to Executor 's roles
### Description
In the AccessControl from OpenZeppelin, the `DEFAULT_ADMIN_ROLE` is already the admin of any newly defined role.
- **AccessControl.sol#L39:**
```
/**
* By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which mean... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users profit in short cross will leave the fees in UsdPool instead of LpPool
### Description
In order to account the fees properly, all fees should be collected in the corresponding LpPool. However, in one case the fees are left in the UsdPool.
### Recommendation
Send the entire fees to LpPool not just the c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: | Rewards May Be Stolen
### Description
**Description**
The `uniswapV3Staker` contract which the `LPStaker` interacts with allows any arbitrary address to directly call the `unstakeToken` function and unstake for any depositor after the incentive key `endTime`.
When a deposit is unstaked from an incentive ke... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: risk checks can be bypassed with extra `calldata` padding
### Description
Adding extra unused bytes to proposal calldata can trick the `_isHighRiskProposal()` function
### Impact
A proposal that should have been flagged as high risk, is not, and therefore can be passed with the easier, lower, quorum. This ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | true | false | ## Medium: Liquidation seizeassets computation rounding issue
### Description
Currently, liquidations can end up with the borrower having a less healthy position than before the liquidation (even without liquidation incentive and favorable LLTV). Note that the borrower position is measured in shares (not assets) via `... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The 2% minting per year can be delayed if it 's not called at the exact time
### Description
The MintManager allows increasing the supply by a maximum of 2% once every 356 days. To maintain a consistent 2% increase every 365 days, the owner must call `mintTo` exactly every 356 days. If this is not done, the ne... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: There is a logical error in the _distributeFees() function, resulting in an unfair distribution of fees.
### Description
There is a logical error in the _distributeFees() function, resulting in an unfair distribution of fees.
### Impact
The newly joined LP Holders receive an unfair portion of the fees, lea... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary Truncation of Balancer LP Total Supply
### Description
The [`getReserves`](https://github.com/radiant-capital/v2-core/blob/e8f21f103e17736907b62809d1ad902febc53714/contracts/radiant/zap/helpers/BalancerPoolHelper.sol#L235) function in the `BalancerPoolHelper` contract returns the amounts of RDNT 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 | oracle | false | false | ## Low: Potential padding oracle attack in AesCbcDecrypt
### Description
The catapult-server uses an elliptic curve integrated encryption scheme (ECIES) in its crypto library. Specifically, Ed25519 is used to derive a shared secret, which acts as an input into a key derivation function, which is then used as a symmetr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | cross-chain | true | false | ## Medium: LayerZero fee refunds misdirected to deposit contracts
### Description
The LayerZero fee, which is intended to cover the cross-chain messaging cost for deposits and withdrawals, is not refunded to the sender who initiates the transaction through the Ethereum mainnet or Berachain.
Instead, this fee is direc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Order of Modifiers: nonReentrant Should Precede All Other Modifiers
### Description
To mitigate the risk of reentrancy attacks, a modifier named `nonReentrant` is commonly used. This modifier acts as a lock, ensuring that a function cannot be called recursively while it is still in execution. A ty... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | cross-chain | false | false | ## High: Using the Wrong Selector Causes Token Loss During ERC1155 Bridging
### Description
**Update**
The team fixed the issue as recommended in the commit `535c64c9`.
**Description:** The `L1ERC1155Bridge.finalizeWithdrawalBatch()` function encodes the wrong selector when `replyNeeded` is true. The line `bytes memo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: DOS from External Calls in Drippie.executable /Drippie.drip
### Description
In both the `executable` and `drip` (which also calls `executable`) functions, the Drippie contract interacts with some external contract via low-level calls. The external call could revert or fail with an *Out of Gas* exception causin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | high | access-control | true | true | ## High: Migrating the existing locks for an investor when is resolved can be gamed causing the existing locks to last longer than they should
### Description
When resolving an investor, the existing locks on the `oldAddress` are migrated to the `newAddress` by appending the locks from the `oldAddress` right at the en... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: function lockCapital() doesn't filter the expired protections first and code may lock more funds than required and expired defaulted protections may funded
### Description
when a lending loan defaults, then function `lockCapital()` get called in the ProtectionPool to lock required funds for the protections ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: USING ++I CONSUMES LESS GAS THAN I++ IN LOOPS
### Description
In the loop below, the variable `i` is incremented using `i++`. It is known that, in loops, using `++i` costs less gas per iteration than `i++`.
Code Location
-------------
### Recommendation
**SOLVED**: The `Playground labs team` solved the above... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unjustified unlimited approvals
### Description
Several parts of code grant unlimited `type(uint).max` approvals even when it's not justifiable:
- https://github.com/bebop-dex/bebop-smart-contracts/blob/f42cc5efe7a843bb015aec409aaa08e7643d0ca9/src/contracts/BebopSettlement.sol#L155
- https://github.com/bebo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: NFTHelper Contract Allows Owner to Burn NFTs
### Description
_Submitted by Kenshin_
[CryptoPunksHelper.sol#L38](https://github.com/code-423n4/2022-04-jpegd/blob/e72861a9ccb707ced9015166fbded5c97c6991b6/contracts/helpers/CryptoPunksHelper.sol#L38)
[CryptoPunksHelper.sol#L52](https://github.com/code-423n4/20... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: public function that could be declared external
### Description
public function that could be declared external to save gas | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Potentially incorrect encoding of swap paths
### Description
**Description:** During fork testing, it became apparent that swap paths should use packed encoding; however, the [existing mocked test suite](https://github.com/the-standard/smart-vault/blob/c6837d4a296fe8a6e4bb5e0280a66d6eb8a40361/test/SmartVault.j... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Balance going below BASE_WEARABLE_UNIT
### Description
**Severity**
**Impact:** Medium, some balance cannot be sold and transferred, it is small but potentially valuable enough in case of low curveAdjustmentFactor or high supply
**Likelihood:** Medium, just required sending any number not strictly devisab... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Use of Implicit Default rootHash and expectedHash
### Description
When no proofs are passed to the `walkTree` function from the `ZkTrieVerifier` library, the function skips the [`for` loop](https://github.com/scroll-tech/scroll/blob/c68f4283b15e9816427caedf372ed2daac7f2e66/contracts/src/libraries/verifier/ZkTr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Blocks With Incorrect Timestamp Could Be Finalized
### Description
In `_finalizeBlocks` of `ZkEvmV2`, the current block timestamp `blockInfo.l2BlockTimestamp` should be greater or equal than the last L2 block timestamp and less or equal than the L1 block timestamp when `_finalizeBlocks` is executed. 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 | true | false | ## Low: Events Are Missing `indexed` Attribute
### Description
Indexed event fields make the data more quickly accessible to off-chain tools that parse events, and adds them to a special data structure known as [“topics”](https://docs.soliditylang.org/en/v0.8.24/abi-spec.html#abi-events) instead of the data part of th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: Token burning to address(1).
### Description
**Description**
TokensFarm.sol, function withdraw
1300: _erc20Transfer(address(1), pendingAmount);
When a user pays a fine, the reward tokens are irretrievably destroyed, because they send to the address that you don't. Burn functionality needs verification from 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 | gas | other | true | false | ## Gas: No need to cache state reads if using once
### Description
https://github.com/code-423n4/2024-01-curves/blob/516aedb7b9a8d341d0d2666c23780d2bd8a9a600/contracts/Curves.sol#L394-L402
### Variable `supply` is only used therefore no need to cache `curvesTokenSupply[msg.sender]`
The variable `supply` is only use... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | oracle | false | false |
The rewards per market are proportional to their `totalBorrows` which can be changed by a large holder who deposits lots of collateral, takes out a huge borrow in the market, updates the rewards, and then unwinds the position.
They'll only pay gas fees as the borrow / repay can happen in the same block.
The `Comptrol... | Code4rena | 5 | Based Loans |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Data Signed Off-Chain May Be Out of Sync with the On-Chain State or the Current Market Condition
### Description
**Update**
Native team acknowledges the importance of the off-chain backend API in guaranteeing the security of the whole protocol. They plan to take the following actions to strengthen the overa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Bypass limit | true | true |
When a manager withdraws funds from Collateral.sol, there is a check in the `managerWithdrawHook` to confirm that they aren't pushing the contract below the minimum reserve balance.
```solidity
require(collateral.getReserve() - _amountAfterFee >= getMinReserve(), "reserve would fall below minimum");
```
However, a s... | Code4rena | 4 | prePO |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | initialization | false | false | ## Gas: State variables only set in the constructor should be declared `immutable`
### Description
Avoids a Gsset (**20000 gas**) in the constructor, and replaces each Gwarmacces (**100 gas**) with a `PUSH32` (**3 gas**).
*There are 11 instances of this issue. (For in-depth details on this and all further gas optimiz... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | overflow | false | false | ## High: Risk of overflow
### Description
**Description**
accTokenPerShare calculation utilizes 1e12*1e18*1e32 that is equal to 1e62. Max size of
unsigned integer (256) is 2**256-1 that is ~1e77. With high pool rate and low
rateDenominator such amount can cause an overflow.
**Recommendation**:
Handle or prevent 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: Invalid Code
### Description
## Incorrect value of the constant FUNDING_PERIOD_X18
**File:** `contracts/PrepEngineLp.sol`
**Language:** SOLIDITY
In the functions `matchOrderAmm`, `matchOrders`, and `swapAmm`, while retrieving the fee from the function `_feeAmountX18` for taker, it is required to pass th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: ClaggSyncAdapter._removeLiquidity() incorrectly withdraws ETH when token is WETH
### Description
In `ClaggSyncAdapter._removeLiquidity()`, when the token address is not native ETH, `syncRouter.burnLiquiditySingle()` is called with `withdrawMode = 1`:
```solidity
// data = abi.encode(token, receiver, 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... | skyward_49k | low | other | false | false | ## Low: The _frozenAccounts is private
### Description
The `_frozenAccounts` variable is used to store accounts that are frozen and banned from transferring assets. This mapping is currently private, which will make the inspection of the accounts that are frozen hard to perform off-chain and impossible on-chain.
### ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: iOS - APPLICATION ALLOWS SCREENSHOTS
### Description
The iOS application currently allows users to take screenshots of sensitive screens, such as those displaying private keys, seed phrases, or other confidential data. This behavior poses a security risk as screenshots can be inadvertently shared, stored in cl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary query the TWAP price
### Description
when `getAmountsForLiquidity` is called, it will call `_getDesiredAmountsForLiquidity` to get `amount0` and `amount1`.
Inside `_getDesiredAmountsForLiquidity`, it retrieves the slot0 price and TWAP price, then calculates the amount0/amount1 based on those pric... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 `_disableInitializers()` in constructor
### Description
**Description:** The `WorldLibertyFinancialV2`, `WorldLibertyFinancialVester` and `WorldLibertyFinancialRegistry` contracts are upgradeable but do not call `_disableInitializers()` in their constructor. In upgradeable contract patterns, this call... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | storage | true | false | ## Medium: Malicious manipulation of gas reserve can deny access to MIMOProxy
### Description
_Submitted by horsefacts, also found by giovannidisiena and Lambda_
### Vulnerability Details
The `MIMOProxy` contract defines a `minGasReserve` value as a storage variable:
[`MIMOProxy.sol#L18`](https://github.com/code-4... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | initialization | false | false | ## Gas: State variables only set in the constructor should be declared `immutable`
### Description
Avoids a Gsset (**20000 gas**) in the constructor, and replaces each Gwarmacces (**100 gas**) with a `PUSH32` (**3 gas**).
*There are 5 instances of this issue.* | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Withdrawing from Yearn to DInterest in a single step can save gas
### Description
`YVaultMarket.withdraw` withdraws funds from the YVaultMarket itself, measures the YVaultMarket’s new balance, and transfers the balance to `msg.sender` (figure 5.1).
```solidity
if (amountInShares > 0) {
vault.withdraw(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 | high | cross-chain | false | false | ## High: Potentially differentiating message senders
### Description
This warning is about inconsistent message sender address source (`msg.sender` and `_msgSender()`) usage in here: https://github.com/tosdis/TosDisFinance/tree/be50dbf8a52a8f919694498bf30394d328d88fbb/StakeMaster/contracts/FeeToken.sol#L37, https://gi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | storage | false | false | ## Medium: Missing slashing check
### Description
The `execute_burn` function from the **basset\_inj\_token\_binj** contract does not call the `CheckSlashing`entry point of the **basset\_inj\_hub contract** like all other Burn calls, leading to an incorrect **State** value in the **Hub** contract.
![execute_burn func... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `removeHook` should attempt to remove the context if it exists.
### Description
Within the `runExecutionHooks` modifier, it iterates through all registered execution hooks, triggers the `preExecutionHook`, and sets the hook's `context`. Then, at the end of execution, it iterates again, triggers the `postExe... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.