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 | signature | false | false | ## Low: Users can reset the status of their `firstPurchase` on the `referralData` when the `stablecoin` doesn't revert on transfers to `address(0)`
### Description
**Description:** Users can create a referral to get a discount by calling [`ReferralManager::createReferral`](https://github.com/remora-projects/remora-dyn... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Implementation Discrepancies With RPIP Specifications
### Description
The following implementation discrepancies with the RPIP specifications were observed:
- **RPIP-31** - "As the controller of the RPL for a node, I MUST be able to trigger a claim of RPL rewards and restake a portion. If a node’s RPL withdra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insufficient event emitting
### Description
In some edge cases it may be not so easy to obtain the wallet owner address and address of the factory that created it.
### Recommendation
We recommend adding the wallet owner and the factory address to the [`Deployed` event](https://github.com/EnsoFinance/shortcuts... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | critical | token | true | true | ## Critical: Function `claimEffectiveBalance()` may consistently revert, making it impossible to complete queue withdrawals
### Description
The function attempts to remove the withdrawal at index `0`, while it uses the withdrawal at index `i` to call `completeQueuedWithdrawal()`. Since each withdrawal can only be comp... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | token | true | false | ## High: OUSD.changeSupply should require rebasingCreditsPerToken > 0
### Description
In `OUSD.sol`, the function `changeSupply` is used to inflate or deflate the money supply of rebasing accounts.
```solidity
function changeSupply ( uint256 _newTotalSupply )
external
onlyVault
returns ( uint256 )
{
require (_total... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Referencing the gateway balance in LockingController.increaseUnwindingEpochs can DoS the
### Description
LockedPositionTokens are transferable unrestricted until used to vote. This allows holders to perform blind transfers to the gateway contract. The above capability coupled with the `LockingController.incre... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: messageHandlers() can potentially send system messages
### Description
Via function `file()`, the `messageHandlers()` can be set for all message types, including the types defined in enum `Call`. In `_dispatch()`, they will only be used if not matched with any of the detected types. However, this includes `id ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Gas: `quoteCustomRedemption()` loop
### Description
### `nonce`
Savings: `100*basketNonces.length`
[Here](https://github.com/reserve-protocol/protocol/blob/c4ec2473bbcb4831d62af55d275368e73e16b984/contracts/p1/BasketHandler.sol#L398) nonce is being read each iteration.
It can be cached outside of the loop.
### `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 | other | true | false | ## Gas: `<array>.length` should not be looked up in every loop of a `for`-loop
### Description
The overheads outlined below are _PER LOOP_, excluding the first loop
* storage arrays incur a Gwarmaccess (**100 gas**)
* memory arrays use `MLOAD` (**3 gas**)
* calldata arrays use `CALLDATALOAD` (**3 gas**)
Caching the l... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | true | false | ## Low: Organizers are not incentivized to deploy and distribute to winners causing that winners may not to be rewarded for a long time and force the protocol owner to manage the distribution
### Description
The organizer can deploy and distribute to winners at any time without restriction about the contest expiration... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: verify_origin() previous_sender may be forged
### Description
in `AMPPkt.verify_origin()` does not verify the legitimacy of the `previous_sender` and can be specified at will, leading to security risks.
### Impact
If `AMPCtx.previous_sender` can be specified arbitrarily, security checks that depend on it wil... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Insolvency: The `Lottery` may incorrectly consider a year old jackpot ticket as unclaimed and increase `currentNetProfit` by its prize while it was actually claimed
### Description
### Impact
According to the [documentation](https://docs.wenwin.com/wenwin-lottery/the-game):
> "Winning tickets have up to 1... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | front-running | true | false | ## Low: Malicious user can game curator rewards distribution model in certain conditions
### Description
### Context
The `distribute()` function in CuratorRewardsDistributor distributes curator rewards accumulated through different artId mints under a `credId`. The `balanceOf[credId]` is distributed to users who hold... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: getAmountOut Does Not Adjust The Pool's Reserve Values Based on the liquidityDelta Parameter
### Description
The `liquidityDelta` parameter allows a caller to adjust the liquidity in a pool before simulating a swap. However, corresponding adjustments are not made to the per-pool reserves, `virtualX` and `vi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Kerosene collateral is not being moved on liquidation, exposing liquidators to loss
### Description
When a position's collateral ratio drops below 150%, it is subject to liquidation. Upon liquidation, the liquidator burns a quantity of DYAD equal to the target Note’s DYAD minted balance, and in return receive... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | overflow | true | false | ## Gas: Use unchecked arithmetic in `processInclusionProofKeccak` and `processInclusionProofSha256` functions
### Description
The `processInclusionProofKeccak` and `processInclusionProofSha256` functions in the `Merkle` contract include unnecessary arithmetic checks for incrementing `uint256 i` in a for-loop. By using... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Erroneous test suite
### Description
The testing suite does not run after following [the instructions in the README file](https://github.com/propsproject/props-token-distribution/blob/eaf0c6fddd320a258a9d7531d72d07a830fae58a/README.md) of the project.
As the test suite was left outside the audit’s scope, ple... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `ChainlinkUtil::getPrice` doesn't check for stale price
### Description
**Description:** [`ChainlinkUtil::getPrice`](https://github.com/zaros-labs/zaros-core-audit/blob/de09d030c780942b70f1bebcb2d245214144acd2/src/external/chainlink/ChainlinkUtil.sol#L32-L33) doesn't [check for stale prices](https://medium.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redundant Double Wrapping
### Description
## Vulnerability Assessment
The vulnerability is rooted in `CacheWrap` attempting double wrapping of the storage, potentially resulting in subsequent cache writes getting stuck in the first cache layer and not properly persisting to the underlying store.
`CacheWrap... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: IF CONDITIONS CAN BE OPTIMISED
### Description
Some **if** conditions on the contract using unnecessary boolean comparisons. Removing these boolean comparisons can optimize gas usage during the deployment of contract.
Code Location
-------------
### Recommendation
**SOLVED:** The issue was fixed by removing ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [24] Missing key protection against the Zeta token contract when withdrawing wZETA
### Description
*Note: At the judge’s request [here](https://github.com/code-423n4/2023-11-zetachain-findings/issues/164#issuecomment-1906690237), this downgraded issue from the same warden has been included in this report for 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 | cross-chain | true | false | ## Low: Incorrect `interfaceId` check in `_withdrawToChain()`
### Description
`MagnetarMarketModule._withdrawtoChain()` will check if the asset supports cross chain transfer using `supportsInterface()` as follows:
However, LayerZero `BaseOFTV2sol` that supports `sendFrom()` is actually returning `type(IOFTV2).interf... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | token | false | false | ## Low: No way to compound deposited supported vault assets into `sUSDe` stake during yield phase
### Description
Once the yield phase has been enabled, `pUSDeVault` still allows new supported vaults to be added and deposits via supported vaults.
However for supported vaults which are not `sUSDe`, there is no way 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... | solodit_api | high | Validation | true | false | ## Severity: High Risk
## Context
- `OperatorsRegistry.1.sol#L241`
- `OperatorsRegistry.1.sol#L428-L430`
## Description
For the subtraction operation in `OperatorsRegistry.1.sol#L428-L430` to not underflow and revert, there should be an assumption that
```
operators[selectedOperatorIndex].limit >= operators[selecte... | Spearbit | 4 | Liquid Collective |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | initialization | true | false | ## Gas: Unnecessary variables in `L1WethBridge.sol`
### Description
**Function `initialize`:**
Variables `l2WethBridgeImplementationBytecodeHash` and `l2WethBridgeProxyBytecodeHash` are used only once, which means they don't need to be declared at all. The code snippet below can be changed from:
[File: ethereum/cont... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Use a single file for all system-wide constants
### Description
There are many addresses and constants used in the system. It is recommended to put the most used ones in one file (for example constants.sol, use inheritance to access these values)
This will help with readability and easier maintenance for fu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: smartWallet address is not guaranteed correct. ETH may be lost
### Description
Liquid staking manager call `function withdrawETHForStaking(address _smartWallet, uint256 _amount)` to withdraw ETH for staking. It's manager's responsibility to set the correct `_smartWallet` address. However, there is no way 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 | access-control | true | false | ## Low: RETURN VALUE NOT STORED
### Description
The return value of an external call is not stored in a local or state variable.
* **Code Location**
```
function _supportMarket(MToken mToken) external returns (uint) {
if (msg.sender != admin) {
return fail(Error.UNAUTHORIZED, FailureInfo.SUPPORT_MARKET_OWNER_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 | oracle | false | false | ## Medium: Missing `LDFType` type validation against `ShiftMode` can result in losses due disabled surge fees
### Description
**Description:** While it is not required, some existing LDFs shift their liquidity distribution based on behavior derived from the TWAP oracle. If the `ShiftMode` is specified as the `STATIC` ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Minor improvements to code/comments
### Description
## Context
- TokenFlow.sol#L12-L13
- TokenFlow.sol#L35-L43
- TransientNetflows.sol#L6
## Description/Recommendation
1. **TransientNetflows.sol#L6**
Typo: "An helper" should be "A helper".
2. **TokenFlow.sol#L12-L13**
Visibility is missing for both ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [N‑06] Redundant cast
### Description
The type of the variable is the same as the type to which the variable is being cast.
*There is 1 instance of this issue:* | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | false | false | ## High: Strategy migration reverts after Maker liquidation
### Description
Unlikely, but possible situation when `Maker` collateral will be liquidated. In this case all operations with collateral will be reverted because the owner would be changed. After the liquidation you can't migrate to a new strategy because `pr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [05] `CoreRef::emergencyAction` is susceptible to returnbomb attack
### Description
Emergency action defined in `CoreRef.sol` which is inherited from all the contracts is a good addition which can be used for various purposes (rescuing tokens, executing certain functions, etc.) but it does not use assembly for... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Centralization Risks
### Description
The `OdosLimitOrderRouter` contract has two roles, `owner` and `filler`, with privileged rights to perform admin tasks and need to be trusted.
* The `owner` role can add and remove addresses to and from the `filler` role, swap tokens held by the `OdosLimitOrderRouter` cont... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | true | false | ## Low: Issuer can underpay for AMKT because values are rounded down
### Description
When `issue()` is called to mint new `AMKT`, we calculate the `underlyingAmount` of each asset to be deposited by multiplying the real units (nominal units discounted for fees) by the amount of `AMKT` that is being minted.
All multip... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: multisigHash should have an expiration deadline
### Description
Currently, `multisigHash` statements do not have an expiry date. This poses some risks in case of lowering the `threshold` variable or some validators going malicious at some point in time which may cause some previously malicious `multisigHash` 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 | access-control | false | false | ## Low: Optimisation - Remove onlyOwnerOrApproved fromaddToPerpetual()
### Description
Description
The function addToPerpetual() allows a user to increase their margin by transferring additional funds to the
perpetual.
This function has the modifier onlyOwnerOrApproved which ensures the sender of the transaction has 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 | oracle | false | false | ## High: Duplicate Request Rewards
### Description
In the `VotingV2` contract the [`_updateAccountSlashingTrackers`](https://github.com/UMAprotocol/protocol/blob/7938617bf79854811959eb605237edf6bdccbc90/packages/core/contracts/oracle/implementation/VotingV2.sol#L831)function contains an optimization that marks unresol... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | front-running | false | false | ## Low: Admin Fee Manipulation Combined with Front-Running Users' Transactions May Result in Overcharging of Fees
### Description
**Severity**: Low
**Status**: Resolved
**Description**:
The admin can exploit the setFeeConfig() function to manipulate fees right before users' transactions, effectively front-running u... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Semantic overload
### Description
The [`ScannerRegistryEnable` contract](https://github.com/forta-protocol/forta-token/blob/92d7a7ddd6672a7530a4bfc532d0d697e7f12744/contracts/components/scanners/ScannerRegistryEnable.sol#L9) implements the functionality for enabling and disabling scanners, but it also [extends... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | Validation | true | true | ## Lines of code
https://github.com/code-423n4/2022-11-stakehouse/blob/4b6828e9c807f2f7c569e6d721ca1289f7cf7112/contracts/liquid-staking/ETHPoolLPFactory.sol#L76
https://github.com/code-423n4/2022-11-stakehouse/blob/4b6828e9c807f2f7c569e6d721ca1289f7cf7112/contracts/liquid-staking/StakingFundsVault.sol#L380
https://gi... | Code4rena | 4 | Stakehouse 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 | gas | other | false | false | ## Gas: `internal` functions only called once can be inlined to save gas
### Description
Not inlining costs **20 to 40 gas** because of two extra `JUMP` instructions and additional stack operations needed for function calls.
*There are 15 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 | token | false | false | ## Low: Max Supply Inconsistency
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `5f06d8ba2746d3e17305e57487f9e566a14d558f`. The client provided the following explanation:
> We are now overrriding the `_maxSupply` function to set max Supply to 1 billion tokens.
**File(s) affected:**`Powerlo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | medium | token | true | true | ## Medium: DAO membership fees cannot be retrieved by the creator
### Description
The DAO membership fee taken from users who invoke [`MembershipFactory::joinDAO`](https://github.com/OneWpOrg/audit-2024-10-oneworld/blob/416630e46ea6f0e9bd9bdd0aea6a48119d0b515a/contracts/dao/MembershipFactory.sol#L120-L133) is split be... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Fixed _minimumTransactionAmount is used for shares that grow in value, pricing out users
### Description
The `_minimumTransactionAmount` is compared against amounts of all types: base, vault shares, LP shares, bonds. The vault shares and LP shares will usually grow in value, so the minimum transaction amount 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 | true | false | ## Low: `updateDepositTime()` allows for setting the deposit close time in the past
### Description
`updateDepositTime()` has the following input:
> /// @param \_depositTime New deposit close time
We can see that the input is the deposit close time. Upon calling that function, we only have this check regarding that ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Scripts don 't set rewardsDuration on farm
### Description
The scripts and the corresponding spell never set a reward duration on the farm contract (StakingRewards instance). It currently defaults to a 7-day reward duration.
### Recommendation
Confirm the 7-day reward duration or consider explicitly setting 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 | overflow | false | false | ## Low: Deposit can revert on underflow
### Description
If a pool is dramatically unbalanced, deposits will revert during the calculation of [the `shift` variable in the `_getVirtualAmountsForDepositImpl` function](https://github.com/1inch/fixed-rate-swap/blob/b1600f61b77b6051388e6fb2cb0be776c5bcf2d1/contracts/FixedRa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistency in Delegate Validation
### Description
## Analysis of Current Implementation
In the current implementation, there is a check to ensure that if `delegated_amount` is specified (`Some`), `delegate_index` should also be specified (`Some`). However, it is not explicitly verified that the opposite is... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Unaccounted external vault investment losses can create withdrawal shortfalls
### Description
The protocol invests idle assets in external vaults like Yearn for yield generation, but fails to properly account for losses when divesting. When changing the address of an external vault, the protocol divests fro... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No access control in `startDistribution()`
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
The initial state of the `ERC20Distribution.sol/ERC20DistributionNative.sol` is paused (reasons
are unclear, might be due to waiting for the kyc approver to be assigned first or some othe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unused struct
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
IWaveContract.sol has a struct TokenReward which is unused but inherited.
**Recommendation**:
Remove the unused struct. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Nested abi.encodedPacked calls for options payload are redundant and inefficient
### Description
The `_createReceiveOption` and `_createNativeDropOption` functions are performing nested calls to `abi.encodePacked` on inner elements, which is unnecessary.
### Recommendation
It is recommended to remove the nested... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Rage quit modifications should be limited to provide stronger guarantees to party members
### Description
Party hosts can arbitrarily change the rage quit settings overriding any existing preset.
Rage quit is implemented in the `PartyGovernanceNFT` contract by using a timestamp. Leaving aside the cases of ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | true | false | ## Low: Inconsistent Permanent Rollup State Validation in Fee Parameter Updates
### Description
The `AdminFacet` contract contains an inconsistency in how it enforces permanent rollup state constraints across different fee-related functions. While `setPubdataPricingMode()` and `makePermanentRollup()` properly 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 | other | true | false | ## Low: Insufficient event information in increaseTHUSDDebt and decreaseTHUSDDebt functions
### Description
The `increaseTHUSDDebt` and `decreaseTHUSDDebt` functions emit an event whenever THUSD Debt is updated. However, the emitted event does not provide any information regarding whether the trigger was an increase or ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unused Variable `ipaymentToken`
### Description
This issue has been identified in the [`RestrictedTokenAward`](https://github.com/MetaLex-Tech/MetaVesT/blob/b614405e60bce8b852e46d06c03fd47b04d86dde/src/RestrictedTokenAllocation.sol#L8) and [`TokenOptionAllocation`](https://github.com/MetaLex-Tech/MetaVesT/blob... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | Withdraw Pattern | true | false | _Submitted by xiaoming90, also found by berndartmueller_
When users withdraw their strike escrowed in Putty contract, Putty will charge a certain amount of fee from the strike amount. The fee will first be sent to the contract owner, and the remaining strike amount will then be sent to the users.
<https://github.com/... | Code4rena | 4.647059 | Putty |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect comment - Fee should be between 1/6 and 1/2 of the growth in sqrt(k)
### Description
### Instances(1)
ThrusterPair.sol allows fee/yieldCut to be adjusted between 1/6 and 1/2 (15\% to 50\%) of growth in sqrt(k). And the yieldCut is calculated in `_mintYieldCut()`.
However, `_mintYieldCut()` has inc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | token | true | false | ## High: 7] The LP can steal the user's funds by initiating a refund before the user executes the redeem function
### Description
**Severity:** High
**Path:** chains/evm/solidity/contracts/HashedTimeLockERC20.sol#L172-L176
**Description:** The timelock for all user and LP locks is enforced to be at least 15 minutes... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | front-running | true | false | ## Low: `approve` should be replaced with `safeApprove` or `safeIncreaseAllowance() / safeDecreaseAllowance()`
### Description
`approve` is subject to a known front-running attack. Consider using `safeApprove` instead:
Keep in mind though that it would be actually better to replace safeApprove() with safeIncreaseAll... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | storage | true | false | ## Gas: Pack structs by putting variables that can fit together next to each other
### Description
As the solidity EVM works with 32 bytes, variables less than 32 bytes should be packed inside a struct so that they can be stored in the same slot, this saves gas when writing to storage ~20000 gas.
### StrategyDetailsP... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Event is missing `indexed` fields
### Description
Each `event` should use three `indexed` fields if there are three or more fields
*There are 5 instances of this issue:*
**[HardlyDifficult (judge) commented](https://github.com/code-423n4/2022-06-nibbl-findings/issues/139#issuecomment-1173978577):**
> Great... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Malicious user can intentionally split their mint operations to consume huge amounts of Topia tokens for bridging
### Description
When the whitelist phase is over, users can `mint` any non-zero amount of node key tokens, and eventually, it will be bridged to the L2 for every `mint` operation. This allows malic... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing nonce tracking in EIP-7683 integration allows for duplicate intent openings
### Description
The `Eco7683OriginSettler` contract's `openFor()` function fails to track and validate nonces, allowing multiple openings of the same intent. This can lead to unauthorized token transfers from users who have ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | front-running | false | false | ## High: AUD lending market could affect the protocol
### Description
In case an AUD token lending market appears, an attacker could use this market to influence the result of a governance’s proposal, which could lead to a take over of the protocol.
An attacker would only need to stake tokens for a brief moment with... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | true | false | ## Low: eth-bridge Decoder.next_u8 method could panic if used
### Description
If the `eth-bridge` pallet's `Decoder.next_u8` method (figure 22.1) were used in the code, it could panic if provided untrusted input. We set the severity of this finding to low because the code uses neither this method nor its caller, the `... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Bad name for the function
### Description
Th function name was copypasted from the previous function.
https://github.com/FantiumAG/smart-contracts/blob/a2d126453c1105028f12277b8f342d2cdbf01a77/contracts/claiming/FantiumClaimingV1.sol#L306-L309
https://github.com/FantiumAG/smart-contracts/blob/a2d126453c1105028... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrectly Calculated Reward Period
### Description
## Accumulate Strategy's Reward
The `accumulate_strategy_reward` function updates the `last_reward_time` if the `emission_per_second` is greater than zero. Thus, if the emission rate is set to zero for a period of time and then set to a positive value, 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 | flash-loan | true | false | ## Medium: Attacker can capture `VETH-WETH` depeg profits through a malicious pool, rendering rebalancer useless if VETH Price > WETH Price
### Description
`LamboRebalanceOnUniwap::rebalance` accepts a `directionMask` argument, an arbitrary uint256 mask. It “OR”s this mask with uniswapPool and passes it to the OKX Rou... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use custom errors instead of string error messages
### Description
### Gas Report
### Lines
For full list of line references, see warden's [original submission](https://github.com/code-423n4/2022-07-ens-findings/issues/176).
**[jefflau (ENS) commented](https://github.com/code-423n4/2022-07-ens-findings/iss... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | true | false | ## Low: ToDo Comments and Commented Out Code
### Description
The codebase contains several instances of `ToDo` comments and commented-out code. While these do not directly cause security vulnerabilities or impact the audit outcome as long as the code is functional, their presence can aid attackers in identifying poten... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Missing Check for Equal Lengths of Arrays ✓ Fixed
### Description
**contracts/CL/core/RamsesV3Factory.sol:L130\-L139**
```
function setPoolFeeProtocolBatch(address[] calldata pools, uint8[] calldata _feeProtocols) external restricted {
for (uint i; i < pools.length; i++) {
require(_feeProtocols[i] <= 100... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: jumpStartAccount should be subject to the same approval checks as regular borrow. ✓ Fixed
### Description
`InfinityPool` contract has the ability to kick start an account that will have a debt position in this pool.
### Recommendation
Will not be fixed due to the complexity of the fix which will require passi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## High: Withdraw check can be bypassed
### Description
In VaultEscrow, we will withdraw assets from the Vault in the core chain via function withdraw(). In withdraw() function, we have one security sanity check. This will make sure that we will not withdraw more asset than what we deposit in the vault.
But this secu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 State Variables
### Description
**Update**
The client fixed the issue in commit `02f8057c6f729201491a20618e9e4c66b6ab7e65` by initializing the state variables in the `init()` function.
**File(s) affected:**`FixedLock.sol`
**Description:** In the `FixedLock` contract, the code in the `init()` fu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Inaccurate calculation of getTotalEffectiveRPLStake
### Description
Calculations for `RocketNodeStaking.getTotalEffectiveRPLStake()` will produce unwanted results when some nodes have more than the 150% capacity (`node.per.minipool.stake.maximum`), but the network as a whole has not yet achieved the maximum pe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Validate correctness of proposal before creating.
### Description
**Description**
Governance.sol: functions proposeOwnersChange(), proposeMinConfirmationsChange().
Currently, the correctness of values passed to proposals are verified in functions
executeOwnersChange() in lines 323, 328 and executeMinConfir... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [24] `L1SharedBridge.sol` might encounter accounting errors
### Description
### Proof of Concept
Take a look at the new implementation of the Shared Bridge and how tokens are gotten from the legacy bridge, https://github.com/code-423n4/2024-03-zksync/blob/4f0ba34f34a864c354c7e8c47643ed8f4a250e13/code/contract... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Merkle Root Is Mutable Mid-Airdrop
### Description
The owner can change `merkleRoot` at any time. Already-registered users remain unaffected (state stored), but future registrations switch to the new root, which can change eligibility without warning.
### Impact
Trust/governance risk: operator can exclude/rep... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Some proposed callers might not be confirmed
### Description
LoanManagerParameterSetter.sol has a two-step process of adding callers. The issue is `addCallers()` doesn’t check whether `_callers.length == proposedCallers.length`. If `_callers.length < proposedCaller.length`, some `proposedCallers`’ indexes 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 | low | other | true | false | ## Low: Code Maturity
### Description
## Documentation Review
## Finding 1
The documentation for the `RawNode` structure in nodes states that `` is a 36-byte array, however, it should be clarified that the actual bytes of the key extension are contained in a 34-byte array. This is because the first two bytes at the ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: GeneralRepay#repayJUSD returns excess USDC to `to` address rather than msg.sender
### Description
When using GeneralRepay#repayJUSD to repay a position on JUSDBank, any excess tokens are sent to the `to` address. While this is fine for users that are repaying their own debt this is not good when repaying fo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Minimum Output Validation in HODL Token Purchase
### Description
The HODL contract contains an issue in the `_buyHodl()` function where it fails to validate the minimum amount of HODL tokens that users should receive when purchasing. This function is called internally by the public `buy()` function.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [03] Delta neutrality caution
### Description
Users should be cautioned about the impermanent losses entailed arising from the delta-neutral stability strategy adopted by the protocol, specifically if the short positions were to encounter hefty losses. Apparently, the users could have held on to their collater... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Strict Equality Check for `_fee.nativeFee` May Cause Soft Dos
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `c5a17b3c4f68967a218e155f7ad774a0451a6266`.
Additional fix in: `9e9be69198710c37cb915c05f84653eb166ba076`.
**File(s) affected:**`contracts/CampTimelockEscrow.sol`
**Descrip... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect assumption that one (1) Pendle Standard Yield (SY) token is equal to one (1) Yield Token when computing the price in the oracle
### Description
-
### Impact
High. Price computed will be inflated, leading collateral to be overvalued. As a result, users are allowed to borrow more than expected, affec... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Ganache CLI is configured to listen on all network interfaces
### Description
Ganache CLI is used as the Tezos blockchain for tests. When it is started, it is told to bind to address **0.0.0.0**, causing it to listen on all interfaces. This poses unnecessary risk to developers who run the tests. The wXTZ docum... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Calling `repay` function sends less DOLA to `Market` contract when `forceReplenish` function is not called while it could be called
### Description
When a user incurs a DBR deficit, a replenisher can call the `forceReplenish` function to force the user to replenish DBR. However, there is no guarantee that 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 | false | false | ## Gas: `SDLVesting::vestedAmount` gas optimizations
### Description
**Description:** The `SDLVesting::vestedAmount` function computes the `totalAllocation` before the `if (_timestamp < start) return 0;` check. In the event that check returns true and the function returns 0 then the gas spent on that computation is wa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Message Anchoring on L2 Is Not Pausable
### Description
Messages can be anchored on L2 by addresses having the `L1_L2_MESSAGE_SETTER_ROLE` role. This is done by calling the `addL1L2MessageHashes` or the `anchorL1L2MessageHashes` function. However, these functions are not currently pausable. Making them pausabl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Any User can mint any amount of WStETH in the WStETHMock.sol and StETHMock.sol
### Description
Any user can pass in an address and an amount of their choice which will then mint the specified amount of WStETH/StETHMock to the specified address.
https://github.com/Cyfrin/2024-01-Morpheus/blob/main/contracts/mo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ArrakisMetaVaultPrivate::fund No slippage control on private vault deposit can cause unlimited loss to owner
### Description
An attacker can front-run a deposit transaction for an `ArrakisMetaVaultPrivate`, forcing the depositor to deposit in an unbalanced way. This increases liquidity around an unfavorable 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 | medium | other | true | false | ## Medium: `getTotalProtocolHype()` includes pending withdrawal amounts
### Description
The `getTotalProtocolHype()` function in `StakingCore.sol` calculates the total HYPE owned by the protocol, but fails to account for HYPE that has already been requested for withdrawal but not yet finalized. This leads to inflated ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | signature | false | false | ## Medium: `queue()` should increase `proposalsPassed` instead of `proposalsCreated`
### Description
`proposalsCreated` will be increased in `verifyProposal()`, `queue()` should increase `proposalsPassed`.
### Impact
Due to the presence of `setProposalsCreatedMultiplier()` and `setProposalsPassedMultiplier()`, the mu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Wallet can be imported from more than 12 words
### Description
A wallet can be created with more than 12 words as a mnemonic. The wallet address is generated according to the provided excess words and seems to be fully stored. The problem arises in the “Show recovery phrase” view in Settings. This view supp... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `emergencyEnd` does not emit an event
### Description
The `emergencyEnd` function does not emit an event.
This leads to an incapacity to monitor the use of this functionality. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | false | false | ## Low: `Signing.hashSingleOrder()` does not use `block.chainId` when verifying signatures
### Description
The `Signing.hashSingleOrder()` function fails to incorporate **block.chainId** when verifying signatures. This omission allows for the replayability of signatures across different blockchain networks, which coul... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | overflow | true | false | ## Gas: Unnecessary use of tryDiv for division with a constant
### Description
The `_calculateBridgeFee` function from `Bridge.sol` uses the `tryDiv` function to perform division, even though `b` (the divisor) is always 100. The function checks for division by zero, but since the divisor is constant and non-zero, this... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | true | false | ## Low: `public` functions not called by the contract should be declared `external` instead
### Description
Contracts [are allowed](https://docs.soliditylang.org/en/latest/contracts.html#function-overriding) to override their parents' functions and change the visibility from `external` to `public`.
*There are 3 insta... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.