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
reentrancy
false
false
## Low: 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 typic...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
dos
false
false
## Medium: Restoration Server result.RestoredBalance nil pointer dereference DoS ### Description The restoration server is vulnerable to a nil pointer dereference panic (`panic: runtime error: invalid memory address or nil pointer dereference`) if its `gethclient` returns a null `json` for `restorationProofResult.Rest...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unsafe use of `transfer()`/`transferFrom()` with `IERC20` ### Description _Note: this finding was reported via the winning [Automated Findings report](https://gist.github.com/code423n4/3c6507b76ca940e11c287862cb4a1fd3). It was declared out of scope for the audit, but is being included here for completeness....
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `addOperator` security risk for the user's funds ### Description The current implementation of the `allowList` allows an operator to: - remove collateral and add debt to the user's vault - move the user's gem tokens - transfer the user's underlying tokens In a scenario where Alice intends to grant permission...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: BondNFTs can revert when transferred ### Description `BondNFT`s should be transferrable. According the the proposal and the sponsor, `BondNFT`s should could be sold and borrowed against. The proposal for context: The current implementation limits selling/depositing to only the same day that rewards are 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
token
true
false
## High: Making a payment to the protocol with `_dontMint` parameter will result in lost fund for user. ### Description User will have their funds lost if they tries to pay the protocol with `_dontMint = False`. A payment made with this parameter set should increase the `creditsOf[]` balance of user. In `_processPaym...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Risk of Using Outdated Token Price Feed Data ### Description **Update** The team provided an analysis of the potential impact of an outdated token price feed and decided to keep it as it is. We agreed that in several cases, the result of not having an extra sanity check for the outdated oracle price feed is...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: [18] Convert simple `if`-statements to ternary expressions ### Description Converting some if statements to ternaries (such as `z = (a
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
token
true
false
## High: The implied value of a public vault can be impaired, liquidity providers can lose funds ### Description The implied value of a public vault can be impaired, liquidity providers can lose funds ### Impact Double counting of interest will result in a wrong lien slope, which will affect the vault's slope accumul...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Slippage protection is missing for the withdrawOnceLive ### Description When a user withdraws with `withdrawOnceLive()`, they intend to redeem a specific shares amount of exLST. However, depending on `availableWithdrawals()` amount, part—or even all—of the withdrawal may become blocked and placed into the `Blo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Signature Maleability and False Access Token Approval for Ownerless Contracts ### Description **Update** Marked as "Fixed" by the client. Addressed in: `c234f032d47383dc839c46b660a4091389c25f80`. The client provided the following explanation: > Recovering Signature with ECDSA Library **File(s) affected:**...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
medium
token
true
false
## Medium: `ComplianceServiceGlobalWhitelisted::newPreTransferCheck` and `preTransferCheck` allow blacklisted users to transfer tokens ### Description `ComplianceServiceGlobalWhitelisted::newPreTransferCheck` and `preTransferCheck` only enforce that the recipient of tokens is not blacklisted, but they don't check 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
cross-chain
true
false
## Low: Missing validation of orderDataType and incorrect EIP-712 encoding may break ERC-7683 re- quirement ### Description ERC-7683 specifies that: "A compliant cross-chain order type MUST be ABI decodable into either `GaslessCrossChainOrder` or `OnchainCrossChainOrder` type. Both these structs include a `bytes32 ord...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Precision Loss In Redistribution ### Description ## Record Redistribution in the Bottle Module The `record_redistribution` function in the Bottle module handles the redistribution of collateral and debt amounts to all Bottle users. This is done by dividing the collateral and debt amounts by the total stake...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary check in _deleteBidAndReturnFunds() ### Description The line that checks `currentBid.user` and reverts if it is equal to `address(0)` is unnecessary because all flows leading to the function `_deleteBidAndReturnFunds()` already check and ensure that it is only called when `currentBid.user` is not e...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
false
false
## Gas: `<x> += <y>` costs more gas than `<x> = <x> + <y>` for state variables ### Description Using the addition operator instead of plus-equals saves gas - [Exchange.sol#L316](https://github.com/code-423n4/2022-11-non-fungible/blob/main/contracts/Exchange.sol#L316) - [Exchange.sol#L574](https://github.com/code-423n...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Missing event emit in sweepPayoutToken() ### Description The `sweepPayoutToken()` function does not emit an event itself, but its call to `infrared.collectBribes()` emits the `BribesCollected` event. However, this will be the same event emitted when `infrared.collectBribes()` is called from either `sweepPayout...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect rounding direction in withdrawal share calculation ### Description The `withdraw()` function uses ceiling rounding when calculating the share ratio through `OperationsLib.getRatio()`. This calculation determines what portion of the user's `tokenOut` balance should be withdrawn based on the requested ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
overflow
true
false
## High: Right Shift Overflow Panic ### Description ## BatchedRangeProofU128Data::new `BatchedRangeProofU128Data::new` creates a new `BatchedRangeProofU128Data` instance, which includes generating a batched range proof for a set of commitments, values, bit lengths, and openings. It performs validation to ensure 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
true
false
## Low: Misleading variable naming/documentation ### Description The `recieveEthAsWeth` argument, if true, will do what the comment says: convert WETH to ETH, even though the variable name says the opposite. There is no way to know which one is right, without reading the code, which will lead to problems for callers o...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
access-control
true
false
## High: Unrestricted call to `setConfig` ### Description **Severity**: Critical **Status**: Resolved **Location:** TokenSaleUSDB.sol, TokenSaleETH.sol **description** The `setConfig()` function within the smart contracts poses a significant security risk due to its unrestricted accessibility. Any wallet or addre...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insufficient Validation On `lockType` When Staking May Cause Negligent Users To Temporarily Lose Their Stakes Until Admin Recovery ### Description **Severity**: Medium **Status**: Resolved **Description** When users stake into the staking contract they are able to supply an arbitrary `lockType` which may...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
signature
false
false
## Gas: Use `abi.encodeWithSelector` instead of `abi.encodeWithSignature` ### Description `abi.encodeWithSelector` is much cheaper than `abi.encodeWithSignature` because it doesn't require to compute the selector from the string. Reference: * * Affected source code: * [AccountantDelegator.sol#L27](https://git...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: In `pUSDeDepositor::deposit_viaSwap`, using `block.timestamp` in swap deadline is not very effective ### Description **Description:** [Using `block.timestamp` in a swap deadline](https://dacian.me/defi-slippage-attacks#heading-no-expiration-deadline) is not very effective since `block.timestamp` will be the bl...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improper Domain Separator Hash in _domainSeparatorV4() Function ### Description The `_domainSeparatorV4()` function in the `LibTractor` library uses an incorrect type hash which does not match the format of data it is supposed to represent. In EIP-712, the domain separator should match the format: `EIP712Do...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
liquidation
true
false
## High Risk Vulnerability Report ## Severity **High Risk** ## Context - **Files**: - `OverlayV1Market.sol#L345-L376` - `Position.sol#L221-L247` ## Description The `liquidate()` function checks if a position can be liquidated and, through the `liquidatable()` function, uses `maintenanceMarginFraction` as a fact...
Spearbit
5
Overlay
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
reentrancy
true
false
## Low: `_update` function lacks the `nonReentrant` modifier ### Description _Resolved_ All functions related to updating checkpoints are protected with the `nonReentrant` modifier to prevent reentrancy. However, the `_update` function, called during `transfer` and `transferFrom` operations to update checkpoints, 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...
solodit_api
medium
other
true
false
## Severity Medium Risk ## Description The vulnerability exists in the `_getBonusRewards()` function within the VRF callback logic. The function uses a hero's level directly in a probability calculation without implementing proper bounds checking. Specifically, the condition `if (rN < (level << 1))` creates a scenar...
Shieldify
4.5
Onchainheroes Fishingvoyages
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Can Lock Non-Full-Range Positions ### Description The protocol is meant to only lock full-range UniswapV3 positions. The logic in the [`lock` function](https://github.com/uncx-private-repos/liquidity-locker-univ3-contracts/blob/342c621cc93a13882601b30e547907877f3e3f86/contracts/UNCX_ProofOfReservesV2_...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Tokens with a no-op fallback function can be used to steal the ETH balance of `LP` ### Description **Impact:** High, because it can lead to stolen funds from the protocol **Likelihood:** Low, as it requires a token with a fallback function but without a `withdraw` function **Description** In `LP::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
signature
false
false
## Low: Multiple orders with the same orderHash cannot be executed in the same block ### Description Severity: Low Risk Context: Angstrom.sol#L151, Angstrom.sol#L240 Description: When an orderHash is invalidated, the same orderHash cannot be used again in the same block: function _invalidateOrderHash(bytes32 orderHash...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
overflow
false
false
## Medium: Unsafe Casting Used Throughout the Codebase ### Description Unsafe type casting, such as `uint32()` or `uint64()`, is used throughout the codebase of the project. Casting without bounds checking can cause integer overflows or underflows, leading to unexpected behaviour or unhandled crashes. ### Recommenda...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Implementation Deviates From Paper ### Description Some operations are done differently in the code compared to what is described in the [paper](https://eprint.iacr.org/archive/2019/953/1585767119.pdf): * The permutation polynomial is [defined using the Lagrange polynomial at index 0](https://github.com/Cons...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
solodit_api
medium
signature
false
false
Source: https://github.com/sherlock-audit/2023-02-hats-judging/issues/118 ## Found by Dug, minhtrng ## Summary `HatsSignerGateBase` does not check for a change of owners post-flight. This allows a group of actors to collude and replace opposing signers with cooperating signers, even though the replaced signers sti...
Sherlock
5
Hats
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `_getAtomicPrices()` uses stale oracle prices without validation ### Description The `_getAtomicPrices()` function in `ElytraDepositPoolV1` calls `oracle.getAssetPrice()` without checking if the price data is stale. While some oracles in the system track the last update time, the `getAssetPrice()` 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
other
false
false
## Low: Improper use of access modifiers. ### Description **Description** The whole functions in contract use “public” access modifiers but most of them can be called only externally. **Recommendation**: Use “external” access modifier in functions that can be called only externally.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Prohibition to create private pools with the factory NFT ### Description ### Impact Any [Factory NFTs](https://github.com/code-423n4/2023-04-caviar/blob/cd8a92667bcb6657f70657183769c244d04c015c/src/Factory.sol#L37) deposited into a Factory-PrivatePool can have all assets in the corresponding PrivatePools s...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
initialization
true
false
## High: Rate of decay not measured in veRAACToken::increase which allows users to unfairly boost voting power by calling this function ### Description The veRAACToken::increase function contains a critical vulnerability in the calculation of voting power (bias) when users increase their locked token amount. The 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
initialization
false
false
## Low: Lack of input validation ### Description The [`initialize`](https://github.com/graphprotocol/contracts/blob/d51553b3d70c61108852f0ffe1ed249254c91e9a/contracts/governance/GraphGovernance.sol#L34) function of the `GraphGovernance` contract is not validating the input parameter passed in. Consider adding proper...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Excessive Centralization ### Description In the `Auction` and `PoolFactory` contracts, all privileged methods are called by the contract owner. - https://github.com/clearpool-finance/permissionless-protocol/blob/f1f38c5ba83e2c3a68155042229b04678d9425ce/contracts/PoolFactory.sol - https://github.com/clearpool-...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: DEPENDENCIES SHOULD BE PINNED TO EXACT VERSIONS ### Description The application contains some external dependencies, some of which are not pinned to an exact version but set to a compatible version (^x.x.x). This can potentially enable dependency attacks, as observed with the event-stream package with the Copa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: FraxlendPair.sol is not fully EIP-4626 compliant ### Description _Submitted by 0x52, also found by berndartmueller, cryptphi, and Lambda_ ### Impact FraxlendPair.sol is not EIP-4626 compliant, variation from the standard could break composability and potentially lead to loss of funds. ### Proof of Conce...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: USDT token is settable more than once ### Description **Severity**: Low **Status**: Resolved **Description** In TradingStorage.sol - Method setTokens() can set the address of the USDT token more than once. In TradingVaultV2.sol, we have setUSDT() which does not accept resetting the USDT address. Therefore, ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Multiple `if`-statements with mutually-exclusive conditions should be changed to `if`-`else` statements ### Description If two conditions are the same, their blocks should be combined *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
medium
token
false
false
## Medium: The administrator can modify trusted functionality ### Description The `DiamondCutFacet` allows the `Owner` to [add a new facet with unaudited code](https://github.com/Cryptorubic/multi-proxy-rubic/blob/8843336c50ca43e5b5bbe970f17e284f63a96763/src/Libraries/LibDiamond.sol#L93). In combination with the Mediu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
other
true
true
## Critical: Impossible to reveal any drop boxes linked to codes once enough codes have been associated such that `remainingBoxesAmount == 0` ### Description In `DropBox::associateOneTimeCodeToAddress`, the `boxAmount` linked to allocated codes is deducted from `remainingBoxesAmount` storage: ```solidity // Decrease t...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Un-migratable handles might exist in Lens Protocol V1 ### Description In `LensHandles.sol`, the `_validateLocalNameMigration()` function is used to validate migrated handles: [LensHandles.sol#L210-L223](https://github.com/code-423n4/2023-07-lens/blob/main/contracts/namespaces/LensHandles.sol#L210-L223) As s...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
liquidation
false
false
## Medium: `priceTarget` is inconsistent in `StabilizerNode.stabilize` ### Description ### Impact `priceTarget` is inconsistent in `StabilizerNode.stabilize` so `stabilize` can do auction instead of selling malt and vice versa. ### Proof of Concept In `StabilizerNode.stabilize`, there is an early check using `_shou...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
dos
true
false
## Low: Extra and enforced options for `lzReceive` gas limit not handled properly ### Description `BoringVaultCrossChainDepositor.deposit()` receives `gasLimit` as a parameter. This value represents the amount of gas to be used in the `lzReceive` call by the Executor on the destination chain and is passed in `extraOpt...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
initialization
true
false
## High: partial_sha256_var_interstitial May Give the Same Hash State h for Different Data Objects if They Are Smaller Than message_size ### Description `partial_sha256_var_interstitial` function is used with a partially computed sha256 hash created with `partial_sha256_var_start` and a partial message to generate 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: ETHRegistrarController.register should revert rather than silently fail ✓ Fixed ### Description When called with an invalid commitment or unavailable domain, `ETHRegistrarController.register` refunds the sent ether and silently fails rather than `revert`ing: **ethregistrar/contracts/ETHRegistrarController.s...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
rounding
true
false
## Medium: OmoVault does not enforce supplyCap ### Description The `OmoVault.sol` contract has a `supplyCap` state variable and setter function, but this cap is not enforced in the `deposit()` or `mint()` functions. ```solidity function deposit( uint256 assets, address receiver ) public virtual override onlyW...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Require statement with multiple conditions ### Description There is a [`require` statement](https://github.com/matter-labs/zksync-2-dev/tree/534dc37c7b86753803a31b836f78896d18372e7e/contracts/ethereum/contracts/common/AllowList.sol#L98-L103) in the [`AllowList` contract](https://github.com/matter-labs/zksync-2...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `TimeswapPair.sol#mint()` Malicious user/attacker can mint new liquidity with an extremely small amount of `yIncrease` and malfunction the pair with the maturity ### Description _Submitted by WatchPug_ The current implementation of `TimeswapPair.sol#mint()` allows the caller to specify an arbitrary value ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 more abstract name for function parameter ### Description The `broadcast` and `broadcastAndStore` methods in `ResourceFactory` have a `waterfall` parameter but some other type of resource might be used - for example a Collection or a Split. Rename parameter from `waterfall` to `resource` in both methods.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: LayerZero Gas Refunds Are Not Handled ### Description **Update** Marked as "Acknowledged" by the client. Refunded fees will remain in the contract and subsidise future fees. **File(s) affected:**`CampTimelockEscrowNativeOFT.sol` **Description:** This contract exposes an empty `receive()` function. This is n...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
oracle
false
false
## Low: Unlocked Pragma ### Description **Update** Marked as "Fixed" by the client. Addressed in: `2b24c53ca92881da0041d72e616d8c3d5903bdd4`. The client provided the following explanation: > Fixed solidity version to 0.7.6 to the contracts related to SafeguardPool.sol **File(s) affected:**`ChainlinkUtils.sol`, `Safe...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Possibility of Accepting Messages From Compromised Remotes ### Description **Update** Trusted remote check has been added to `retryMessage()`. **Update** Marked as "Fixed" by the client. Addressed in: `70de9ffb550cafbe7b1d5cbc35dba8b24e89ede3`. **File(s) affected:**`OmnichainGovernanceExecutor.sol` **Descr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Division by Zero in Quadratic Vote Weight Calculation ### Description The `QuadraticGitcoinPassportStrategy` contract contains a critical division by zero vulnerability in its vote weight calculation logic. The issue occurs in the proportional match rate calculation for Gitcoin Passport scores: ``` functio...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [3] Inconsistent tabs vs spaces ### Description Most lines use tabs, but some use spaces, which leads to alignment issues
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Rounding directions ### Description ## Context - **MarketMath.sol** - Line 78 - Lines 122-123 - **BorrowImpl.sol** - Line 83 ## Description/Recommendation - **BorrowImpl.sol#L83**: `borrowedAssets` is rounded up; it would be best to underestimate this value when checking that the borrower does not ove...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `eqFee` is calculated with potentially outdated balance deficit zone ### Description **Update** Marked as "Acknowledged" by the client. The client provided the following explanation: > The source pool calculates the destination pool's liquidity based on credit information, making it logical for the source ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
solodit_api
high
oracle
true
true
## Vulnerability Report ## Severity **High Risk** ## Context **File:** LP.sol **Lines:** L87-L88 ```solidity uint256 value = PriceOracle(msg.sender).price(tokenA).fmul(balanceA, FixedPointMathLib.WAD) + ,! PriceOracle(msg.sender).price(tokenB).fmul(balanceB, FixedPointMathLib.WAD); ,! ``` ## Situation This uti...
Spearbit
5
Sense
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
logic-error
true
false
## Low: Unnecessary `currency1` native token checks ### Description Uniswap currency pairs are sorted by address. If either of the two pool reserve tokens is a native token, specified as `address(0)`, it can only be the `currency0` as `currency1` will always have a greater address. As such, native token validation per...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
## Low: Dangerous max approvals to underlying protocols ### Description Within the constructor of various Hyperdrive instances, an approval with `type(uint256).max` is used on the `baseToken` to the underlying protocol. The design decision was probably made so that an approval call is not performed at every deposit, 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
token
false
false
## Low: Absence of SafeERC20 library in ERC20 asset transfers ### Description **Severity**: Low **Status**: Resolved **Description** The smart contracts under review do not incorporate the SafeERC20 library when conducting ERC20 token transfers. This has a negative impact when the ERC20 involved in the `transfer` ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Best practice: use two-factor authentication ### Description The application does not use a second authentication factor. A 2-factor application solution such as TOTPs is not used. During phone enrollment with the desktop application, some form of two-factor application should be used to prevent malicious enro...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ForbiddenMethodsPolicy May Block More Transactions Than Intended ### Description In `ForbiddenMethodsPolicy`, `tx.origin`, `block.number`, and `tx.gasprice` are used to remember the context when a forbidden method is entered and the policy reverts in the `postExecution` hook when the [same context](https://git...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: Missing override in authAllowedForToken prevents authorized admins from toggling settings and reclaiming pairs ### Description Manifold admins are incorrectly not allowed by `authAllowedForToken` to toggle settings and reclaim their authorized pairs in the protocol context. `authAllowedForToken` checks 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
high
reentrancy
true
false
## High: Re-entrancy in settleAuction allow stealing all funds ### Description ## Handle cmichel ## Vulnerability details Note that the `Basket` contract approved the `Auction` contract with all tokens and the `settleAuction` function allows the auction bonder to transfer all funds out of the basket to themselves....
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ETH_SIGN'd messages should include len(message) and full message, not hash ### Description In both `_validateOrderValidityOracleClaim()` and `_validateAssetPriceClaim()`, we check the message that has been signed by the off-chain oracle by encoding the data as follows: This does not follow the format laid ou...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Possible assets loss ### Description If `repayAmount > amount`, this means that Gateway repays credit from its own assets: https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/core/WETHGateway.sol#L191 ### Recommendation We recommend to call revert 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: Centralization And Governance Risks ### Description ## Potential Risks and Issues Several potential risks and issues were identified related to centralization and mismanagement: 1. **Payout Calculations**: Payout calculations occur offline, and admins maintain full discretion over the process. Compromised ad...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [17] Use `ERC721A` instead `ERC721` ### Description ### Proof of concept *There are 31 instances of this issue.* ### Mitigation `ERC721A` is an improvement standard for `ERC721` tokens. It was proposed by the Azuki team and used for developing their NFT collection. Compared with `ERC721`, `ERC721A` is a 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
medium
liquidation
true
false
## Medium: NFT Valuations Indifferent to Borrow Token Decimals ### Description **Update** Marked as "Fixed" by the client. Addressed in: `6f5b551c82312187a5e26a970ac23ed47027574d`. **File(s) affected:**`Lending.sol` **Description:** While the protocol allows for multiple different borrow tokens to be used, as define...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Extra Native Token Amount Is Not Refunded ### Description When a user initiates an `XCall` using the function `xcall()`, they pay for fees in native token. However, any excess amount paid beyond the required fee is not refunded to the user. The function `xcall()` checks using the require statement on line [14...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
rounding
false
false
## High: Rounding errors may cause the module to incur losses ### Description The amount that a user has borrowed is calculated using `AdjustedBorrow` data and an `InterestScalar` value. Because the system uses fixed-precision decimal numbers that are truncated to integer values, there may be small rounding errors 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
low
other
true
false
## Low: Sux check missing ### Description **Description:** Observe that `setUriSux`is accepting empty `_uriSux`. **Recommendations:** Add a check on `setUriSux` \
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use safeTransferFrom instead of transferFrom for ERC721 transfers ### Description _Submitted by hickuphh3, also found by antonttc, berndartmueller, catchup, cccz, dipp, FSchmoede, GimelSec, hake, jah, jayjonah8, joestakey, kebabsec, Kenshin, Kumpa, MiloTruck, minhquanym, peritoflores, rfa, shenwilly, WatchP...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Pack Queue Struct ### Description [Link to code](https://github.com/code-423n4/2022-12-tessera/blob/f37a11407da2af844bbfe868e1422e3665a5f8e4/src/lib/MinPriorityQueue.sol#L13-L24) to **[HickupHH3 (judge) commented](https://github.com/code-423n4/2022-12-tessera-findings/issues/21#issuecomment-1359052085):** >...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `s.traders` will contain duplicates and affect `getTraders()` ### Description Both `storeTrade()` and `storePendingOrder()` will populate the `s.traders[]` array to keep track of the list of traders that have created a trade or pending order. It checks for existing traders using the `s.traderStored[]` mapping ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Missing validating PSBT input WitnessUtxo.PkScript against the actual UTXO ScriptPubKey allows bypassing address validation ### Description In `validateStakingInputs()` and `validateDepositInputs()`, the PSBT's Input are enumerated, and the address is extracted from the input's witness script via `txscript.Ext...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Due to not counting the assets stake on crvVault the reported amount of dust will not be correct ### Description The Protocol allowed the owner to remove the dust amount if not backed by rToken , However to Find the Assets in the pool we only check the assets owned by pool and did not count the assets depos...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: __gap missing in upgradeable contracts ### Description The contracts [`VestingWallet`](https://github.com/forta-protocol/forta-token/blob/92d7a7ddd6672a7530a4bfc532d0d697e7f12744/contracts/vesting/VestingWallet.sol) and [`VestingWalletV2`](https://github.com/forta-protocol/forta-token/blob/92d7a7ddd6672a753...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `BaseVaultAdaptor` assumes `sharePrice` is always in underlying decimals ### Description _Submitted by cmichel_ The two `BaseVaultAdaptor.calculateShare` functions compute `share = amount.mul(uint256(10)**decimals).div(sharePrice)` This assumes that the `sharePrice` is always in _token_ decimals and 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: Unverified Signers ### Description The `ssl_pool_in_signer` and `ssl_pool_out_signer` accounts are unchecked; the contract does not verify whether the provided signer accounts are legitimate or owned by the expected entities. This may allow a user to provide their wallet for these signers and manipulate associ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Basket:handleFees(): fees are overcharged ### Description ## Handle GiveMeTestEther ## Vulnerability details ## Impact The fee calculation is based on the totalSupply of the basket token. But some amount of the totalSupply represents the fees paid to the publisher/ protocol owner. Therefore the fees are...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Guardian Can Overwrite Recovery Process and Render It Useless ### Description The [`initRecovery` function](https://github.com/matter-labs/zksync-sso-clave-contracts/blob/c7714c0fe0a33a23acce5aa20355f088d330b4f7/src/validators/GuardianRecoveryValidator.sol#L202-L215) of the `GuardianRecoveryValidator` contr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Modifications to Assembly Bitmasking ### Description ## Modifications to Masking Bits in Uniswap Assembly Blocks There are multiple modifications related to masking bits inside assembly blocks in Uniswap, as listed below, which should be incorporated into the current codebase: 1. In `VaultReserves::_getCurre...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
token
true
false
## Low: `require` and `revert` statements should have descriptive reason strings ### Description `require` and `revert` statements should have descriptive reason strings: ```solidity File: SolidlyV3Factory.sol 46: require(tokenA != tokenB); 48: require(token0 != address(0)); 50: require(tic...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
flash-loan
true
false
## Low: Protocol fee should round up in favor of the protocol ### Description **Description:** Protocol fee should round up in favor of the protocol in `onMorphoFlashLoan`: Consider [using](https://x.com/DevDacian/status/1892529633104396479) OpenZeppelin [`Math::mulDiv`](https://github.com/OpenZeppelin/openzeppelin-...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unused imports ### Description **Description:** There are a couple of unused imports in the contracts: These are imported in: * [`Dolomite.sol#L6-L7`](https://github.com/d2sd2s/d2-contracts/blob/c2fc257605ebc725525028a5c17f30c74202010b/contracts/modules/Dolomite.sol#L6-L7) * [`Dolomite.sol#L6-L7`](https://g...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
dos
false
false
## Low: LockToVotePlugin should add an upper bound to the proposal actions length ### Description The current implementation of `createProposal` does not perform any sanity check on the length of the action length attached to a proposal. Users could create proposals that will revert during the execution because the lo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: First user that stakes again after a period without stakers receives too many rewards ### Description The `MuteAmplifier` contract pays out rewards on a per second basis. Let's assume there is only 1 staker which is Bob. Say Bob calls `stake` at `timestamp 0` and calls `withdraw` at `timestamp 10`. He receiv...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary ABIEncoderV2 ### Description The [`ProxyRoot`](https://github.com/emptysetsquad/emptyset/blob/bf9753ef9cd5b17236036257f290e0d0b850a029/protocol/contracts/src/common/ProxyRoot.sol#L18) and [`Registry`](https://github.com/emptysetsquad/emptyset/blob/bf9753ef9cd5b17236036257f290e0d0b850a029/protoco...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## Medium: ABDKMath64 performs multiplication on results of division ### Description _Submitted by AlleyCat_ Solidity could truncate the results, performing multiplication before division will prevent rounding/truncation in solidity math. ### Recommended Mitigation Steps Consider ordering multiplication first. **...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unsafe ERC-20 operations ### Description Unsafe ERC-20 Operations should not be used. Some standard ERC-20 functions may not behave as expected. It is recommended to use OpenZeppelin's SafeERC20 library, and methods such as `safeTransfer`, `safeDecreaseAllowance`, `safeIncreaseAllowance`, `forceApprove` and ot...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unused and Lack of Constant Variables ### Description There are a number of variables used throughout the Rocketpool smart contract system that can be specifically declared as constant variables using the `constant` keyword. When declared as state variables, these require additional gas costs to set and access...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unchecked Math Operations Leading to Potential Arithmetic Errors ### Description There are multiple instances where unchecked math operations are used, which can result in arithmetic errors or overflow. Below is an example of unchecked math: ```rs if current_time > self.last_refill_time { let time_elapse...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
front-running
false
false
Source: https://github.com/sherlock-audit/2023-01-derby-judging/issues/64 ## Found by Bauer, Bobface, Jeiwan, Met, Nyx, Ruhum, cergyk, hyh, immeas, nobody2018, tives ## Summary The vault executes swaps without slippage protection. That will cause a loss of funds because of sandwich attacks. ## Vulnerability Detail...
Sherlock
5
Derby