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 | high | other | true | false | ## High: Eligible supply is not reduced on late entry
### Description
RewardsEngine integrates global eligible units using `currentEligibleSupply`, which is intended to represent the sum of balances that are currently eligible to earn. In the late-entry path of `_handleInflow`, the account is marked ineligible, but th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | true | false | ## High: Margin callers can drain the TAPP during liquidation by willingly increase gas costs with the shortHintArray
### Description
During primary liquidation the TAPP (Treasury Asset Protection Pool) pays the gas costs of force bids, so that margin callers are even motivated to liquidate shorters, if gas costs 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 | high | liquidation | true | false | ## High: In the Liquidation Type 1 process, Ether refunds are being sent to an incorrect recipient address
### Description
In the Liquidation Type 1 process, Ether refunds are being sent to an incorrect [recipient address](https://github.com/sherlock-audit/2024-11-autonomint-bluenights004/blob/main/Blockchain/Blockchi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Check for the intended currency in the native swap
### Description
The `swapAndTransferUniswapV3Native` function should revert if either `_intent.recipientCurrency` equals `address(wrappedNativeCurrency)` or `_intent.recipientCurrency` equals `NATIVE_CURRENCY`. While other swap functions already revert when th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | true | false | ## Medium: `depositYBLendSGLLockXchainTOLP` function of the MagnetarAssetXChainModule will not work because it transfers Singularity tokens to the user before `_withdrawToChain`
### Description
In `depositYBLendSGLLockXchainTOLP` function of the MagnetarAssetXChainModule, after lending to SGL, it will wrap the 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 | low | initialization | false | false | ## Low: General improvements like code consistency, naming and missing natspec
### Description
- **Missing Natspec**: The `DistributionModule._distributeFeesToUsualX` function is missing a Natspec, similar to other functions like `_distributeFeesToYieldTreasury` and `_burnFees`.
- **Variable Namings**:
- Some var... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: The function `mintReceipt` shouldn't mint receipts to users, if the quest is paused
### Description
For now the function `mintReceipt` doesn't issue hashes before the quest has started or after the quest has ended.
This is done off-chain with the help of `claimSignerAddress`, but the off-chain side doesn't c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Include rewardsToken as RewardAdded event parameter
### Description
This implementation does not account for the fact that there may be multiple different reward tokens, and the actual token in use is not logged. This limitation makes it much harder to index the total amount of rewards added for individual tok... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Lack of minimum / maximum bounds on user operation parameters
### Description
The outcomes of several pool and loan operations are dependent on the system state. This means that users have no on-chain guarantees that their transactions will produce the outcomes they expect. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Empty Referral Name Allowed in Custom Name Creation
### Description
The `createReferralCustomName` function allows an empty string as a referral name. This leads to the `referrerNameToId` mapping being set with the user’s referral ID under an empty key. Consequently, the empty string could be used as a valid 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 | initialization | false | false | ## Low: Threshold Check Is Not Enabled by Default
### Description
**Update**
The client provided the following explanation:
> bigClaim is an optional feature for enhanced security that is currently disabled by default. We will consider various factors and enable this feature when the time is right.
**File(s) affecte... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fees from the first set of liquidity providers can be lost
### Description
When users call the `addLiquidity` function, fees are minted to the `stakingAddress`. The staking address is not set in the constructor unlike other parameters, therefore within the period between deployment and admin calling the `setSt... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: setOwner should be split into two separate functions
### Description
The `setOwner` function changes ownership of the contract in a single transaction. If an incorrect `newOwnerAddress` is provided, ownership may never be recovered. A best practice is to split the ownership into two functions: `transferOwnersh... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | cross-chain | true | false | ## High: LayerZeroAdapter::executeMessages could lead to irrecoverable state
### Description
The `executeMessages` function executes stored payloads in `LayerZeroAdapter.sol`. Upon receiving a cross-chain message, the `LayerZeroAdapter.sol` tries to deliver it to the `Bridge.sol` contract. Any failure would result 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 | storage | false | false | ## Low: Unclear field
### Description
Meaning of bits in `info` field in `OrderRFQ` structure is unclear:
https://github.com/1inch/limit-order-protocol/tree/a14bde6a260458de5083cee117d734221e1cbc05/contracts/LimitOrderProtocol.sol#L59
### Recommendation
We recommend to add a comment like this:
```solidity=
uint256 in... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | false | ## Medium: when issuer set new winner by calling setTierWinner() code should reset invoice and supporting documents for that tier
### Description
if invoice or supporting documents are required to receive the winning prize then tier winner should provide them. bounty issuer or oracle would set invoice and supporting 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... | solodit_api | medium | oracle | true | true | Source: https://github.com/sherlock-audit/2025-01-peapods-finance-judging/issues/477
## Found by
TessKimy, pkqs90
### Summary
spTKNMinimalOracle does not support advanced self-lending pods, where pairedLpTKN is a podded fraxlend token.
### Root Cause
spTKNMinimalOracle should work for self-lending pods. There a... | Sherlock | 5 | Peapods |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Vault transaction initiator needs to explicitly confirm.
### Description
**Description**
Vault.sol: function submit Transaction(). Usually, in multi-sig contracts, submitting a transaction means that msg.sender also confirms it. Currently, in order to confirm a transaction, the owner has to execute one more 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 | medium | other | false | false | ## Medium: MISSING IMPORTANT SECURITY HEADERS
### Description
The application lacks several important HTTP security headers, which are instrumental in enhancing the security posture of web applications by instructing browsers on how to behave when handling the site's content. The absence of these headers leaves the ap... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Checks missing to make sure immutable parameters of the _marketHubRiskManagement match with
### Description
## MarketHubEntry
**Severity:** Low Risk
**Context:** MarketHubEntry.sol#L35-L45
**Description:**
Checks missing to make sure immutable parameters of the `_marketHubRiskManagement` match with `Ma... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: Tokens May Be Burned for an Unsupported `targetChainId`
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `739cfc7bb288a29648905b8275d8ec1074d54070`. The client provided the following explanation:
> Modify according to recommendations.
**File(s) affected:**`Layer2Bridge.sol`
**Descri... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: risk actions aren't all covered by the existing checks
### Description
Things such as changing the list of high risk operations, or migrating kernels are not counted as high risk, even though they are high-risk
### Impact
Allows an attacker to brick the protocol with a low threshold, or to remove the high-... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unintended under/overflow of the amount already swapped in/out due to unmatching logic
### Description
A possible wrong amount of the amount already swapped in/out of the input/output asset of a swap due to an unintended under/overflow.
### Proof of Concept
In Rust release mode, the `-` and `+` operations... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Failed auction period still update `sharesPerToken` like it is succeed
### Description
The way bondETH holder get the coupon (USDC) is through the auction where protocol would auction amount of underlying asset for coupon to be later distributed to bondETH holder of current period.
But the `BondToken::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 | cross-chain | false | false | ## Low: Dynamic Gas Fees Adjustment.
### Description
**Description**
The contracts reference a set gas fee value, which may become outdated as network gas prices fluctuate. This could lead to the bridge not covering its operational costs if the predefined fees are lower than the actual gas prices needed for transacti... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: PirexGmx#migrateReward() may cause users to lose Reward.
### Description
`PirexGmx#migrateReward()` may cause users to lose Reward before PirexRewards.sol set new PirexGmx.
### Proof of Concept
The current migration process is: `call # completemigration ()-> # migrateward ()`
After this method, the produ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | true | false | ## Medium: Not verifying that transaction initiator is the actual participator allows malicious user to allocate full reward as Uniswap V2 pool
### Description
### Finding description and impact
To participate in campaign, user has to call swap provider (Li.Fi) `Executor::swapAndExecute` function. This function perfo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `_requestRoll()` after confirming that the raffle is viable
### Description
In [startDraw()](https://github.com/code-423n4/2022-12-forgeries/blob/main/src/VRFNFTRandomDraw.sol#L173-L198), the contract makes a request for a random number before confirming that it has the prize to raffle.
Consider confirming f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: `PrincipalToken` expiry and pause checks missing in quote functions
### Description
_Resolved_
Several quote functions in `TokiQuoter` rely on `PrincipalToken.previewSupply()` and `PrincipalToken.previewIssue()` to calculate expected outputs.
However, these preview functions return `0` when the PrincipalTok... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ETH For Oracle Fees Can Be Front-Run
### Description
The `OracleRouter` contract implements the [`receive` function](https://github.com/radiant-capital/riz/blob/65ca7bb55550d30388e2b2277fefe5686ab7e4e8/src/OracleRouter.sol#L46) used for getting the ETH for [paying the fees in Pyth](https://github.com/radian... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Current period profit can be extracted from the Vault by front running state change before exchange rate recalculation
### Description
Every period `exchangeRate` recalculation can be estimated in advance and this can be used to extract funds from the Vault by depositing right before rebalances with big eno... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | reentrancy | true | false | ## Medium: Reusing a SALT that has already been used for voting can allow a malicious proposal to pass and compromise the protocol
### Description
castVote is a function that votes as much SALT as is being staked on the proposal.
```solidity
function castVote( uint256 ballotID, Vote vote ) external nonReentrant
{
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: | Typo
### Description
**Description**
Withdraw is spelled `witdhraw` in the error message on line 265.
**Recommendation**
Correct it to `withdraw`.
**Resolution**
Bridges Team:
- Typo has been fixed. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `RewardsController` Emission Manager Can Authorize Users to Claim on Behalf of the `AaveV3YieldSource` Contract and Siphon Yield
### Description
_Submitted by leastwood_
[aave/RewardsController.sol#L190-L193](https://github.com/aave/aave-v3-periphery/blob/master/contracts/rewards/RewardsController.sol#L190... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: When minting not subscription credit make sure the user always provides non-zero msg.value
### Description
In the MockNvmSubscriptionNative implementation we have:
```solidity
function mint(uint256 tokenId, uint256 numCredits) external payable {
uint256 requiredAmount = numCredits * creditTokenRatio / 1e18;... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `RemoveAdmin` event is emitted even if a user was not admin
### Description
`removeAdmin` function calls the `remove` function of the `admins` AddressSet contract.
This `AddressSet.remove` function does not revert when the entry does not exist.
Calling `Game.removeAdmin` with a non-admin address will succeed... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: LockToVotePluginSetup.prepareInstallation returns permissions that will make the plugin instal-
### Description
The current implementation of `LockToVotePluginSetup.prepareInstallation` will include in the list of permissions to be granted during the installation of the plugin the following permission:
```jav... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Increasing leverage can make the position have "0" `initialMargin`
### Description
Increasing the leverage of a cross position can make the position have "0" initialMargin.
### Impact
Most obvious one I found is that the account no longer pays borrowing fees because of multiplication with "0" which is a high... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | high | integer-overflow | true | false | ## High: Malicious target can make `_endVote()` revert forever by forceUnstaking/staking again
### Description
In `_endVote()`, we update `forfeitedStakeWei` or `lockedStakeWei[target]` according to the `target`'s staking status.
```solidity
File: contracts\OperatorTokenomics\SponsorshipPolicies\VoteKickPolicy.sol
17... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Incorrect message in mobile application when wallet fails to pair
### Description
The Uniswap mobile application shows the “Success” notification to the user even when the pairing with the Uniswap wallet browser extension fails (figure 24.1). The bug occurs when a user scans a QR code without the `n` modulus 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 | high | other | false | false | ## High: Vault Weight accounting is wrong for withdrawals
### Description
When depositing two different synths, their weight is added to the same `mapMember_weight[_member]` storage variable.
When withdrawing the full amount of one synth with `_processWithdraw(synth, member, basisPoints=10000` the full weight is decre... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Leverage contracts should fetch the protocol contract addresses from cdpManager instead of being passed as constructor parameter
### Description
All the `Leverage*` contracts (`LeverageMacroBase`, `LeverageMacroDelegateTarget`, `LeverageMacroFactory`, and `LeverageMacroReference`) are initializing the immutabl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: API - LACK OF DATA SANITIZATION AND VALIDATION OF LIMITS
### Description
The SSP relay API endpoint have insufficient data sanitization and lack of proper input size validation. Specifically, the parameters can accept excessively large input without any restrictions. This absence of data validation poses 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 | cross-chain | false | false | ## High: Arbitrary tokens and data can be bridged to `GnosisTargetDispenserL2` to manipulate staking incentives
### Description
The [`GnosisTargetDispenserL2`](https://github.com/code-423n4/2024-05-olas/blob/3ce502ec8b475885b90668e617f3983cea3ae29f/tokenomics/contracts/staking/GnosisTargetDispenserL2.sol) contract rec... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | true | false | ## Medium: Pausing Claims Does Not Work
### Description
During the security review, it was discovered that, even if a user with the pauser role successfully called `pauseClaim()` to pause the claiming functionalities, it is still possible to call the `claim()` and `claimBatch()` functions. This indicates that the paus... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | logic | false | false | ## Low: Inconsistent Calculation of Rewards Period
### Description
**Severity**: Low
**Status**: Resolved
**Description**
setRewardsDuration and notifyRewardAmount functions in the NarwhalTradingVault & NarwhalPool contract. The problem is that the notifyRewardAmount function calculates the periodFinish variable an... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | true | false | ## Medium: Unauthorized role grants prevent `QuantAMMBaseAdministration` deployment
### Description
**Description:** `QuantAMMBaseAdministration` is a contract that manages certain break-glass features and facilitates calls to other QuantAMM contracts.
However, this contract fails to deploy due to an issue in the [`Q... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | other | true | true | ## Low: `TrustService::changeEntityOwner` can overwrite existing `_newOwner` record, breaking 1-1 relationship between owners and addresses
### Description
`TrustService::changeEntityOwner` can overwrite existing `_newOwner` record, breaking 1-1 relationship between owners and addresses.
### Proof of Concept
Add PoC ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | true | false | ## Medium: Debt Decay Faster Than Expected
### Description
The debt decay at a rate faster than expected, causing market makers to sell bond tokens at a lower price than expected.
### Impact
When the delay increment (TD) is rounded down, the debt decay reference time increment will be smaller than expected. The debt ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: amount in _complexPath() is a Value in Shares
### Description
The code in line [65] of `TridentSwapAdapter.sol` references the variable `params.initialPath[i].amount`. This variable is actually measured in shares.
Furthermore, if this action is taking place on the destination chain, it is a concern that 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: UNFINISHED DEVELOPMENT COMMENTS
### Description
Multiple “ToDo” comments and commented code instances were found on the codebase. Although incomplete code does not directly cause a security vulnerability or affect the audit’s outcome as far as it is functional, having development comments could simplify the 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 | false | false | ## Low: Utilize constant
### Description
**Description**
Lines 26, number of tokens minted may be moved to the public constant instead of
constructing a variable - such a move will save a bit of gas during deployment.
**Recommendation**:
Consider usage of the public constant. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Various small improvements and other nitpicks
### Description
During the code review, a variety of smaller changes with the goal of improving readability and following general best practices were suggested. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Savings via Bulk and Update Storage Functionality
### Description
The RocketStorage contract is used for centralized data storage, allowing other contracts to be replaced without migrating data, and as a registry of relevant contract addresses. While this pattern offers great flexibility and avoids complicated... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Transferring "max" ACA tokens through Acala-dapp fails and only burns the fees
### Description
The Acala-dapp UI provides a way of transferring all tokens to a given account via the "MAX" button in its "Transfer" dialog (Figure 4.1). However, trying to perform a transfer of ACA tokens with the "MAX" amount alw... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## High: Unauthorized contracts can bypass precompile authorization via `delegatecall` in Kakarot zkEVM
### Description
In the Kakarot zkEVM implementation `exec_precompile`, unauthorized contracts can bypass the precompile authorization mechanism using the `delegatecall`. This allows unauthorized contracts to execute... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Unnecessary use of mutable references
### Description
Borrowing a resource should ideally be reserved for cases where modification is necessary. However, in the modules in scope, several unnecessary mutable borrows were identified.
Code Location
-------------
In the `claimable_fa_store` module, the following... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Possibility of out of gas in castVotes
### Description
**Severity**: Low
**Status**: Acknowledged
**Description**
The castVotes() function has external calls inside a for loop in the form of voter.getUserPoolVote() and vePendle.balanceOf(). This can result in a Denial of Service if there are a lot of pool... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## High: Reentrancy vulnerability in GiantMevAndFeesPool.withdrawETH
### Description
GiantMevAndFeesPool.withdrawETH calls lpTokenETH.burn, then GiantMevAndFeesPool.beforeTokenTransfer, followed by a call to \_distributeETHRewardsToUserForToken sends ETH to the user, which allows the user to call any function in the 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 | medium | reentrancy | true | false | ## Medium: Zero share minting via token balance inflation
### Description
In `Staking.finalizeStake()`, when calculating shares for non-initial deposits (`@1>`), the function uses integer division, which can round down to zero if there are large token balances.
```solidity
function finalizeStake(address token) extern... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent redeem cap allows excessive withdrawals
### Description
_Resolved_
The `MAX_REDEEM_NO_CAP` constant in `LatentSwapLEX` is set to a fixed value of `10**9` base units, which creates drastically different economic thresholds for tokens with different decimal places. This allows markets to be fully 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 | medium | other | false | false | ## Medium: `BaseRewardPool4626` is not IERC4626 compliant
### Description
_Submitted by 0xjuicer_
[BaseRewardPool4626.sol](https://github.com/aurafinance/convex-platform/blob/9cae5eb5a77e73bbc1378ef213740c1889e2e8a3/contracts/contracts/BaseRewardPool4626.sol)
BaseRewardPool4626 is not IERC4626 compliant.
This makes ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Incorrect Log Output
### Description
The event Log has the field `uint256 timestamp`.
When the log is emitted on line [27-33], the field timestamp is set to `block.number`.
### Recommendation
The event field has been modified to `block_height` to represent the block height rather than timestamp. The update ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect events parameter
### Description
At the lines below:
- https://github.com/sushiswap/bentobox/blob/c2e150b16b8764ebfe2e1e6e267ae14e10738065/contracts/LendingPair.sol#L252
- https://github.com/sushiswap/bentobox/blob/c2e150b16b8764ebfe2e1e6e267ae14e10738065/contracts/LendingPair.sol#L267
- https://... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | false | false | ## Medium: griefing attack to block withdraws
### Description
_Submitted by gpersoon_
#### Impact
Every time you deposit some assets in the vault (via `deposit()` of `MochiVault.sol`) then "lastDeposit\[\_id]" is set to `block.timestamp`.
The modifier `wait()` checks this value and makes sure you cannot withdraw 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 | medium | other | false | false | ## Medium: Insufficient Test Coverage
### Description
Throughout the codebase, and in particular in the added changes, multiple instances of insufficient test coverage were identified:
* There are different test suites implemented at the same time, namely Hardhat and Foundry. Maintaining different suites instead of h... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Gas: Use calldata instead of memory for external function array parameters
### Description
Using `memory` for an array function parameter is costly as it copies the whole array from `calldata` to `memory`. This is especially costly in `executePayroll` as there are many array parameters, so each of their elements wi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## High: `computationUnitsAvailable` can overestimate number of available units if staking duration is too small
### Description
The `computationUnitsAvailable` function computes the amount of computation units available to a `peerId`. This is defined in the `GatewayRegistry.sol` contract as shown below.
```solidity
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: inefficiencies
### Description
There are many places throughout the codebase where changes can be made to improve gas consumption. For example:
#### Arbitrary use of different `uint` types can lead to unwanted effects
Numerous unsigned integer (`uint`) values of various sizes are used. Those less than 256-... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users unable to redeem assets if removed from `OmoRouter` whitelist
### Description
The `OmoRouter.redeem()` function uses the `onlyWhitelisted` modifier to check if the user is whitelisted before allowing them to redeem their deposited assets from the vault, however, if a user is removed from the whitelist, 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 | other | false | false | ## Medium: Error-Prone and Unnecessary Push-Payment Mechanism in PaymentSplitter Contract
### Description
The `PaymentSplitter` contract implements a push-payment mechanism through the internal [`_release_all` function](https://github.com/Brushfam/openbrush-contracts/blob/553347354de6d0ead6a335ba4c197bdd01fb2d12/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 | other | false | false | ## Low: The `IWETH` interface has a method that `WETH` does not have
### Description
The `safeTransfer` method is not part of the usual `IWETH` interface and is not actually used in the code, so it should be removed. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `LevelDevFund` Improper Initialization
### Description
**Update**
Acknowledged. The client's response: "This contract is not upgradeable by design. We acknowledged the issue and decided not to fix in the current version."
**File(s) affected:**`LevelDevFund.sol`
**Description:**`LevelDevFund` inherits `Initia... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: BE - LACK OF PASSWORD COMPLEXITY AND PASSWORD POLICY
### Description
The browser extension enforces only a minimal password length of 8 characters without requiring additional complexity, such as a combination of uppercase and lowercase letters, numbers, or special characters. Additionally, it lacks a robust 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... | solodit_api | high | other | false | false | Source: https://github.com/sherlock-audit/2023-02-openq-judging/issues/263
## Found by
rvierdiiev, TrungOre, HollaDieWaldfee, bin2chen, Tricko, 0xbepresent, unforgiven, libratus, Robert, 0x52, HonorLt, usmannk, StErMi, cergyk, ctf\_sec, Ruhum, Jeiwan, GimelSec, cccz, 8olidity
## Summary
Refunding an NFT doesn't re... | Sherlock | 5 | OpenQ |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Deserialized address field in SafeAccount is not properly sanitized
### Description
The `address` field in `SafeAccount` is improperly sanitized after being deserialized from a `KeyFile` in the root vault. This may allow malicious actors to trick unsuspecting users into fraudulent transactions.
Wallets 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 | high | access-control | true | false | ## High: Anyone can burn any NFT in the `HoneyJarPortal`
### Description
**Impact:**
High, because the NFTs won't be retrievable from the portal anymore
**Likelihood:**
High, because it does not require any preconditions to be exploited
**Description**
The `_debitFrom` method in `HoneyJarPortal` allows burning of a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | false | false | ## Low: Loss of precision in Variable IRM
### Description
`newFullUtilizationRate` uses "division before multiplication," leading to excess loss of precision. `decayGrowth` is divided by `leftUtilization` before being multiplied by `fullUtilizationRate`. See [SolidityScan's blog entry](https://example.com) for why thi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Optimize names to save gas
### Description
Contracts most called functions could simply save gas by function ordering via Method ID. Calling a function at runtime will be cheaper if the function is positioned earlier in the order (has a relatively lower Method ID) because 22 gas are added to the cost of a func... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | false | false | ## Medium: Stale Prices could be returned
### Description
**Description:**
It was observed that there is no check to validate that price feed timestamp (in this case blockTimestamp) is recent. If price feed was not updated recently then old prices would be returned by latestRoundData function.
**Recommendations:**
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary Low-Level Call ✓ Fixed
### Description
It is recommended to avoid using the low\-level, untyped, and unchecked `address.call()` method when interacting with a contract. Instead, consider invoking the external contract through its defined contract type. This approach ensures type safety, correct ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unusual Upgradeability Patterns Are Adopted
### Description
In the codebase, [some](https://github.com/mantlenetworkio/mantle-v2/blob/e29d360904db5e5ec81888885f7b7250f8255895/packages/contracts-bedrock/contracts/L1/L1CrossDomainMessenger.sol) contracts are meant to be upgradeable and so may have a `__gap` [var... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Using `calldata` instead of `memory` for read-only arguments in `external` functions saves gas
### Description
When a function with a `memory` array is called externally, the `abi.decode()` step has to use a for-loop to copy each index of the `calldata` to the `memory` index. **Each iteration of this for-loop ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `sellQuote` and `buyQuote` are missing deadline check in `LamboVEthRouter`
### Description
`sellQuote` and `buyQuote` are missing deadline check in `LamboVEthRouter`.
Because of that, transactions can still be stuck in the mempool and be executed a long time after the transaction is initially called. Durin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A new era might be triggered despite a significant value being held in the previous era
### Description
When RSR seizure occurs the staking and drafting rate is adjusted accordingly, if any of those rates is above some threshold then a new era begins (draft or staking era accordingly), wiping out all of the h... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect comment - pairName is not sDai pair
### Description
* `src/oracles/EETHPriceAdapter.sol`
* Instances(1)
EETHPriceAdapter provides eETH price and has nothing to do with sDAI. The code comment is incorrect.
[EETHPriceAdapter.sol# L52](https://github.com/code-423n4/2024-12-benddao/blob/489f8dd0f8e86e... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | access-control | false | false | ## Gas: Caching storage variables in local variables to save gas
### Description
Anytime you are reading from storage more than once, it is cheaper in gas cost to cache the variable: a SLOAD cost 100gas, while MLOAD and MSTORE cost 3 gas.
In particular, in `for` loops, when using the length of a storage array as 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: L08] There are multiple typos
### Description
###### Low
Components: [`policy`](https://github.com/BeamNetwork/currency/tree/af3428020545e3f3ae2f3567b94e1fbc5e5bdb4c/contracts/policy)
There are multiple typos in the repository:
In `policed-contracts`:
* In [`Policed.sol`](https://github.com/BeamNetwork... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | token | false | false | ## High: No Return Of Funds If DepositCollateral Fails
### Description
## Submit Slow Mode Transaction Issue
The `submitSlowModeTransaction` function in the Endpoint contract takes a specified amount of ERC20 tokens and stores the transaction to `slowModeTxs`. However, if `processSlowModeTransaction` fails, the `_exe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Enforce minimum transaction amounts in `StakingVault`
### Description
**Description:** Some elaborate vault hacks have involved performing vault transactions using very small amounts such as 1 wei in order to manipulate the vault via rounding.
Normal users will never perform transactions using such small amou... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Consider adding `getLpValues()` to get the lpValuse from the orderBook to enhance the code
### Description
https://github.com/code-423n4/2023-09-centrifuge/blob/512e7a71ebd9ae76384f837204216f26380c9f91/src/InvestmentManager.sol#L247
https://github.com/code-423n4/2023-09-centrifuge/blob/512e7a71ebd9ae76384f837... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Maximum value in function `approve()`
### Description
Setting a maximum value for the amount of tokens that can be manipulated after calling the `approve()` function could cause an attacker to invoke his transaction for his profit.
Such calls are now in the following places:
https://github.com/Grandthrax/year... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Unnecessary handling of single byte returned data
### Description
In the `Lib_SafeExecutionManagerWrapper` library, the internal `_safeExecutionManagerInteraction` function handles [a case](https://github.com/ben-chain/contracts-v2/blob/a935e276f5620b40802b52721e3474232e458f72/contracts/optimistic-ethereum/lib... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Balance check for yield claims in `PerpetualBond::_validate` can be easily bypassed
### Description
**Description:** In [`PerpetualBond::_validate`](https://github.com/YieldFiLabs/contracts/blob/40caad6c60625d750cc5c3a5a7df92b96a93a2fb/contracts/core/PerpetualBond.sol#L312-L314), there's a check 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 | medium | other | false | false | ## Medium: Issue 94 from previous contest has not been fixed
### Description
[Issue 94](https://github.com/sherlock-audit/2023-02-blueberry-judging/issues/94) still exists exactly even though it was marked as "will fix".
### Impact
See [Issue 94](https://github.com/sherlock-audit/2023-02-blueberry-judging/issues/94)
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Chainlink oracle will return the wrong price if the aggregator hits `minAnswer`
### Description
Chainlink aggregators have a built-in circuit breaker if the price of an asset goes outside of a predetermined price band.
The result is that if an asset experiences a huge drop in value (i.e. LUNA crash) the 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 | medium | other | false | false | ## Medium: Remove unnecessary code
### Description
* [convert function](https://github.com/ether-camp/virtual-accelerator/blob/6d4097a08669c2520e0d5bab317b60f1d13df44e/contracts/DSTContract.sol#L688-L696) could be replaced by simply casting strings to bytes32.
* The two separate transfers in [the buy function of Virtu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Validation
### Description
## Validate In Custody
`validateInCustody` performs validation checks on the parameters and attributes of a custody account. It returns a boolean value indicating whether the custody is valid based on specific criteria.
## Code Implementation
### custody.rs (RUST)
Howeve... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | storage | true | false | ## Medium: _isZeroBytes Returns Different Output for the Same Input Variable in SparseMerkleProof Contract ✓ Fixed
### Description
In the `_isZeroBytes` function of the `SparseMerkleProof` contract, there is no validation that the `_data` variable occupies all of the slot in each chunk. Due to missing validation, 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 | liquidation | false | false | ## Medium: Undesired repay and/or liquidation of ex-credit account
### Description
In the IronBank, the `credit` functionality is introduced. An admin can trigger the [`setCreditLimit`](https://github.com/ibdotxyz/compound-protocol/blob/8cd45803b48552e344e22be280c9e1c03ec8644a/contracts/Comptroller.sol#L1302) function... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.