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 | access-control | true | false | ## Low: Bricked pools' operations due to unassigned TRANSFER\_ROLE
### Description
The `MainPool.sol` and `CachePool.so`l contracts leverage OpenZeppelin's (OZ) Role-Based Access Control (RBAC) for managing function permissions.
During both contracts' initialization, the `DEFAULT_ADMIN_ROLE` is assigned, but the `TRA... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: SHOULD CHECK RETURN DATA FROM CHAINLINK AGGREGATORS
### Description
_Submitted by defsec_
#### Impact
The consult function in the contract TwapOracle.sol fetches the asset price from a Chainlink aggregator using the latestRoundData function. However, there are no checks on timeStamp, resulting in stale 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... | cyfrin_structured | low | other | true | true | ## Low: Incorrect Splitting of `remaining_accounts` Causes Misrouting Between NAV and Redemption Accounts
### Description
When spliting accounts in `liquidate_handler`, we are assuming that `nav_provider_program` will take the MAX value. where we take the minimum value from the `MAX_NAV_PROVIDER_ACCOUNTS (5)` and 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 | access-control | false | false | ## Medium: Other Plugins May Enable Runtime Execution of Session Keys
### Description
**Update**
A `preRuntimeValidationHook` has been added to `this.executeWithSessionKey()` will always revert the call. This fixed the issue for the session key plugin but not the general issue. Alchemy has informed us that this would ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Division by zero
### Description
In the `ReserveAutomation` contract, the discount (or premium) is computed in the function `currentDiscount()`, as follows:
```
/// @notice Calculates the current discount or premium rate for reserve purchases
/// @return The current discount as a percentage scaled to ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | true | false | ## Low: [6] contracts/NFTDropCollection.sol
### Description
### 6.1 `supportsInterface` function
We can rewrite `supportsInterface` function (Lines [284-294](https://github.com/code-423n4/2022-08-foundation/blob/792e00df42/contracts/NFTDropCollection.sol#L284-L294)) like the following block which would make it easier... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | false | false | ## Low: In OrchidDirectory.step() and OrchidDirectory.lift(), use a signed amount Won't Fix
### Description
`step()` and `lift()` both accept a `uint128` parameter called `amount`. This amount is added to various struct fields, which are also of type `uint128`.
The contract intentionally underflows this `amount` to... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | true | false | ## Medium: Malicious sequencer can DoS proposal execution by inflating the amount of proposals to be pruned
### Description
A malicious sequencer can inflate the amount of proposals in `Gov.sol` in order to force the previous proposals invalidation process in `_executeProposal()` to run out of gas, making it impossibl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Proof of Reserves Invariant Can Be Broken by Treausry Updates
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> Planned to fix it in future release of treasury contract
**File(s) affected:**`VUSD.sol`
**Description:** Description: From the VU... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Synthetix Miscellaneous General Comments
### Description
This section details miscellaneous informational aspects found within the Nomin smart contract. These items are understood to not pose immediate security risks.
1. **XDR Synth deletion**: Using the `removeSynth()` function on line [196], it is possible ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: In staking contract, rewards distribution can be delayed by front-running distributeGold function
### Description
**Description:** In `TempleGoldStaking` contract, the reward distributer calls `distributeRewards` to by minting available TLGD from the token contract and updates reward rate based on the minte... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | other | true | false | ## Low: `getUserStake` function failure for non-staker accounts
### Description
The function `getUserStake` in the smart contract throws an error when invoked for an address that does not have any stakes. Specifically, the function fails due to a division by zero error. This occurs because the divisor, `users[userAddr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [13] Floating Solidity Pragma Version
### Description
It's best to use the same compiler version across all project files/team members. So having a fixed version pragma is a good practice. Most contracts use a floating pragma which would allow the patch number to be equal or higher than the specified patch num... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `WildcatMarketConfig.stunningReversal()` function can be optimized
### Description
By moving condition checks up in the execution flow, we save on computational steps and improve the gas efficiency of the `stunningReversal()` 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: REALLOCATING POOLS WITH NEW FORMAT WILL LEAD TO DATA INCONSISTENCY
### Description
The `ReallocPoolConfig` instruction allows both the huma owner and the pool owner to reallocate pools from the old format to the new format, adding a padding field and the `auto_redemption_after_lockup` flag in **LPConfig**.
Ho... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | false | false | ## Low: Loss of Precision
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `9e0a539c8d13d69d89c9e567154f351afac229c7`. The client provided the following explanation:
> Rearranged as recommended.
**File(s) affected:**`StakedINTX.sol`
**Description:** In Solidity and other integer-based progr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Emissions depend on an external script to be called once per period (a week)
### Description
In the current version of the code, the Minter contract does not implement a mechanism to retroactively mint SHADOW and transfer to Voter in case a period has passed without `updatePeriod` being called. The system is 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 | true | false | ## Medium: Share Price Inflation
### Description
## Vulnerability Report: `withdraw_from_vault` Function
In `withdraw_from_vault`, when a user withdraws funds, the share count (`vault.total_shares`) is appropriately reduced. However, a critical vulnerability arises as no corresponding adjustment occurs to `vault_tota... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Missing zero-address checks in constructors and setters
### Description
## Handle
0xRajeev
## Vulnerability details
## Impact
Checking addresses against zero-address during initialization or during setting is a security best-practice. However, such checks are missing in address variable initializations/ch... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Non-injective hash encoding in getClaimKeyHash
### Description
As part of the flash claim functionality, Paraspace provides an implementation of a contract that can claim airdrops on behalf of NFT holders. This contract tracks claimed airdrops in the `airdropClaimRecords` mapping, indexed by the result of 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 | token | true | false | ## Low: Avoid directly minting follow NFTs to the profile owner in `processBlock()`
### Description
In `FollowNFT.sol`, whenever a follower is blocked by a profile and his `followTokenId` is unwrapped, `processBlock()` will mint the follow NFT to the follower's address:
[FollowNFT.sol#L198-L203](https://github.com/co... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | upgrade | true | true | ## Critical: Proxy-Based self-liquidation creates bad debt for lenders
### Description
When calling [`Licredity::seize`](https://github.com/Licredity/licredity-v1-core/blob/e8ae10a7d9f27529e39ca277bf56cef01a807817/src/Licredity.sol#L550-L558) to liquidate an unhealthy position, the contract checks that the position ow... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [01] Inconsistent usage of `hasNotSigned`
### Description
`signAndClaimAndRedeem` has the modifier while `signAndClaim` doesn't.
[RariMerkleRedeemer.sol#L108-L118](https://github.com/code-423n4/2022-09-tribe/blob/769b0586b4975270b669d7d1581aa5672d6999d5/contracts/shutdown/fuse/RariMerkleRedeemer.sol#L108-L118... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | true | false | ## Medium: `distribute()` May Run Out of Gas
### Description
**Update**
An upper bound of `12` has been introduced for the length of `extraRewards`.
**File(s) affected:**`rewards/DepositerRewardDistributor.sol`
**Description:** The `DepositerRewardDistributor.distribute()` function iterates over every element in `ex... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Possibly unnecessary state transition
### Description
When an edge in the edgePresumptive state has a rival, its state is changed to `edgeStarted`.
```go
case edgePresumptive:
hasRival, err := et.edge.HasRival(ctx)
if err != nil {
return errors.Wrap(err, "could not check if presumptive")
}
if hasRiv... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: _getInterest() function uses block.timestamp instead of the inputted timestamp
### Description
The `_getInterest()` function takes a timestamp as input. However, in a crucial check in the function, it uses `block.timestamp` instead. The result is that other functions expecting accurate interest amounts will... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Potential decoding error in `try-catch`
### Description
In the `UmbrellaBatchHelper` contract, there is a potential issue with error handling in the following try-catch block:
```solidity
try IUniversalToken(underlyingOfStakeToken).aToken() returns (address _aToken)
```
https://github.com/bgd-labs/aave-umbrel... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Deployment script lacks `deployer == OWNER` consistency check
### Description
The deployment script (`DeployRouterTestnet.s.sol`) uses `deployer` and `OWNER` interchangeably as the owner and proxy admin during contract deployments. However, it does not verify that `deployer == OWNER`. This inconsistency can le... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing `PERMIT2` Front-Run Protection
### Description
This issue has been identified within the `deposit` function of the `P2pLendingProxy` contract.
An attacker can front-run a legitimate user’s transaction by preemptively calling `Permit2.permit`, causing reverts or unexpected over-allowances granted 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 | initialization | true | false | ## Low: Potential Signer Leakage
### Description
## Commit Verification
The `CommitVerification::apply` function invokes `endpoint_verify`, passing `remaining_accounts` as a parameter, along with the seeds used for signing the transaction:
If a signed account is inadvertently passed to `endpoint_verify`, the progr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Solidity compiler optimizations can be dangerous
### Description
There have been several bugs with security implications related to optimizations. Moreover, optimizations have changed in the recent past. Solidity compiler optimizations are disabled by default. It is unclear how many contracts in the wild actua... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Balance Is Not Guaranteed to Cover All Users Rewards
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> When a distribution is generated off-chain we first fetch the contract balance which matches the amount of rewards registered off-chain
*... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: `computePhase0Eth1DataRoot` always returns an incorrect Merkle tree
### Description
The Merkle tree creation inside the `computePhase0Eth1DataRoot` function is incorrect.
### Proof of Concept
Provide direct links to all referenced code in GitHub. Add screenshots, logs, or any other relevant proof that illust... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Undocumented assembly blocks
### Description
The `UserWallet` contract includes two undocumented assembly blocks. [The first one](https://github.com/InstaDApp/contract-v2/blob/4863c0c4156af7ded9cdb38b66e5f5e527c4a6d0/contracts/UserWallet.sol#L90-L93) is in the `note` modifier and [the second one](https://gi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | false | false | ## Medium: Cached Borrow Index in Liquidation Logic Leads to Discrepancy with Underlying Pool
### Description
**Severity**: Medium
**Status**: Acknowledged
**Description**:
The _isLiquidatable function in EvoqUtils uses cached borrow indexes (lastPoolIndexes[_poolToken].lastBorrowPoolIndex) to calculate user 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 | rounding | false | false | ## Low: `getMintAmount()` Misreports Fees
### Description
In `SelfPeggingAsset.getMintAmount()`, the function sums per-token fees to report `feeAmount`. This does not match the actual fee charged, which should be the difference between the pre-fee and post-fee mint amounts. Because of non-linear effects and rounding i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Code structure is messed up.
### Description
**Description**
StakingB_1.sol Line 524
Storage and events must be separated in order to make code structure more readable.
**Recommendation**:
Move the “amountOfUser” variable to the other variables. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: DistributionModule: missing allowances for redirect target address in redirect cancel and remove
### Description
The redirect address feature allows the admin to redirect the Usual token payout to any new target address for a specific account. This feature has been built explicitly for contracts eligible to re... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## Medium: Attackers could mint more Fertilizer than intended due to an unused variable
### Description
Due to an unused local variable, an attacker could mint more Fertilizer than should be allowed by the sale.
The `mintFertilizer()` function checks that the `_amount` variable is no greater than the `remaining` vari... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [06] Enhancing contract efficiency with proactive financial health checks in `PrizeVault._depositAndMint()`
### Description
Incorporating early financial health checks within the PrizeVault contract's `_depositAndMint` function can significantly enhance operational efficiency and user experience by preemptivel... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | false | false | ## Medium: Missing IP address validation allows bypassing Redpanda ACL
### Description
The IP address used to create Redpanda ACLs is not validated, which allows bypassing the host restriction from ACLs (Figure 7.1). Because the IP address can be an arbitrary string, it is possible to send an all hosts wildcard (*) 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 | initialization | true | false | ## Low: Use of uninitialized memory when ZEMU_LOGGING is defined Difficulty: N/A
### Description
In a build in which the `ZEMU_LOGGING` macro is defined, the `addr_getItem` function calls the `zemu_log_stack` function with uninitialized memory, invoking undefined behavior. Based on other uses of `zemu_log_stack` in the c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: AssetReceiver Allows Burning ETH, ERC20 and ERC721 Tokens
### Description
AssetReceiver contains functions that allow the owner of the contract to withdraw ETH, ERC20, and ERC721 tokens. Those functions allow specifying the receiver address of ETH, ERC20, and ERC721 tokens but they do not check that the 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 | gas | storage | true | false | ## Gas: State variables can be packed into fewer storage slots
### Description
If variables occupying the same slot are both written the same function or by the constructor, avoids a separate Gsset (**20000 gas**). Reads of the variables can also be cheaper.
*There is 1 instance of this issue:*
https:/github.com/co... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Source: https://github.com/sherlock-audit/2023-02-notional-judging/issues/11
## Found by
xiaoming90
## Summary
If multiple pools support the exchange, users are forced to use the first pool returned by the Curve Registry. The first pool returned by Curve Registry might not be the most optimal pool to trade with. T... | Sherlock | 4.333333 | Notional Update #2 |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | true | false | ## Low: checkVaultStatus() might cause chained liquidation DOS
### Description
## Context
**File:** `RiskManager.sol#L118`
**Description:** `callHookWithLock()` in `RiskManager::checkVaultStatus()` allows a vault’s governor to set checks on various vault states and revert when necessary. For example, a vault's gove... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Use a more recent version of Solidity
### Description
**Context:**
All contracts
**Description:**
For security, it is best practice to use the latest Solidity version.
For the security fix list in the versions;
https://github.com/ethereum/solidity/blob/develop/Changelog.md
**Recommendation:**
Old version of ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Remove redundant console2 foundry imports
### Description
The console2 imports seem to be have been used for testing but have not been removed. Consider removing it since they do not serve any use in production. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insufficient Balance Validation in BaseGauge Can Lead to Reward Insolvency
### Description
In `BaseGauge.sol`, the contract only validates that it has enough tokens for the current reward rate period but fails to account for previously earned but unclaimed rewards. This could lead to a situation where the c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | false | false | ## Low: Incorrect Conditional Assignment
### Description
**Update**
The client fixed the issue in: `8ecd0a992c87dbeadcd85e0f1a7e8232b365c1ff` with the following explanation:
> Corrected as recommended in the audit report by inverting the condition to query for inequality
**File(s) affected:**`FlowEVMBridgeConfig.cdc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: NatSpec required.
### Description
**Severity**: Informational
**Status**: Acknowledged
**description**
NatSpec is a documentation format that helps in the readability of contract functions and a
better understanding of what they are doing. It is recommended that you have NatSpec in
your contracts. More det... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unchecked ERC20 transfer operation
### Description
Inside the [`payUser`](https://github.com/jeualvarez/Token-Airdrop/blob/d96202acf6fb5d0305368bac36aa960d455cbffe/contracts/Airdrop.sol#L34) function, a transfer is being made but there are no checks validating its successful completion. If the transfer some... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Stranded Modules
### Description
Before a module is initialized on a `SetToken`, it [transitions through the `PENDING` state](https://github.com/SetProtocol/set-protocol-v2/blob/b8286f431547823ff3935a1343cd4cf4d77585a1/contracts/protocol/SetToken.sol#L354). However, [only initialized modules can be removed](ht... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Method Handling Strictness (Applies to ALL API files)
### Description
The default case in every switch (`req.method`) uses:
```javascript
res.status(StatusCodes.NOT_IMPLEMENTED).send(ReasonPhrases.NOT_IMPLEMENTED);
```
Instead of:
- Returning 405 Method Not Allowed for unsupported but understood HTTP method... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unreachable Branch
### Description
**Severity** - Informational
**Status** - Resolved
**Description**
In the function `_internalDeposit` in the contract Vesting.sol the condition if (`receiver_ == address(0)`) revert `ZeroAddress()` is unnecessary since at L114 ERC20’s mint is called which reverts on 0 addr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Pre-state root and transaction may not uniquely identify transitions
### Description
The `OVM_FraudVerifier` contract [identifies State Transitioner contracts](https://github.com/ben-chain/contracts-v2/blob/a935e276f5620b40802b52721e3474232e458f72/contracts/optimistic-ethereum/OVM/verification/OVM_FraudVeri... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Lack of slippage in `spot_lp` liquidity operations due to relying on the changing `header.crncy_tokens` and `header.asset_tokens`
### Description
**Description:** The `spot_lp` function lacks slippage protection when adding or removing liquidity.
In most cases, the function calculates the required asset 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 | true | ## Medium: Improper execution order in `generatePerformance`
### Description
In OracleManager, the operator role will generate validators' performance result periodically. When we get the performance result, we will check the validator's behavior. If this validator's behavior is below expectation, we will deactivate t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | true | false | ## High: Users may be liquidated right after taking maximal debt
### Description
### Impact
Since there's no gap between the maximal LTV and the liquidation LTV, user positions may be liquidated as soon as maximal debt is taken, without leaving room for collateral and Papr token prices fluctuations. Users have no cha... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | true | false | ## Low: Constant redefined elsewhere
### Description
Consider defining in only one contract so that values cannot become out of sync when only one location is updated. If the variable is a local cache of another contract's value, consider making the cache variable internal or private, which will require external users... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Discrepancy in Conversion of Synthetic Yield Tokens
### Description
## Discrepancy in Synthetic Yield Token Redemption
In the RedeemSy instruction, there is a potential discrepancy in the conversion of synthetic yield (SY) tokens (shares) to their corresponding base asset amounts. This discrepancy arises 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 | oracle | true | false | ## High: Missing funds validation in update\_price\_feeds
### Description
The function `update_price_feeds` is responsible of updating the Pyth oracle by paying a given fee and pushing the most recent price (as Pyth oracles follow a push-like behavior where users are the ones which update the price feed at will). Howe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Issues when Stable Borrow Rate is Zero
### Description
In the case of AAV-12 or if `LendingRateOracle.getMarketBorrowRate()` returns zero (which should only be possible by misconfiguration), then a user may obtain a stable rate of zero. When deposits have been made but there are no borrows, the utilisation rat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Missing-Logic | false | false | Source: https://github.com/sherlock-audit/2023-02-blueberry-judging/issues/140
## Found by
cducrest-brainbot, rvierdiiev, Jeiwan
## Summary
In `BlueBerryBank.sol` the functions `borrow`, `repay`, `lend`, or `withdrawLend` call `poke(token)` to trigger interest accrual on concerned token, but fail to do so for othe... | Sherlock | 5 | Blueberry |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Refactor `AdminVoting::minCreateProposalWeight` to eliminate unnecessary variables and multiple calls to `getWeek`
### Description
**Description:** Refactor `AdminVoting::minCreateProposalWeight` to eliminate unnecessary variables and multiple calls to `getWeek`:
**Bima:**
Fixed in commit [51200dc](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 | other | true | false | ## Low: Constants in comparisons should appear on the left side
### Description
Doing so will prevent [typo bugs](https://www.moserware.com/2008/01/constants-on-left-are-better-but-this.html).
*There is 1 instance of this issue:*
https://github.com/code-423n4/2022-12-gogopool/blob/aec9928d8bdce8a5a4efe45f54c39d4fc7... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Block Manipulation
### Description
## Stake Management and Manipulation
When a provider initially stakes, `stakeAppliedBlock` is set to the next block (`uint64(ctx.BlockHeight()) + 1`). If the provider’s stake falls below the minimum required stake (`k.specKeeper.GetMinStake(ctx, chainID)`), the stake entry i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Inefficient Commission Accounting for Administrator and Market Maker
### Description
The [`transferCommissions`](https://github.com/longgammalabs/hanji-contracts/blob/09b6188e028650b9c1758010846080c5f8c80f8e/src/OnchainLOB.sol#L582) function updates commissions by modifying the `Trader` struct for both the adm... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | overflow | true | true | Source: https://github.com/sherlock-audit/2023-02-fair-funding-judging/issues/38
## Found by
0x52, Bauer, hickuphh3, jkoppel
## Summary
Accounting mismatch when marking claimable yield against the vault's shares may cause failing liquidations.
## Vulnerability Detail
`withdraw_underlying_to_claim()` distributes `_... | Sherlock | 5 | Fair Funding by Alchemix & Unstoppable |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Missing sender.id and sender.tab checks
### Description
The Uniswap wallet browser extension does not limit background message listeners to messages originating from the extension itself (i.e., the `sender.id` field is not consulted). Moreover, the extension does not differentiate between messages from content... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 View Functions for Key Data Retrieval
### Description
The `LOB` contract lacks view functions for essential data retrieval, such as calculating the actual price taking into account scaling factors and fetching orders by `trader_id`. These functions would enhance the usability and transparency of the co... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `LienToken.createLien` may prevent liens that satisfy their terms of `maxPotentialDebt`
### Description
The `potentialDebt` calculation in `createLien` is incorrect.
### Impact
This will cause DoS on valid lien creation.
### Recommendation
Have `getImpliedRate()` *not* do `impliedRate = impliedRate.mulDiv... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Suspended PartyBs can bypass the withdrawal restriction by exploiting `fillCloseRequest`
### Description
Suspended PartyBs can bypass the withdrawal restriction by exploiting `fillCloseRequest` function. Thus, an attacker can transfer the ill-gotten gains out of the protocol, leading to a loss of assets 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 | front-running | false | false | ## Medium: Users do not receive owed tokens if `TokenSender` contract cannot cover their owed amount.
### Description
The `TokenSender.send()` method is called during the course of users withdrawing or redeeming tokens from the protocol. The method is called via `DepositHook.hook()`, `RedeemHook.hook()`, and `Withd... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: arbitrator cannot be revoked
### Description
**Description:**
There are no functions and way to revoke the arbitrator
**Recommendations:**
Add function to revoke the arbitrator | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: External call does not check if target is contract
### Description
The [`Option` contract](https://github.com/primitivefinance/primitive-protocol/blob/78a8e64b7618e9199203ab84042876c580ae1e90/packages/primitive-contracts/contracts/option/primitives/Option.sol#L28) performs external function calls during its ex... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Non-Standard Transfer Implementation via Multiplication by Decimals
### Description
**File(s) affected:**`claimtoken.sol`
**Description:** The `_transfer()` function multiplies the `amount` parameter by `10**decimals` before transferring tokens. While this approach may aim to simplify human-readable token amo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Incorrect Parsing Of Phone Numbers
### Description
## Phone Number Conversion Issue
The function `phoneNumberConvertDev` is not correctly parsing phone numbers that start with a country code. If the true number is `91XXXXXXX` and the country code is `91`, the result should be `+9191XXXXXX`. Instead, it is bei... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unspecific Compiler Version Pragma
### Description
Avoid floating pragmas for non-library contracts.
While floating pragmas make sense for libraries to allow them to be included with multiple different versions of applications, it may be a security risk for application implementations.
A known vulnerable com... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Superfluous actions when the function is called again
### Description
At the lines
https://github.com/lidofinance/lido-dao/blob/5b449b740cddfbef5c107505677e6a576e2c2b69/contracts/0.8.9/DepositSecurityModule.sol#L336-L356 there's a call to the `pauseDeposits()` function to set the value of the `paused` vari... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Minter / Staker / Spender roles can never be revoked
### Description
From [Neuron::addMinter](https://github.com/code-423n4/2024-02-ai-arena/blob/cd1a0e6d1b40168657d1aaee8223dc050e15f8cc/src/Neuron.sol#L93-L96) and [AccessControl::setupRole](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/ecd2ca... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: NibblVault buyout duration longer than update timelock
### Description
_Submitted by reassor_
### Impact
User can buy out NFT by initiating the process through `initiateBuyout`, then he has to wait `BUYOUT_DURATION` which is 5 days and if the buyout will not get rejected he can claim the NFT. During 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 | high | storage | true | false | ## High: Swap-and-pop without index fix-up corrupts `Position`’s fungible array
### Description
**Description:** [`Position`](https://github.com/Licredity/licredity-v1-core/blob/e8ae10a7d9f27529e39ca277bf56cef01a807817/src/types/Position.sol#L10-L16) tracks fungible collateral in **two places** that must stay in sync:... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Function removeRouter does not clear approvedForPortalRouters
### Description
The function `removeRouter()` clears most of the fields of the struct `RouterPermissionsManagerInfo` except for `approvedForPortalRouters`. However, it is advisable to also remove `approvedForPortalRouters` in `removeRouter()` becaus... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: AUCTION CAN BE EXTENDED INDEFINITELY
### Description
In the contract, `SurplusAuctionHouse.sol` observed that the function `restartAuction` lacks access control; thus, anyone can make an external call to this function. Furthermore, calling the `restartAuction` function just before the auction expires (no bid 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 | oracle | false | false | ## Low: Oracle lacks emergency price validation
### Description
_Resolved_
When `isEmergencyOracleEnabled = true,` the contract immediately returns the emergency oracle's latestRoundData(), regardless of data freshness or price correctness. Even though it may be zero-priced, or return invalid data.
Add a price check... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Precision loss in `toPackedFloat` function when mantissa is in range (`MAX_M_DIGIT_NUMBER`, `MIN_L_DIGIT_NUMBER`)
### Description
### Finding description and impact
The current implementation determines the result mantissa’s size (`M` or `L`) solely based on the `exponent`, without considering the actual num... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: After disabling burning with `CentralToken::disableBurning` calling `PaymentSettler::enableBurning` leads to stuck funds
### Description
**Description:** Burning of child tokens can be disabled, even after `PaymentSettler::enableBurning(...)` is called by and admin calling `CentralToken::disableBurning()` 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 | low | overflow | true | false | ## Low: Arithmetic overflow or underflow in `PositionValue` library
### Description
_Resolved_
Some libraries from the Uniswap V3 Core and Periphery codebases have been adapted so that they can be used with Solidity 0.8.0 and above.
In the case of the `PositionValue` library, the adaptation has not been done correc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of access control in `AgentNftV2::addValidator()` enables unauthorized validator injection and causes reward accounting inconsistencies
### Description
The `AgentNftV2::addValidator()` function lacks any form of access control. While the `mint()` function of `AgentNftV2` does enforce role-based restricti... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Function ordering does not follow the Solidity style guide
### Description
According to the [Solidity style guide](https://docs.soliditylang.org/en/v0.8.17/style-guide.html#order-of-functions), functions should be laid out in the following order :`constructor()`, `receive()`, `fallback()`, `external`, `public`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redemption implementation does not match the protocol specification
### Description
The specification outlines that a LP's shares are minted in proportion to their total ownership of shares held by the pool and not the total requested share amount. However, the implementation is of the latter, meaning a lender... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Group order denoted `Q` may be confused with the public key
### Description
In `SignatureValidator.sol`, the Schnorr signature scheme group order is denoted `Q`. While in the context of Schnorr signatures, a lowercase `'q'` is sometimes used to denote the group order. This particular Schnorr signature scheme u... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: The `mint` function relies on centralized entities in order to function properly
### Description
**Severity**: Informational
**Status**: Acknowledged
**Description**
The `mint` function is only available for 2 defined addresses, `LITCRAFT_MINTER` and `FOREVVER_MINTER`. These are the only 2 addresses that 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 | access-control | true | false | ## Low: Potential ineffectiveness in bid increment validation
### Description
The `minBidIncrementPercentage`parameter in the **BeraAuctionHouse** contract defines the minimum percentage increase for new bids. Although the `setMinBidIncrementPercentage`function includes a check to prevent setting this value to zero, t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | false | ## High: TurboRouter: `deposit()`, `mint()`, `createSafeAndDeposit()` and `createSafeAndDepositAndBoost()` functions do not work
### Description
_Submitted by cccz, also found by CertoraInc and WatchPug_
The TurboRouter contract inherits from the ERC4626RouterBase contract. When the user calls the deposit, mint, crea... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | input-validation | true | true | ## Low: Insufficient slippage protection in `BunniHub::deposit`
### Description
`BunniHub::deposit` current implements slippage protection by allowing the caller to provide a minimum amount of each token to be used:
```solidity
function deposit(HubStorage storage s, Env calldata env, IBunniHub.DepositParams calldata ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `_reimburse()` docs are slightly inconsistent with its behavior
### Description
The docs for function `_reimburse()` mentions:
However, the function always (attempts to) transfers exactly `amount`, which should be specified as a function parameter earlier in the `delegateMulti()` call. This is inconsistent w... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: keep-core - operator contracts disabled via panic button can be re-enabled by RegistryKeeper ✓ Addressed
### Description
The Registry contract defines three administrative accounts: `Governance`, `registryKeeper`, and `panicButton`. All permissions are initially assigned to the deployer when the contract is c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | true | false | ## Medium: The `onERC721Received()` Is Not Implemented Correctly
### Description
The `PositionManager.onERC721Received()` function intends to accept liquidity positions sent only by the admin to the `PositionManager` contract. It performs some validations regarding the liquidity position type that is being transferred... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.