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 | medium | storage | true | false | ## Medium: Insufficient Input Length Check in hashAccountValue Function ✓ Fixed
### Description
In the `SparseMerkleProof` contract, there is an `Account` struct:
```
struct Account {
uint64 nonce; // 8 bytes, but occupies full slot, so 32 bytes
uint256 balance; // 32 bytes
bytes32 storageRoot; // 32 bytes
b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: 3] Loss of funds when setting a new lendingModule with stHYPEWithdrawalModule::setProposedLendingModule
### Description
**Severity:** High
**Description:** When a new `lendingModule` is set via `stHYPEWithdrawalModule::setProposedLendingModule` the wrapped native token is transferred from the current `lendin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | reentrancy | true | false | ## High: USDs stability can be compromised as collateral can be stolen by removing Hypervisor tokens directly from a vault without repaying USDs debt
### Description
**Description:** When the owner of a Smart Vault calls [`SmartVaultV4::depositYield`](https://github.com/the-standard/smart-vault/blob/c6837d4a296fe8a6e4... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | cross-chain | false | false | ## High: Using `abi.encodePacked()`can Lead to Hash Collisions
### Description
**Update**
The client has decided to keep using `encodePacked()` and made the following acknowledging comment: "The reason is that it is extremely difficult to manipulate the bytes within the correct Evidence to match the `destCode` and ach... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Optimization
### Description
## Consolidation of Transfer and Withdraw Operations
Both **transfer** and **withdraw** perform nearly identical operations, involving transferring balances between virtual accounts. The main difference lies in the deletion of the source account in **withdraw**.
Thus, both ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | true | ## Medium: Missing price feed validation in oracle contract
### Description
The `Oracle` contract's `_getLastPrice` function retrieves price data from oracle price feeds without performing critical validation checks, which could lead to stale or invalid price data being used in the protocol.
Link: https://github.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 | low | initialization | false | false | ## Low: Redundant code
### Description
In the constructor of `CeFiSmartTransfer.sol`, there is an initialization attempt for the `nativeTransfer` variable. This initialization is unneeded and impractical, since this `NativeTransfer` values will not and can not be used until the `prepareNativeTransfer()` function is ca... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No Events Emitted and Lack of External Views in Contracts
### Description
The contracts `SphereXProtected` and `SphereXEngine` do not emit events or implement external views. This absence of conventional observability methods demands specialized tools and knowledge to monitor and inspect the operational sta... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary logical operation
### Description
**Severity:** Informational
**Description:** In the function `SwapExchange::calculateMultiSwap()` there is a logical operation that is not necessary in the for loop.
**Protocol:** Fixed in commit [a079c11](https://github.com/SwapExchangeio/Contracts/commit/a079c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Vault.mintWithPermit()` can be DoS'd
### Description
### Lines of code
### Impact
`Vault.mintWithPermit()` uses a signature to approve the underlying asset. But the asset amount can be changed easily, so this method can be reverted and might be DoS'd.
### Proof of Concept
`Vault.mintWithPermit()` gets... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Missing minimum deposit enforcement
### Description
**Description:** The `BasisTradeVault::deposit` function does not enforce a minimum deposit amount. Allowing dust deposits can lead to several undesirable situations:
1. **Economic Unviability:** A user might deposit an amount so small that the gas fees for... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Unverified integratorFee Within Reasonable Range
### Description
The `IntegratorFeeExtension` does not enforce a verification process to ensure that the `integratorFee` is below a predefined threshold (`_TAKING_FEE_BASE`) or within a generally acceptable range. This lack of validation could potentially lead 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 | other | true | false | ## Low: Incorrect/misleading NatSpec
### Description
The function retrieves the number of votes at the end of an *epoch*, not at the end of a block. Furthermore, `blockNumber` is not an actual variable name
*There is 1 instance of this issue:* | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | false | ## High: Wrong implementation of `performanceFee` can cause users to lose 50% to 100% of their funds
### Description
_Submitted by WatchPug_
A certain amount of lp tokens (shares of the vault) will be minted to the `strategyPerformanceTreasury` as `performanceFee`, the amount is calculated based on the `minLpPriceFac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | false | false | ## Medium: Unlimited allowance.
### Description
**Description**
LockZap.sol: constructor(), lines 53-54; setLpMfd(), line 66.
Making an unlimited allowance of tokens might be potentially dangerous and lead to funds loss in case of exploitation. Though approval is performed on protocol contracts (Uniswap PoolHelper.s... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: TRST-L-2 Incorrect imageURI is returned for hats in certain cases
### Description
**Description:**
Function `getImageURIForHat()` should return the most relevant imageURI for the requested
hatId. It will iterate backwards from the current level down to level 0, and return an image if
it exists for that level... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incomplete Storage Cleanup in `_removeTokenFromUser()`
### Description
When loans are closed by calling `closeIndividualLoan()`, the system fails to fully clear all associated data. While it removes the token, related records, it neglects to delete the core loan details stored in the `userLoans[user][loanId]` ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `PodUnwrapLocker` can be drained due to an arbitrary input
### Description
`PodUnwrapLocker` can be drained due to an arbitrary input
### Impact
Theft of funds
### Recommendation
Do not allow arbitrary pods | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Using private rather than public for constants saves gas
### Description
If needed, the value can be read from the verified contract source code. Savings are due to the compiler not having to create non-payable getter functions for deployment calldata, and not adding another entry to the method ID table | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Magic numbers
### Description
**Description**
To increase the readability of the code it is recommended to avoid undocumented numbers
hardcoded in the contract.
See it in:
initDeposit(), line 362, line 366
addPayout(address,uint256), line 421, line 423
withdraw(uint256), line 462, line 463
investStaking(uint16... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Potential fill-and-forfeit attack on IPs
### Description
Severity: Low Risk
Context: RecipeKernel.sol#L563
Description: Malicious APs can execute a fill-and-forfeit attack on IPs:
• Scenario 1:
1. AP creates an offer.
2. IP fills the offer. AP forfeits their rewards and unlocks the wallet immediately.
3. Result: ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fee handling locks fees in SuperVaultAggregator
### Description
Upkeep fees are transferred into the SuperVaultAggregator using the `depositUpkeep` function. The function records a balance for the strategist `_strategistUpkeepBalance[strategist]`. When `forwardPPS` is called, the balance may be reduced if the... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Slippage Tolerances May Be Too Large
### Description
When performing a [`selfCompound` operation](https://github.com/radiant-capital/v2-core/blob/e8f21f103e17736907b62809d1ad902febc53714/contracts/radiant/accessories/Compounder.sol#L228) or when a hunter [claims](https://github.com/radiant-capital/v2-core/b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unrestricted Withdrawal of Backing Tokens by Admin Acknowledged
### Description
The function `adminWithdrawBacking` allows an admin to withdraw tokens from the contract without any restrictions. The tokens injected through `adminInjectBacking` are not tracked separately, nor is there any limit or condition... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use `uint256` for computations such that voting power can be all values in `uint96` range
### Description
The voting power in a party is managed in `uint96` variables.
When we look at the `PartyGovernance._areVotesPassing` function we can see that for the computation the `uint96` variables are cast to `uint... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | dos | true | false | ## High: Potential DoS attack of AutoPool's rebalance and debt reporting functions due to division by zero in profit locking calculation from AutoPoolFees
### Description
**Severity:** High
**Path:** src/vault/libs/AutoPoolFees.sol#L330-L346, src/vault/libs/AutoPoolFees.sol#L402, src/vault/libs/AutoPoolFees.sol#L42-L... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: SAFEREWARDTRANSFER SHOULD CHECK BEFORE/AFTER BALANCE
### Description
Since the system does implement any token white-listing, the `_safeRewardTransfer` function should verify that the difference between the before and after balance corresponds to the actual requested `amount`.
Code Location
-------------
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | overflow | false | false | ## High: Vesting Logic Would Keep Reverting For An Edge Case
### Description
**Severity**: High
**Status**: Resolved
**description**
The normal flow in the system is , users deposit , they deposit is raised and liquidity is added
to pancakeSwap and users can vest their shares using the function `vesting()` .
In 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 | initialization | true | true | ## Low: Miscellaneous Rocket Pool Contract Issues
### Description
This section details miscellaneous findings discovered by the testing team that do not have direct security implications:
- Unbonded validators have a RPL stake minimum that is 10% of 16 ether, not of 32 ether, so the staking requirement is effectively... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: In contract MultiSigWallet, there is the modifier called transactionExists which is checking if a transactionId is valid by checking the destination variable and is returning the ERR_INVALID_TARGET, all of this is not very consistent and it’s not in term with best practices for code context consistency.
### De... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Borrower can use an arbitrary `offerId` for a pool contract’s loan offer, which might lead to incorrect off-chain accounting.
### Description
`offerId` is a field in struct `LoanOffer` (`src/interfaces/loans/IMultiSourceLoan.sol# L26`) and `LoanOffer` is typically signed by the lender. Currently, `offerId` is ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | true | false | ## Low: Enforce that `StakingVault::decimals` is greater or equal to the underlying asset decimals
### Description
**Description:** [EIP4626](https://eips.ethereum.org/EIPS/eip-4626) states:
> Although the convertTo functions should eliminate the need for any use of an EIP-4626 Vault’s decimals variable, it is still s... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | true | ## Gas: _resolveAttestation() and _resolveAttestations() functions can be optimized
### Description
In the `_resolveAttestation` and `_resolveAttestations` functions, it’s ensured that the EAS contract doesn’t accept payments which cannot be forwarded to the resolver. As a gas optimization, the operations (`availableV... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | Validation | false | false | ## Severity: Medium Risk
## Context
- `LibConnextStorage.sol`#L184
- `AssetLogic.sol`#L36
- `AssetFacet.sol`#L143
- `TokenRegistry.sol`#L112-L113
- `TokenRegistry.sol`#L334
## Description
A canonical asset is a tuple of a (domain, id) pair. TokenRegistry’s owner has the power to register new tokens in the system (See... | Spearbit | 5 | Connext |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Faulty Constant Definition
### Description
## MAX_u64 Constant Issue
The constant `MAX_u64` is supposed to represent the maximum value of a 64-bit unsigned integer, which is \(2^{64} - 1\). In hexadecimal, this value should be represented as `0xFFFFFFFFFFFFFFFF`, which consists of 16 hexadecimal characters. ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: UNUSED CODE
### Description
Unused pieces of code such as modifiers or variables have been found through the code. These unused variables increase gas costs for contract deploying and interactions, impact code readability and might cause the contract to behave in unexpected ways or introduce new vulnerabilitie... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: update_market() nextEpoch calculation incorrect
### Description
A very important logic of `update_market()` is to update `accCantoPerShare`.
When updating, if it crosses the epoch boundary, it needs to use the corresponding epoch's `cantoPerBlock[epoch]`.
For example:
cantoPerBlock\[100000] = 100
cantoPerBloc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 onlyNonUsAttestationFrom modifier is missing from the AttestationVerifier contract
### Description
The **AttestationVerifier** contract currently includes the `onlyNonUsAttestation` modifier. This modifier is designed to confirm whether the sender possesses a valid “Verified by CB” EAS attestation and is no... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | rounding | true | false | ## High: Method `_claim(...)` calculates wrong shares and left values
### Description
**Severity**: High
**Status**: Resolved
**Description**
In Contract TokenSale.sol, the method _claim has the following logic:
Here, `state.totalPrivateSold` is in 1e24, and `state.totalSupplyInValue` is in 1e18 which will make 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 | gas | other | true | false | ## Gas: `NFTVault.showPosition()`: L659 should be unchecked due to L649
### Description
See `@audit` tag: | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Access Control | false | false | Source: https://github.com/sherlock-audit/2022-11-opyn-judging/issues/6
## Found by
bin2chen, hyh, hansfriese, aviggiano, caventa, thec00n, indijanc, rotcivegaf, kaliberpoziomka, chainNue, John, adriro, Atarpara, cccz, \_\_141345\_\_, Haruxe, zimu, minhtrng, HonorLt, ctf\_sec, imare, reassor, jonatascm
## Summary
T... | Sherlock | 4 | Opyn Crab Netting |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fee shares are minted at worse price for fee receivers
### Description
Whenever interest is accrued, part of the interest is taken as a fee. This fee is used to mint shares for the "fee receivers". The code is expected to work as follows: add `(newInterest - feeAssets)` to `totalAssets`, and then deposit `feeA... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Flash deposit and withdraw can be used to off-balance assets
### Description
The `_withdraw` function iterates over strategies in the withdrawal queue order and withdraws from the strategies in case more withdrawable assets are needed. This can be exploited by a griefer to off-balance the Earn vault strategy 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 | initialization | true | false | ## Low: Lack of zero check on functions
### Description
Certain setter functions fail to validate incoming arguments, allowing callers to inadvertently set important state variables to the zero address. This issue is particularly observed in the constructor of `BasePoolFactory`, which sets the vault. The `BasePoolFact... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## Medium: `getOperatorPowerAt` uses current prices for past stake calculations
### Description
`OBaseMiddlewareReader::getOperatorPowerAt()` is trying to calculate the stake power that a specific operator had at a past timestamp based on their stake across all active vaults. This past stake power is used to sort 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 | gas | other | true | false | ## Gas: `require()` or `revert()` statements that check input arguments should be at the top of the function
### Description
Checks that involve constants should come before checks that involve state variables, function calls, and calculations. By doing these checks first, the function is able to revert before wasting... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `MerkleMinter` created through `TokenFactory` cannot be upgraded
### Description
During the token creation process in the `TokenFactory` contract, the function creates a `MerkleMinter` contract to setup and handle token initial token distribution.
The `MerkleMinter` contract is an upgradeable contract, as... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Pool strike price could be zero due to lack of lower bound check on maxTick
### Description
The `maxTick` variable is used to approximate the strike price of a pool. However, the code does not validate the lower bound of `maxTick`, which means that the strike price of a pool can be 0, causing the pool’s asset... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Cooldown Deactivation Instantly Unlocks Pending Cooldown Funds
### Description
**Description:** The documentation does not clearly specify the behavior of funds that are already in the cooldown state when `cooldownDuration` is set to 0. In the current implementation, disabling cooldown allows users with pendin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | token | true | false | ## Low: typo error in variables
### Description
The variable `mint_token_prgoram_version` contains a typo: "prgoram" should be "program". This typo is repeated in the error message.
```rust
let data = NewInstrumentData::new(instruction_data, root_state.tokens_count)?;
let mint_token_prgoram_version = TokenPr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: L06] Weak condition in the cleaning mechanism
### Description
###### Low
The function [`updateTo`](https://github.com/BeamNetwork/currency/blob/c0d8477866a8667a37f45c85378c5938c84569cd/contracts/currency/BeamBalanceStore.sol#L293) in the `BeamBalanceStore` contract aims at updating the balance of a given add... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Vault and oracle keepers DoS in some situations due to `market.update(account,max,max,max,0,false)`
### Description
When user's market account is updated without position and collateral change (by calling `market.update(account,max,max,max,0,false)`), this serves as some kind of "settling" the account (whic... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `claim` function lacks slippage controls for `amount0` and `amount1` returned by `pool.burn` function call
### Description
Because the `claim` function does not have slippage controls for `amount0` and `amount1` returned by the `pool.burn` function call, the `claim` function call can suffer from price manip... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Floating pragma
### Description
All contracts in scope currently use floating pragma versions `^0.8.26` which means that the code can be compiled by any compiler version that is greater than or equal to `0.8.26`, and less than `0.9.0`.
However, it is recommended that contracts should be deployed with 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... | solodit_api | high | Reentrancy | true | true | ## Lines of code
https://github.com/code-423n4/2022-05-rubicon/blob/8c312a63a91193c6a192a9aab44ff980fbfd7741/contracts/rubiconPools/BathToken.sol#L557-L568
## Vulnerability details
`BathToken.sol#_deposit()` calculates the actual transferred amount by comparing the before and after balance, however, since there is ... | Code4rena | 4 | Rubicon |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Missing events for only functions that change critical parameters
### Description
**Description:**
The functions that change critical parameters should emit events. Events allow capturing the changed parameters so that o-chain tools/interfaces can register such changes. For Example :The Graph
**Recommendati... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TwapOracle doesn’t calculate VADER:USDV exchange rate correctly
### Description
## Handle
TomFrench
## Vulnerability details
## Impact
Detailed description of the impact of this finding.
## Proof of Concept
https://github.com/code-423n4/2021-11-vader/blob/3a43059e33d549f03b021d6b417b7eeba66cf62e/contrac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: WITHDRAWALS GET TEMPORARILY BLOCKED WHEN CREATING BOARDS
### Description
When the owner creates a new board, the `addBoard` function from **OptionGreekCache** contract is called. This function triggers `_updateGlobalLastUpdatedAt`, which sets the value of `minUpdatedAtPrice` to 0.
As a consequence, users 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... | cyfrin_structured | medium | timing | false | false | ## Medium: Using `block.timestamp` for swap deadline offers no protection
### Description
`block.timestamp` is used as the deadline for swaps in `PriceFeed::exchangeFromExact()` [L106](https://github.com/dexe-network/DeXe-Protocol/tree/f2fe12eeac0c4c63ac39670912640dc91d94bda5/contracts/core/PriceFeed.sol#L106) & `Pric... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: State modification during storage reading in `forceSload` function
### Description
The `forceSload` function alters the `AccountInfo` settings of the target contract, even though its intended purpose is only to read storage from contracts that lack getters, without modifying any state.
### Impact
Using `Sload... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Farming Amount Limit
### Description
Description
The FarmAccounting contract is used by the Farm contract to handle computation on Info. The Farm contract works
closely with the ERC20Farmable contract to create a token system with farming capability.
The startFarming() function in FarmAccounting contract is... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | Wrong Math | false | true |
<https://github.com/code-423n4/2022-11-redactedcartel/blob/03b71a8d395c02324cb9fdaf92401357da5b19d1/src/PirexGmx.sol#L615>
<https://github.com/code-423n4/2022-11-redactedcartel/blob/03b71a8d395c02324cb9fdaf92401357da5b19d1/src/PirexGmx.sol#L685>
<https://github.com/code-423n4/2022-11-redactedcartel/blob/03b71a8d395c... | Code4rena | 5 | Redacted Cartel |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `increaseUnlockTime` missing `_checkpoint` for delegated values
### Description
_Submitted by PwnedNoMore, also found by ak1, CertoraInc, and scaraven_
In the VotingEscrow contract, users can increase their voting power by:
* Adding more funds to their delegated value
* Increasing the time of their loc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: 3S-LENFT-N24 protocol/Lending/LoanCenter.sol: functions repayLoan() and liquidateLoan() share most of the code
### Description
In the LoanCenter, [functions repayLoan() and liquidateLoan()](https://github.com/leNFT/contracts/blob/78170402e176f2f754e0e24cb22a90961c9e5799/contracts/protocol/Lending/LoanCenter.so... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Initial param seems incorrect
### Description
## Context: BaseJackpot.sol#L183, BaseJackpot.sol#L184
## Description:
1. **minLpDeposit** is currently just 1 USDC, which means a malicious user can create distinct 100 LP users with a 1 USDC deposit each and block any new LP user.
2. **protocolFeeThreshold** see... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Mint function in the Infinity pool will emit the incorrect value. ✓ Fixed
### Description
In the `InifinityPool` file the `mint` function recomputes the amount of the assets before emitting the event. While this is fine in a lot of cases, that will not always be true. The result of `previewMint` and `convertTo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [14] Usage of `uints`/`ints` smaller than 32 bytes (256 bits) incurs overhead
### Description
> When using elements that are smaller than 32 bytes, your contract’s gas usage may be higher. This is because the EVM operates on 32 bytes at a time. Therefore, if the element is smaller than that, the EVM must use m... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | cross-chain | false | false | ## Medium: Lack of event emissions
### Description
The codebase is completely devoid of event definitions or emissions. This makes it very difficult for users or other interested parties to track important changes that take place in the system.
Consider emitting events after sensitive changes take place to facilitat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Front-Running | false | true | _Submitted by 0x52, also found by elprofesor_
Rebases can be frontrun with very little token downtime even when `warmUpPeriod > 0`.
### Proof of Concept
<https://github.com/code-423n4/2022-06-yieldy/blob/524f3b83522125fb7d4677fa7a7e5ba5a2c0fe67/src/contracts/Staking.sol#L415-L417>
<https://github.com/code-423n4/202... | Code4rena | 4 | Yieldy |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Reliance on Off-Chain Component to Be Working as Expected
### Description
**Update**
The team is confident that `FxBaseRootTunnel.sol` will ensure no replay attacks as the contract is supplied by Polygon.
**File(s) affected:**`UserProxy.sol`
**Description:** The `UserProxy` contract is responsible for comple... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Loss In Event Data Due To Truncation
### Description
## Log Outbox Message in Solana
In `withdraw::log_outbox_message`, the encoded `WithdrawalMessageSent` structure is logged utilizing the `msg!` macro. Due to the utilization of Solana logs, if the encoded message is large, it may exceed the 10 KB limit, res... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Code Maturity
### Description
## Stake Pool Initialization and Corrections
1. In `initialize_stake_pool`, use `InitializeStakePoolParams` within `#[instruction(...)]` instead of `Pubkey`.
2. Correct the typographical errors in the following areas:
- (a) `slash_score_current` is spelled as `slash_score_cur... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: [07] Inconsistent Error Message in `unpauseContract`
### Description
**Contract Name:** `PauserRegistery.sol`
**Function Name:** `unpauseContract`
**Description:**
The `require` statement in `unpauseContract` uses the error message `"Contract not paused"`, which is inconsistent with `"Contract already paused... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | medium | logic-error | true | true | ## Medium: Active and pending bets can be cancelled by anyone
### Description
[`Bet::cancel`](https://github.com/gskril/wannabet-v2/blob/d7333369548874cb99e9648ea2424ac1e67cc23f/contracts/src/Bet.sol#L163-L176) allows any address (except the maker) to cancel a bet while it is in the `ACTIVE` or `PENDING` state:
```so... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: For modern and more readable code; update import usages
### Description
Solidity code is also cleaner in another way that might not be noticeable: the struct Point. We were importing it previously with global import but not using it. The Point struct `polluted the source code` with an unnecessary object we wer... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | token | true | true | ## High: StakedToken holders can circumvent restriction by approving another address to withdraw
### Description
StakedTokens come with transfer restricted functionality. Given that withdraw burns tokens, a path to circumventing the transfer restriction exists.
First, the `_withdraw` function checks that the caller 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 | rounding | true | false | ## Low: Inflation attack
### Description
Although `SpectraWrappedRLP` uses the OZ `ERC4626Upgradeable` as a base for its implementation, the use of the default `1 virtual share` and `1 virtual asset` is insufficient to prevent an inflation attack.
The code also uses `balanceOf(address(this))` to retrieve the `vaultSh... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | initialization | true | false | ## Low: Incorrect `EIP712Base` constructor documentation
### Description
[This comment](https://github.com/OneWpOrg/smart-contracts-blockchain-1wp/blob/416630e46ea6f0e9bd9bdd0aea6a48119d0b515a/contracts/meta-transaction/EIP712Base.sol#L21-L29) documenting the `EIP712` constructor is incorrect:
```solidity
// supposed... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Missing isListedPool checks may lead to lock/loss of user funds
### Description
## Handle
0xRajeev
## Vulnerability details
## Impact
This isListedPool check implemented by isPool() is missing in many functions of the contract that accept pool/token addresses from users. getPool() returns the default mapp... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | overflow | false | false | ## Medium: `CDSLib::calculateCumulativeRate()` incorrectly only increment the local option fees when there are cds deposits
### Description
`CDSLib::calculateCumulativeRate()` adds option fees to `_totalCdsDepositedAmountWithOptionFees` if `_totalCdsDepositedAmount` is [not null](https://github.com/sherlock-audit/2024... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Medium: CNote updates the accounts after sending the funds, allowing for reentrancy
### Description
_Submitted by hyh, also found by defsec_
Having no reentrancy control and updating the records after external interactions allows for funds draining by reentrancy.
Setting the severity to medium as this is conditio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wallet sends requests with private data before the application is unlocked
### Description
When the application launches while still awaiting to be unlocked by biometric or PIN authentication, the application starts fetching profile information over the network. This leads to the disclosure of information about... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: | Custom Reverts
### Description
**Description**
Throughout the codebase `require` statements are used when instead custom errors may be implemented with `if` condition checks.
**Recommendation**
Replace `require` statements with `if` statements and custom error reverts to save gas.
**Resolution**
Key Tea... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | false | false | ## Medium: Uninitialized or Incorrectly set auctionInterval may lead to liquidation engine livelock
### Description
## Handle
0xRajeev
## Vulnerability details
## Impact
The grab() function in Cauldron is used by the Witch or other liquidation engines to grab vaults that are under-collateralized. To prevent re-gr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Move storage parameters to constants
### Description
**Description**
Parameters multiplier and min_withdrawal are set once in the constructor and cannot be
changed. It is recommended to move them to public constants to reduce gas usage.
**Recommendation**:
Move public variables to constants. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ERC20ConvictionScore allows transfers to special TOTAL_GOVERNANCE_SCORE address
### Description
## Handle
cmichel
## Vulnerability details
## Vulnerability Details
The credit score of the special `address(type(uint160).max)` is supposed to represent the sum of the credit scores of all users that are gov... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Reward distribution can be skipped when executed within the vote window buffer of a new epoch
### Description
`DistributionManager::distribute` is validated to only be callable when voting is not active. This is achieved by calling `_validateCanDistribute()`; however, this fails to account for the `VOTE_WINDOW... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | signature | false | false | ## Medium: `TridentNFT.permit` should always check `recoveredAddress != 0`
### Description
_Submitted by cmichel, also found by pauliax_
The `TridentNFT.permit` function ignores the `recoveredAddress != 0` check if `isApprovedForAll[owner][recoveredAddress]` is true.
#### Impact
If a user accidentally set the zero 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 | gas | other | true | false | ## Gas: [G‑14] Use a more recent version of solidity
### Description
Use a solidity version of at least 0.8.4 to get custom errors, which are cheaper at deployment than `revert()/require()` strings
Use a solidity version of at least 0.8.10 to have external calls skip contract existence checks if the external call has... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bid submission vulnerable to market parameters changes
### Description
The details for the audit state:
> Market owners should NOT be able to race-condition attack borrowers or lenders by changing market settings while bids are being submitted or accepted (while tx are in mempool). Care has been taken 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 | other | false | false | ## Low: `OWPIdentity` token lacks a `name` and `symbol`
### Description
**Description:** While `name` and `symbol` are not mandatory in the ERC-1155 specification, they are often used to identify the token; however, the [`OWPIdentity`](https://github.com/OneWpOrg/audit-2024-10-oneworld/blob/416630e46ea6f0e9bd9bdd0aea6... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Owner is ignored during initialization
### Description
In `DyadXPv2` and `UniswapV3Staking` the `initialize` function has an `owner` argument; However, this argument is ignored during the ownable initialization, as the `msg.sender` is set as the owner instead:
This might result in the wrong owner being set 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 | medium | overflow | false | false | ## Medium: Safe math library isn't used
### Description
At the lines 101, 108, 116, 151, 154, 156, 377, 387, 396, 621, 627, 641, 664, 667, 672, 675, 691, 696, 697, 701, 705, 706, 710, 770, 772 , 776, 778, 796 in https://github.com/iearn-finance/yoracle.link/blob/faf1309cbe7a05f70b338351315039eb8e5b9c09/contracts/Keep3... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Missing input validation
### Description
**Update**
The client provided the following explanation:
> 1.1 _exchangeRate input is not checked and can be 0. This would simply mean the taker receives 0 tokens correct
>
>
> 1.2, 1.3 - Some additional user validation has been implemented.
>
>
> 1.4 - Acknowledg... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Low: Token IDs are protected only by SGX
### Description
Token IDs are intended to be confidential. However, they are operated on within an SGX enclave. This is an apparent departure from MobileCoin’s previous approach of using SGX as an additional security mechanism, not a primary one.
Previously, most confidential... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | token | true | false | ## Security Report
## Severity
**High Risk**
## Context
`PoolCommitter.sol#L299-L306`
## Description
When minting pool tokens in `commit()`, the `fromAggregateBalance` parameter indicates if the user wants to pay from their internal balances or by transferring the tokens. The second `if` condition is wrong and leads... | Spearbit | 5 | Tracer |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: solverMetaTryCatch() should not have reverting external calls
### Description
In both the `_getBidAmount()` and `_executeSolverOperation()` functions, a call to `solverMetaTryCatch()` in the ExecutionEnvironment is made. In both cases, this call may revert, and the error message of this revert has important 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 | low | storage | true | false | ## Low: [26] Inconsistency with EIP1967
### Description
https://github.com/code-423n4/2024-08-axelar-network/blob/69c4f2c3fcefb1b8eb2129af9c3685a44ae5b6fe/axelar-gmp-sdk-solidity/contracts/upgradable/BaseProxy.sol#L14-L17
This is one of the instances where the owner is being stored, according to EIP1967. However, it... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | medium | token | true | true | ## Medium: Some `TroveManager` debt emission rewards can be lost
### Description
`TroveManager` can earn token emission rewards from `BabelVault` if users vote for it to do so, and these rewards are distributed to users based either on debts or mints.
When creating a unit test scenario with all emissions going to `Tr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No setter for the `isSource` flag
### Description
The `isSource` parameter is used to check and prevent the Beekeeper contract from being instantiated on the same chain as the Den contract.
Unfortunately, there is no setter for the `isSource`, so it can only be false. Consider specifying `isSource` as an imm... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.