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 | other | false | false | ## Low: [06] Critical Changes Should Use Two-step Procedure
### Description
The critical procedures should be two step process.
See similar findings in previous Code4rena contests for reference:
https://code4rena.com/reports/2022-06-illuminate/#2-critical-changes-should-use-two-step-procedure
### Recommended Mitigat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No checks of the result of `AMM.withdraw`
### Description
After `withdraw` there is no check that this method did not return any amount.
https://github.com/curvefi/curve-stablecoin/blob/0d9265cc2dbd221b0f27f880fac1c590e1f12d28/contracts/Controller.vy#L770
There will be either emptiness or dust, but it is wor... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Browser extension crashes when data to be signed does not follow EIP-712 standard
### Description
The Uniswap wallet browser extension crashes when a data message for the user to sign using the `eth_signTypedData_v4` method does not follow the EIP-712 format.
First, the browser extension crashes (Figure 5.1)... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | flash-loan | true | false | ## High: Can Recover Gobblers Burnt In Legendary Mint
### Description
[ArtGobblers.sol#L432](https://github.com/code-423n4/2022-09-artgobblers/blob/d2087c5a8a6a4f1b9784520e7fe75afa3a9cbdbe/src/ArtGobblers.sol#L432)
[ArtGobblers.sol#L890](https://github.com/code-423n4/2022-09-artgobblers/blob/d2087c5a8a6a4f1b9784520e7f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | access-control | false | false | ## Gas: Don't compare boolean expressions to boolean literals (3 instances)
### Description
* Deployment. Gas Saved: **3 006**
* Minumal Method Call. Gas Saved: **43**
* Average Method Call. Gas Saved: **-477**
* Maximum Method Call. Gas Saved: **55**
### src/ERC20/ERC20PermitPermissionedMint.sol:[46](https://... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | false | false | ## Low: `BorrowingFeePaid` event should include token that was repaid
### Description
**Description:** `BorrowingFeePaid` event should include collateral token that was repaid:
Then emit the event with the collateral being repaid to easily track via events which collateral tokens were used in repayments.
**Bima:**
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | overflow | true | false | ## Medium: SingleSidedLiquidityVault._accumulateInternalRewards will revert with underflow error if rewardToken.lastRewardTime is bigger than current time
### Description
SingleSidedLiquidityVault._accumulateInternalRewards will revert with underflow error if rewardToken.lastRewardTime is bigger than current time
###... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redundant Contract Copies in the Repository.
### Description
**Severity**: Informational
**Status**: Resolved
**description**
A recent review of the fixed contracts found that multiple copies of the same contract were
left in the repository. This may confuse determining the current, active version of any 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 | high | initialization | true | false | ## High: ReseedBarn.sol doesn't initialize of `s.sys.fert.recapitalized`
### Description
After migration to L2 Fertilizer module will incorrectly calculate amount of debt to repay because during migration it doesn't initialize variable which tracks amount of recapitalized debt.
As a result, it has several consequense... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 IBC Rate-Limitting Implementation
### Description
Rate limits are safety controls that disable certain functionality of a system when a pre-defined threshold is surpassed. In this context, we categorize rate limit mechanisms that don’t require external trigger invocation, as the tripping conditions are... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | false | false | ## Gas: 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 more o... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Improper use of Haskell type system to enforce type correctness in the stack
### Description
The use of type synonyms and forced coercion is error-prone and can give a false sense of security, leading to issues that are very difficult to detect. The codebase uses type synonyms, but these do not enforce a stron... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 can be improved for better code comprehension and UX
### Description
Some aspects of Natspec are either incomplete or incorrect, which reduces code comprehension. Some illustrative examples are noted below:
1. **Incorrect:** "when intent solving is made public"
**Corrected:** "when a batch of fulf... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The previous milestone stem should be scaled for use with the new gauge point system which uses untruncated values moving forward
### Description
**Description:** Within the Beanstalk Silo, the milestone stem for a given token is the cumulative amount of grown stalk per BDV for this token at the last `stalkEa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | reentrancy | true | false | ## Medium: cancelDepositRequest() always reverts due to modifying FenwickTree with wrong index
### Description
In `DepositQueue:cancelDepositRequest()` , the code uses the latest `price` checkpoint instead of `index` when attempting to remove a user’s pending deposit from the Fenwick tree.
Because the timestamp-base... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## Low: Receipt tokens are not burned when a user withdraws all tokens
### Description
Because blacklisted users do not receive receipt tokens for their deposits, the contract checks whether a user is included on the blacklist when executing withdrawals, before attempting to burn the appropriate number of receipt toke... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | input-validation | true | false | ## Medium: Anyone can sell anyone else's market seat
### Description
In the `sell_market_seat` function the `check_signer` parameter is incorrectly set to false, allowing any user to force-sell another user's market seat without proper authorization.
```rust
let mut client_state = ClientPrimaryState::new_for_perp(
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | reentrancy | false | false | ## Low: exitedTimestamp set prematurely
### Description
## Handle
0xRajeev
## Vulnerability details
## Impact
The exitedTimestamp flag is used to prevent front-running of user exiting and re-entering in the same block. The setting of this flag in exit() should really be inside the conditionals and triggered only ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of Zero Checks for Amounts
### Description
The contract lacks validation checks for zero amounts in its functions. Failing to verify that amounts are non-zero can lead to unintended behavior, such as unnecessary transactions or logic execution. Implementing zero checks ensures that only meaningful and val... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Command execution could fail
### Description
The `CommandType` enum was modified with the removal of the `PropagateCashflow` element, which was previously assigned to the value `4`. The change will cause the value of `TransferBetweenMarginAccounts` to be changed from `5` to `4`.
That could cause issues for 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 | other | false | false | ## Low: Potential Gas Saving Optimisation in Memutils.memcpy
### Description
The `Memutils.memcpy()` function uses a gas-expensive `EXP` operation, which can be easily replaced by using the much cheaper `SHL`.
The current `memcpy` implementation has the following line:
```
let mask := sub ( exp (256 , sub (32 , _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 | high | token | true | true | ## High: RewardsManager doesn't delete old bucket snapshot info on unstaking
### Description
RewardsManager's unstake() use `delete stakes[tokenId_]` to clear old stake state, but `snapshot` is the nested mapping in the `StakeInfo` structure and will not be reset this way as delete operation do not traverse through ne... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Single-step ownership transfer can be dangerous
### Description
**Likelihood:**
Low, because it requires an error on the admin side
**Impact:**
High, because protocol will be bricked
**Description**
Single-step ownership transfer means that if a wrong address was passed when transferring ownership or 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... | skyward_49k | high | cross-chain | true | false | ## High: Malicious Deposit with Dust-Sensitive `minAmount` Can Cause Denial of Service on `batchRelease()` Function
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `b7c7f7e589e706a63e0378b4bd0ae6a8d2fef6e2`.
**File(s) affected:**`CampTimelockEscrowNativeOFT.sol`
**Description:** The `batchR... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: Incorrect extraFeeAsset0 fee accounting
### Description
Severity: High Risk
Context: UserOrderBuffer.sol#L189-L205
Description: The application of extraFeeAsset0 is inconsistent depending on the direction & specification
of the swap:
• zeroForOne :
– Exact input: extraFeeAsset0 is subtracted from quantityIn , ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Loss of vested amounts
### Description
_Submitted by eierina, also found by 0x52, 0xA5DF, 0xdapper, ElKu, obront, pauliax, pcarranzav, pedroais, rbserver, Ruhum, RustyRabbit, and TomJ_
[VTVLVesting.sol#L418](https://github.com/code-423n4/2022-09-vtvl/blob/f68b7f3e61dad0d873b5b5a1e8126b839afeab5f/contracts/VT... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wasted gas on copying a struct
### Description
https://github.com/code-423n4/2022-07-golom/blob/7bbb55fca61e6bae29e57133c1e45806cbb17aa4/contracts/vote-escrow/VoteEscrowCore.sol#840
`locked_balance` is of same type and never used after this. Same thing with `point`;
There is no need in copy of it, but gas 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 | gas | other | false | false | ## Gas: Using `calldata` instead of `memory` for read-only arguments in `external` functions saves gas
### Description
When a function with a `memory` array is called externally, the `abi.decode()` step has to use a for-loop to copy each index of the `calldata` to the `memory` index. **Each iteration of this for-loop ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: MISSING NATSPEC DOCUMENTATION ON THE FUNCTIONS
### Description
Some functions are missing @param for some of their parameters. Given that NatSpec is an important part of code documentation, this affects code comprehension, auditability, and usability.
Code Location
-------------
[MoonwellApolloGovernor.sol#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 | high | dos | true | false | ## High: Paused state can’t be set and therefore withdrawQuote() can’t be executed
### Description
The `checkInvariants()` function of the InvariantCheck contract is called via the modifiers `checkInvariantsBeforeFunction()` and `checkInvariantsAfterFunction()` of both LeveragedPool and PoolCommitter contracts. It is ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Typos in comments
### Description
The default order numerator + denominator values are _always_ 1 and 1, so this `e.g.` in [`ConsiderationDecoder.sol`](https://github.com/horsefacts/seaport/blob/5de7302bc773d9821ba4759e47fc981680911ea0/contracts/lib/ConsiderationDecoder.sol#L351-L353) should be an `i.e.`: | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | false | false | ## Medium: Role, permission, strategy, and guard management or config errors may prevent creating/approving/queuing/executing actions
### Description
LlamaCore deployment from the factory will only succeed if one of the roles is the `BOOTSTRAP_ROLE`. As the comments note:
```
// There must be at least one role holder... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [31] `validateUpgradeTransaction` does return as valid non-upgrade transactions
### Description
Priority transactions has a type-value of `255` and upgrades `254`, as seen in [bootloader, lines 572 to 591](https://github.com/code-423n4/2023-10-zksync/blob/1fb4649b612fac7b4ee613df6f6b7d921ddd6b0d/code/system-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 | access-control | true | false | ## Low: Potential incomplete role revocation in `revokeRole()` function
### Description
_Resolved_
The `revokeRole` function is intended to revoke a specific role from a given address. Thus, it is expected to work completely.
**However, its implementation does not guarantee that the role is fully revoked.**
Sinc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redundant if statement
### Description
**Severity**: Informational
**Status**: Resolved
TradingCallbacks.sol - In function executeLimitCloseOrderCallback(), the condition v.reward > 0 is already being checked in the outer if-statement line 380.
**Recommendation**
No need to have the if-statement at line 3... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | rounding | true | false | ## Medium: Attacker will prevent distribution of USDC to stakers through frequent reward updates
### Description
USDC's lower precision of 6 decimals and frequent reward updates will cause stakers to receive 0 of the allotted [10K USDC weekly rewards](https://gov.kwenta.eth.limo/kips/kip-127#specification).
> distrib... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | reentrancy | false | false | ## Low: Prefer battle-tested code over reimplementing common patterns
### Description
Replace the `locked` modifier in `ArbitrumSwaps` with the `nonReentrant` from OpenZeppelin, since it is well tested and optimized. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Supply Chain Attack Prevention
### Description
## Application Security Advisory
The application is not protected against supply-chain attacks, meaning that if a dependency library gets compromised it can also compromise the fuse wallet application.
## Remediation
Consider pinning the Swift TweetNacl depende... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `plxTAO` Can Be Minted without Being Backed by `wTAO`
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `e052a726c9bf9557bdc2ccc658ffee53a491bc96`. The client provided the following explanation:
> Removed mint function.
Minting `plxTAO` is now only possible in the `wrap()` function, 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 | storage | true | false | ## Medium: Some arbitrary proposal calls will fail because `executeProposal()` in `ProposalExecutionEngine` is not payable
### Description
The `executeProposal()` function in `ProposalExecutionEngine.sol` is used to execute different types of proposal call. One of this type is `ArbitraryCallsProposal` and this type sh... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | false | false | ## High: Forced Repayment Is Possible with Currencies that Are Not Supported by the Platform
### Description
**Update**
The liquidation logic validates that the collateral currency passed as argument is a collateral currency registered in `TokenVault`. Addressed in: `337113529e81f2f41ea2dcfbb73402b58efed5f0`.
**File(... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 check may allow re-initialization of pairs
### Description
`LSSVMPair.initialize()` checks if it is already initialized using `require(owner() == address(0), "Initialized");`. However, without a zero-address check on `_owner`, this can be true even later if the pair is initialized accident... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `FeeSplit` Calculation Might Truncate to Zero
### Description
GmxFactory's `createIncreasePositions()` & `createDecreasePositions()` functions calculate the `feeSplit` as:
```solidity
feeSplit = (args.amountInLong * 10000) / amount;
```
Since `amount` value is `args.amountInLong + args.amountInShort`, there'... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The creation of an intermediary array can be avoided
### Description
Sometimes, it's not necessary to create an intermediate array to store values.
*1 instance*
- [SecurityCouncilMgmtUtils.sol#L15-L36](https://github.com/arbitrumfoundation/governance/blob/c18de53820c505fc459f766c1b224810eaeaabc5/src/securit... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ````UniswapImplementation.beforeSwap()```` is vulnerable to price manipulation attack
### Description
In ````UniswapImplementation.beforeSwap()````, when there is undistributed fee of ````collectionToken```` and users try to swap ````WETH -> collectionToken````, these pending fee of ````collectionToken```` ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Enforce all preconditions
### Description
`processBuy` function in [line 126](https://github.com/erkmos/moeda/blob/b2bf23119d563e251b6f16b29b642bac43e76a64/contracts/Crowdsale.sol#L126) has a precondition written in the comments which is not enforced in the code: it’s only usable while the crowdsale is active.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | oracle | true | false | ## Gas: Splitting require() statements that use && saves gas - (saves 8 gas per &&)
### Description
Instead of using the && operator in a single require statement to check multiple conditions,using multiple require statements with 1 condition per require statement will save 8 GAS per `&&`.
The gas difference would onl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Changing minter before `updatePeriod()` causes missed rewards
### Description
_Acknowledged_
The `Voter.setMinter()` function allows an authorized role to update the `minter` address. This minter is responsible for calling `notifyRewardAmount()` to emit rewards for each period.
However, if the `minter` 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 | low | front-running | true | false | ## Low: Frontrunning suggestMinter may lead to stolen funds
### Description
`Frankencoin::suggestMinter` does not validate `_applicationPeriod` and `_applicationFee` when `totalSupply()` is `0`
This can be useful for the admins to create the first minter.
Nevertheless the function can be called by anyone until 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 | medium | liquidation | true | false | ## Medium: Liquidator can set up referrals for other users
### Description
If a user has met the liquidation criteria and currently has no referrer
then a malicious liquidator can specify a referrer in the liquidation order.
making it impossible for subsequent users to set up the referrer they want.
### Impact
If a 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 | medium | other | true | false | ## Medium: Vester template misconfiguration can potentially block token claims
### Description
**Description:** The `WorldLibertyFinancialVester` contract can make user tokens temporarily inaccessible when template `capPerUser` values don't sum to the user's total allocation.
Users transfer their full allocation to 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 | front-running | true | false | ## High: Illuminate's PT doesn't respect users' slippage specifications
### Description
Illuminate's PT doesn't respect users' slippage specifications, and allows more slippage than is requested
### Impact
_Direct theft of any user funds, whether at-rest or in-motion, other than unclaimed yield_
_Miner-extractable va... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Stop loss primer cannot be deactivated
### Description
The stop loss primer cannot be deactivated because the keeper contract uses the incorrect function to check whether or not the meta pool has become healthy again. The stop loss primer is activated if the meta pool that is being used for yield becomes un... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Storage Collision | false | true |
<https://github.com/code-423n4/2023-12-autonolas/blob/main/lockbox-solana/solidity/liquidity_lockbox.sol#L54> <br><https://github.com/code-423n4/2023-12-autonolas/blob/main/lockbox-solana/solidity/liquidity_lockbox.sol#L181-L184>
The `liquidity_lockbox` contract in the `lockbox-solana` project is vulnerable to perman... | Code4rena | 4 | Olas |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [03] Spelling errors
### Description
There are numerous instances throughout the codebase in different contracts. Here's just one of the specific instances:
https://github.com/nounsDAO/nouns-monorepo/blob/718211e063d511eeda1084710f6a682955e80dcb/packages/nouns-contracts/contracts/governance/NounsDAOLogicV2.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inefficiency Due to Linear Searches in View Functions
### Description
This issue has been identified within several view or pure functions across multiple contracts and libraries, including:
* `_isVoterAllowed`, `_getConfirmedCount`, `_isMethodAllowed` in **LibSafeMinimalMultisig**;
* `_getAddressIndex`, `_get... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: redeem Lacks Slippage Protection
### Description
The `redeem` function in `Escrow.sol` contains the logic to determine the [amount of GRT rewards](https://github.com/semiotic-ai/timeline-aggregation-protocol-contracts/blob/d8795c747d44da90f7717b3db9a08698e64a9b2f/src/Escrow.sol#L380-L384) an Indexer will 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 | low | overflow | true | false | ## Low: Unnecessary Safe Math is being utilized
### Description
**Severity**: Informational
**Status**: Resolved
**Location**: Vesting.sol, TokenSale.sol, Admin.sol
**Description**
The default safe math operation in solidity versions ^0.8.x incurs extra gas overhead due to it requiring more computation. The follow... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use consistent naming
### Description
## Inconsistent Naming of Accounts
Accounts are often inconsistently named across context and struct definitions, which produces less readable code. For example, the `JuicedState` struct has a field named `usdc_vault_key`, which holds the sweeper vault’s public key. In 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 | low | liquidation | false | false | ## Low: setLiquidationQueue() and _setInitialComponents() could contain duplicate components
### Description
In the function `setLiquidationQueue()`, `newQueue` could contain duplicate components. This doesn't seem to hurt in the current code. However, it might be an issue in future versions of routers. In the functio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Confusing revert statement
### Description
The modifier checkDeadline is used on both of the core functions `mint` and `burn`, the main use of the modifier is to check if the block.timestamp crossed the deadline, so the function can revert. A confusing revert name is used in the modifier, users which got the e... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | true | false | ## High: Unupdated totalBorrow After BigBang Liquidation
### Description
During the liquidation process, BigBang only reduces the user's `userBorrowPart[user]`, but fails to update the global `totalBorrow`. Consequently, all subsequent debt calculations are incorrect.
### Impact
The lack of an update to `totalBorrow`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Collecting management fees in setFeeConfig() can be exploited to dilute the shares of existing depositors
### Description
**Severity**: Medium
**Status**: Resolved
**Description**:
The admin can call the setFeeConfig() multiple times(even change it to max fees cap of 100%) and just keep accruing fees ev... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | true | false | ## High: Morpho's logic to handle LTV = 0 AToken diverges from the Aave logic and could decrease the user's HF/borrowing power compared to what the same user would have on Aave
### Description
The current implementation of Morpho has a specific logic to handle the scenario where Aave sets the asset's LTV to zero. 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 | high | front-running | false | false | ## High: | Incorrect Fee Structure
### Description
**Description**
The `fees` variable is incremented whenever `_redeemEth` or `_redeemWstEth` is called. However, the `withdrawFees` function treats `fees` as if it were entirely in Ether. Therefore, when `fees` is incremented in the `_redeemWstEth` function it is wron... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Usage of unchecked can reduce the gas cost at claim function at HolyPaladinToken.sol
### Description
### Target codebase
[HolyPaladinToken.sol#L392](https://github.com/code-423n4/2022-03-paladin/blob/9c26ec8556298fb1dc3cf71f471aadad3a5c74a0/contracts/HolyPaladinToken.sol#L392)
// Cannot claim more than ac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Test instructions remain in production
### Description
## Unit Test Instructions and Production Compilation
The `init_test` and `upd_test` instructions are intended to be used in unit tests. However, they are also compiled in production, which is unnecessary.
## Remediation
The `init_test` and `upd_test` fu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: Unnecessary Continuity Checks in Data Finalization Acknowledged
### Description
In function `finalizeBlocksWithProof` of the `LineaRollup` contract, the continuity check between `lastFinalizedShnarf` of the finalization data (`_finalizationData`) and current finalized shnarf `currentFinalizedShnarf` is redund... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 fixed Solidity version
### Description
**Description**
For now the contracts set uses the ^0.8.0 version of Solidity. Nevertheless it is recommended
to use the fixed version of Solidity (like 0.8.7 - the latest stable version), so there will be no
effect on the development in case of the update with missi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | input-validation | true | false | ## Medium: Vester template misconfiguration can potentially block token claims
### Description
The `WorldLibertyFinancialVester` contract can make user tokens temporarily inaccessible when template `capPerUser` values don't sum to the user's total allocation.
Users transfer their full allocation to the vester during ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: DOS pay function
### Description
_Submitted by egjlmn1_
in the `pay()` function users repay their debt and in line 364:
it decreases their debt.
lets say a user wants to repay all his debt, he calls the `pay()` function with his full debt.
an attacker can see it and frontrun to repay a single token for h... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | signature | true | true |
<https://github.com/rabbitholegg/quest-protocol/blob/8c4c1f71221570b14a0479c216583342bd652d8d/contracts/QuestFactory.sol#L219-L229>
The `QuestFactory.mintReceipt` function mints `RabbitHoleReceipt` tokens based upon signatures signed by `claimSignerAddress`.
```solidity
function mintReceipt(string memory questId... | Code4rena | 5 | RabbitHole |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | Oracle | false | true | _Submitted by BowTiedWardens, also found by gzeon, and hyh_
Issue: Arbitrary oracles are permitted on construction of loans, and there is no check that the lender agrees to the used oracle.
Consequences: A borrower who requests a loan with a malicious oracle can avoid legitimate liquidation.
### Proof of Concept
* ... | Code4rena | 3 | Abracadabra Money |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `DepositInfo` and `PaymasterData` structs can be rearranged
### Description
Gas saving can be achieved by updating the ``DepositInfo`` struct as below.
Gas saving can be achieved by updating the ``PaymasterData`` struct as below. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: System Is Very Fragile if Not Properly Maintained by Owner
### Description
**Update**
Addressed in: `86dc611b71111c038fbf0f1c30ed15f6d2fd2a17`.
All but one of the suggested code changes have been implemented. However, QSP-7.4 remains unimplemented, as `_lastPerformTimestamp` is still set by directly acces... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: version.DenebPlus usage inconsistency
### Description
In general, there are a few different instances of using the `version.DenebPlus` fork version. However, there is some inconsistency with treating that fork - places lacking version checks, panicking in one spot while erroring in another, etc.
A specific 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 | high | other | false | false | ## High: Resources Can Be Overwritten
### Description
The `deploy_contract` function [registers the system](https://github.com/dojoengine/dojo/blob/e1a349b2c4b1a836156e769a46f8fe3c87ae553f/crates/dojo-core/src/world/world_contract.cairo#L644-L646) under a selector chosen by the contract. This means that an attacker 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 | low | access-control | false | false | ## Low: Missing sanity value checks in `initPool()` of Core
### Description
**Severity**: Low
**Status**: Acknowledged
**Description**
There is missing sanity value checks for config parameter in `initPool()`. It is advised to add appropriate require checks such as zero value check for `optimalUtilizationRatio`, e... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | token | false | false | ## High: Wallet
### Description
All user funds enter and exit through Futureswap’s [`Wallet` contract](https://github.com/futureswap/fs_core/blob/96255fc4a550a5f34681c117b5969b848d07b3a3/contracts/wallet/Wallet.sol). The Futureswap exchanges work only with ERC20 tokens that have 18 decimals. Futureswap can support tok... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | true | false | ## Medium: When transferring tokens native on SKALE to Ethereum with `TokenManagerERC20.exitToMainERC20()`, the tokens on the schain will be frozen on `TokenManagerERC20`, but they will not receive tokens on Ethereum
### Description
_Submitted by WatchPug_
In the current implementation of `TokenManagerERC20`, it allo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Global reward pool design creates race condition
### Description
_Acknowledged_
`NodeKeyPool` uses a single global `lastClaimTimestamp` and distributes all accumulated rewards to the first user who calls `burnAndClaim()`. This creates a winner-takes-all race condition where:
- Rewards accumulate globally ove... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | false | false | ## Low: DOSing _replaceStaleOrder() due to reverting on token transfer
### Description
In the case of tokens with implemented hooks, a malicious order owner can revert on the token received event, thus causing a denial-of-service via `_replaceStaleOrder()`. The probability of such an attack is very low, as the order q... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | rounding | true | false | ## Gas: Use `type(uint256).max` when withdrawing from Aave
### Description
**Description:** When unwinding Aave positions in `Bet::resolve` and `cancel`, the contract withdraws using the current aToken balance as the `amount` parameter:
Aave’s [recommended pattern](https://aave.com/docs/aave-v3/smart-contracts/pool?... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | false | false | ## Low: Suggestion: Overflow hardening using checked arithmetic
### Description
There are some multiplications and additions that are not checked for overflow. It would be better to use checked arithmetic to detect overflows in these cases. For now, this is purely informational. If any of these can be found to be explo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Usage of Returned Balance Delta
### Description
In the `_handlePlaceCallback` [function](https://github.com/OpenZeppelin/uniswap-hooks/blob/087974776fb7285ec844ca090eab860bd8430a11/src/general/LimitOrderHook.sol#L425) of the `LimitOrderHook` contract, the contract [uses](https://github.com/OpenZep... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## High: Out-of-Bounds Array Access in `_calculateQuantAMMVariance` with Odd Number of Assets and Vector Lambda
### Description
The `_calculateQuantAMMVariance` function in the `QuantAMMVarianceBasedRule` contract contains a critical vulnerability that leads to an out-of-bounds array access error when the following 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 | access-control | true | false | ## Low: NEW ADMIN NOT VALIDATED
### Description
The `SetAdmin` instruction in the `ngl-bridge` and `ngl-core` programs allows the deployer to set a new config admin once the config is initialized, provided as a parameter. This new admin will hold critical privileges for managing the config account. However, the provid... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unrestricted Receive Function - Phase 3
### Description
The `Bridge` contract implements a [`receive` function](https://github.com/taikoxyz/taiko-mono/blob/dd8725f8d27f835102fa3c5a013003090268357d/packages/protocol/contracts/bridge/Bridge.sol#L109) that allows anyone to send ETH to the contract. This might be ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: TRST-L-1 createHat does not detect MAX_LEVEL admin correctly
### Description
**Description:**
In `createHat()`, the contract checks user is not minting hats for the lowest hat tier:
The issue is that it does not check for max level correctly, as it looks only at the lowest 8 bits.
Each level is composed 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 | false | false | ## Low: Atypical contract structure affects maintainability and readability
### Description
## Handle
0xRajeev
## Vulnerability details
## Impact
A typical/recommended contract structure has the variable declarations followed by events instead of the other way around. This affects readability/maintainability and ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: `AngstromL2::_computeAndCollectProtocolSwapFee` computation can be simplified
### Description
`AngstromL2::_computeAndCollectProtocolSwapFee` currently performs the following computation:
```solidity
uint256 fee = exactIn
? absTargetAmount * protocolFeeE6 / FACTOR_E6
@> : absTargetAmount * FA... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Borrow rate calculation can cause VToken.accrueInterest() to revert, DoSing all major functionality
### Description
Borrow rates are calculated dynamically and `VToken.accrueInterest()` [reverts](https://github.com/code-423n4/2023-05-venus/blob/main/contracts/VToken.sol#L695-L696) if the calculated rate 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 | liquidation | false | false | ##### Description
At line: https://github.com/orbxball/yfi-maker/blob/63af6fcfa536073f00d652f49befd18e429b5500/contracts/Strategy.sol#L264-L277
the `liquidatePosition()` function does not take into account the value of the`_loss` variable accounting in `prepareReturn()` function. In this case the `liquidatePosition()` ... | MixBytes | 5 | Yearn Finance |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improper Convergence Checks
### Description
## Geometric Mean Calculations
In `geometric_mean_calculations.move`, the following functions are defined: `calc_swap_fixed_in`, `calc_swap_fixed_out`, `calc_withdraw_fixed_amounts`, and `calc_deposit_fixed_amounts`. The convergence between `prev_t` and `t` is 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... | cyfrin_structured | low | integer-overflow | true | true | ## Low: `UpdateWeightRunner::performUpdate` reverts on underflow when new multiplier is zero
### Description
In [`UpdateWeightRunner::_calculateMultiplerAndSetWeights`](https://github.com/QuantAMMProtocol/QuantAMM-V1/blob/7213401491f6a8fd1fcc1cf4763b15b5da355f1c/pkg/pool-quantamm/contracts/UpdateWeightRunner.sol#L433-... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Interest rate is updated before updating the debt when repaying debt
### Description
Interest rate is updated before updating the debt when repaying debt in `BorrowLogic@executeRepay` leading to an incorrect total debt being used when calculating the new interest rates and causing suppliers to keep accruing 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: Value increments arent distributed evenly in vesting period
### Description
During the vesting period, changes to the agreement are possible. In the event of an increase in the vesting value, distribution will only occur after the end of the vesting schedule. The `_vestingSchedule()` function does not consider... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Observation update interpretation.
### Description
**Description**
PeriodicAccumulation Oracle.sol: performUpdate().
updated Observation variable can be set to true only with the price updated, but without liquidity updated. The logic allows to have only price updated within the observation (line 101 - setti... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | rounding | true | false | ## Risk Assessment
**Severity:** Medium Risk
**Context:** PoolKeeper.sol#L251-L259
## Description
The keeper reward is calculated as
```
(keeperGas * tipPercent / 100) / 1e18
```
The division by `1e18` is incorrect and undervalues the reward for the keeper. The tip part of the keeper reward is essentially igno... | 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 | high | logic | false | false | ## High: In the case of Single Asset Entry, new liquidity providers will suffer fund loss due to wrong formula of ΔRo
### Description
_Submitted by WatchPug_
### Current Implementation
#### When `baseToken` rebase up
Per the document:
and related code:
`Gamma` is the ratio of shares received by the new liquidit... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.