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 | gas | token | true | false | ## Gas: At `toColl()` and `toAsset()` use the mapping to check if asset exists
### Description
Savings: ~2.1K per call
Notice this is a function that's being called frequently, and many times per tx.
**Overall this can save a few thousands of gas units per tx for the most common txs (e.g. issuance, redemption)**
ht... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Redundant zero check for unsigned integer in `setDailyWithdrawalThreshold`
### Description
The `setDailyWithdrawalThreshold()` functions in both `DIAExternalStaking` and `DIAStakingCommons` contain a redundant check `if (newThreshold
### Recommendation
We recommend replacing the misleading condition with expl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use `msg.sender` when calling `safeTransfer` in `RequestsManager::cancelMint, cancelBurn`
### Description
**Description:** `RequestsManager::cancelMint` first enforces that `request.provider == msg.sender`:
Hence it can directly use `msg.sender` instead of `request.provider` to save 1 storage read when calli... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Transferring any amount of the underlying token to the CNote contract will make the contract functions unusable
### Description
_Submitted by Tutturu, also found by 0x52, hyh, p4st13r4, and WatchPug_
The contract expects the balance of the underlying token to == 0 at all points when calling the contract func... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Old Solidity version
### Description
**Description**
Contracts are using Solidity 0.5.16 version. It is recommended to use the actual version which
is 0.8.9.
**Recommendation**:
Update contracts’ version. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Multiplication over�low in compute_mem_kb
### Description
The `compute_mem_kb` function is used by `UntrustedAllocation::new` to determine the size of a memory allocation. A multiplication in `compute_mem_kb` can overflow. In a debug build, this causes a panic. In a release build, this could cause the allocati... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Representation of Native Currency Can Be Used to Drain Native Currency Pools
### Description
The [`settle`](https://github.com/Uniswap/v4-core/blob/d5d4957b35750e8cf1f3db5584e77eef4861c21e/src/PoolManager.sol#L282-L293) function, responsible for settling a user's debt, increases the account delta of the speci... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | true | false | ## Low: Lack of verification for bridging cost
### Description
The `executeDirectBridging` function is used for withdrawals and relies on `msg.value` expecting the withdrawer to cover the bridging cost. However, there is no verification on this amount. If the provided amount is lower than needed, the transaction 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... | solodit_api | medium | Reentrancy | true | false | Source: https://github.com/sherlock-audit/2022-11-buffer-judging/issues/112
## Found by
cccz
## Summary
When tokenX is an ERC777 token, users can use callbacks to provide liquidity exceeding maxLiquidity
## Vulnerability Detail
In BufferBinaryPool._provide, when tokenX is an ERC777 token, the tokensToSend function ... | Sherlock | 3 | Buffer 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 | high | reentrancy | false | false | ## High: Withdrawers can get more value returned than expected with reentrant call
### Description
_Submitted by camden, also found by cmichel and harleythedog_
The impact of this is that users can get significantly more UST withdrawn than they would be alotted if they had done non-reentrant withdraw calls.
#### Pro... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | signature | true | false | ## High: Invalid signatures from Deposit event can halt chain
### Description
During state transition, the state transition function will error out when any Deposit fails signature verification. Anytime a deposit with an invalid signature is submitted, this will result in an honest proposer becoming unable to propose ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: When rolling over, user will lose his winnings from previous epoch
### Description
When `mintRollovers` is called, when the function mints shares for the new epoch for the user,
the amount of shares minted will be the same as the original assets he requested to rollover - **not including the amount he won.**
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Missing checks in `Kernel._deactivatePolicy`
### Description
_Submitted by enckrish_
There are no checks to ascertain that the policy being removed is registered in the `Kernel`. Trying to remove a non-registered results in the policy registered at 0th index of `activePolicies` being removed.
### Proof 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... | cyfrin_structured | low | access-control | true | false | ## Low: `GlobalConfigurationBranch::updateSettlementConfiguration` can be called for a non-existent `marketId`
### Description
`GlobalConfigurationBranch::updateSettlementConfiguration` doesn't validate if the `marketId` exists:
```solidity
function updateSettlementConfiguration(
uint128 marketId,
uint128 set... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: createPair() expects zero slippage
### Description
## Handle
sirhashalot
## Vulnerability details
## Impact
The LaunchEvent.sol `createPair()` function calls router.addLiquidity() with a amountADesired == amountAMin and amountBDesired == amountBMin. Because there is no allowance for slippage, if the ze... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `MuteBond.sol`: When `maxPayout` is lowered the contract can end up DOSed
### Description
The [`maxPayout`](https://github.com/code-423n4/2023-03-mute/blob/4d8b13add2907b17ac14627cfa04e0c3cc9a2bed/contracts/bonds/MuteBond.sol#L34) variable in the `MuteBond` contract specifies the amount of `MUTE` that is pa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unchecked possible zero address in Swap.sol
### Description
**Severity**: Low
**Status**: Resolved
**Description**
In contract Swap.sol, at line 933 in function setPriceFeed the setPriceFeed parameter can be zero and is not checked. This can lead to reverted transactions throughout the contract as the price... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | false | false | ## Medium: THE first AMM Staker may not receive according rewards because of poor checkpoints
### Description
_Submitted by 0xNineDec_
### Impact
The first staker within the `AmmGauge` may not get the rewards if the pool is not checkpointed right after he stakes and before he wants to claim the rewards.
### Proof ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unclear Variable Naming
### Description
**Update**
`minted0` and `minted1` have been replaced with `deposited0` and `deposited1`
Commit: `8b436ddf6297a062a3eb7c348413c239fe281336`
**File(s) affected:**`UniV3LimitedRangeAdapter.sol`
**Description:** Local variable naming in `UniV3LimitedRangeAdapter.mintToke... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Team members can't unstake the initial allocation forever.
### Description
**Severity:** High
**Description:** When users call `unstake()`, it calculates the vested amount using `_vestingCheck()`.
But it returns 0 for team members and they can't unstake forever.
Furthermore, in `stake()`, it just prevents ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: maxMint revert if pps oracle drops below 1.0
### Description
## Severity: Low Risk
**Context:** SuperVault.sol#L341-L344
**Description:** If `pps` drops below 1.0, the `maxMint` function will revert as we compute `uint256.max / pps` which will overflow.
**Recommendation:** `maxMint` can return `2^256 − 1` 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 | medium | storage | false | false | ## Medium: Unsafe transparent proxy pattern
### Description
[OpenZeppelin’s `AdminUpgradeabiltyProxy` contract](https://github.com/OpenZeppelin/openzeppelin-sdk/blob/v2.6.0/packages/lib/contracts/upgradeability/AdminUpgradeabilityProxy.sol) is used to implement the [unstructured storage proxy pattern](https://blog.ope... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Sensitive files are incorrectly assigned permissions and ownership
### Description
In various locations in the EthStaker codebase, a file is created, written with sensitive data, and then assigned permissions in the manner shown in Figure 3.1. There are two problems with the current approach:
1. It allows an... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | cross-chain | true | false | ## High: Bridge Token Would Be Locked and Cannot Bridge to Native Token ✓ Fixed
### Description
If the bridge token B of a native token A is already deployed and `confirmDeployment` is called on the other layer and `setDeployed` sets A’s `nativeToBridgedToken` value to `DEPLOYED_STATUS`. The bridge token B cannot brid... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [02] Bias and slope can be made negative with huge deposits thus manipulating total voting power
### Description
Similar to the previous “Casting between types makes values negative for huge input values”, huge inputs can allow for attacks on the protocol, if only in a testing environment.
In `VotingEscrow.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Cds amounts to reduce from each chain are incorrect and will lead to the inability to withdraw cds in one of the chains
### Description
The cds amount to reduce on liquidations from each chain is given by the share of cds deposit, but then the liquidation amount by each cds depositor is given by the available... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 documentation for the case of using Upgradable to patch a vulnerability
### Description
**Description:**
Before deployment all code is kept in up\_stage\_code. If deployment is made for security issue then up\_stage\_code will contain fix for vulnerable code which could be seen by users to exploit cu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use of Unsafe Cast Operations Leading to Distorted Fees and PnL Values
### Description
**Update**
The Blex team fixed the issue in commit `bf17af0926004f29e042ab2fabee64f71bc12c4b` by implementing the recommended fix.
**File(s) affected:**`./contracts/position/PositionBook.sol`, `./contracts/fee/FundFee.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 | signature | false | false | ## Low: Lack of replay protection for previously executed tasks
### Description
The `runTask` and `sendTask` functions accept requests containing an array of tasks, identified by the `tasks` field, and execute the task indicated by the `index` field. The `taskEncryptedPrivateKey` is shared across all tasks in the arra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: State variables should include comments
### Description
Consider adding some comments on critical state variables to explain what they are supposed to do: this will help for future code reviews.
*There are 3 instances 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 | front-running | false | false | ## High: Exploiting Zero amountOutMin in DexWrappers for MEV Attacks
### Description
In the context of DeFi protocols, DexWrappers like `UniswapHandler` facilitate interactions with decentralized exchanges (DEXes) such as Uniswap by providing functions to swap tokens, add liquidity, and remove liquidity. Crucially, 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 | front-running | true | false | ## Low: ADD A TIMELOCK TO CRITICAL FUNCTIONS
### Description
It is a good practice to give time for users to react and adjust to critical changes. A timelock provides more guarantees and reduces the level of trust required; thus, decreasing risk for users. It also indicates that the project is legitimate (less risk 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 | medium | dos | true | false | ## Medium: Auction fails if the 'Honorarium Rate' is 0%
### Description
The Honorarium Rate is the required percentage of a winning Auction Pitch bid that the Steward makes to the Creator Circle at the beginning of each Stewardship Cycle.
`$$ Winning Bid * Honorarium Rate = Periodic Honorarium $$`
To mimic the dyna... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No slippage protection for Market functions
### Description
### Proof of Concept
Price for shares inside `Market` is calculated using bonding curve. Currently, `LinearBondingCurve` is supported. This bonging curve [increases each next shares with fixed amount](https://github.com/code-423n4/2023-11-canto/bl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | false | false | ## Medium: Decimals limitation limits the tokens that can be used
### Description
_Submitted by CertoraInc_
Decimals limitation limits the tokens that can be used.
### Proof of Concept
Let's give some name to the decimals of certain numbers:
n = decimals of numerator oracle.
d = decimals denominator oracle.
a = 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 | other | false | false | ## Low: Incorrect ReceiptType in catapult-rest
### Description
The ReceiptType defined in catapult-rest contains a duplicate value (Figure TOB-SYM-011.1) which is inconsistent with the ReceiptType defined in catapult-server (Figure TOB-SYM-011.2).
```javascript
const ReceiptType = {
1: 'receipts.balanceTransfer',
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Refund can round to zero and then revert
### Description
`LiquidityWindow.requestRefund` computes a gross USDC amount by scaling the 18-decimal price result down to 6 decimals. For very small STRX amounts, the scaled value can round down to zero. The function does not reject this locally when `minUsdcOut` is z... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: Token Intent State Change Impact
### Description
In the `createSrcOrder` and `rejectSrcOrder` functions of the `OrderBook` contract, the transfer logic uses `isIntentAsset` to determine whether token amounts should be adjusted using the intent token conversion rate. If the `isIntentAsset` state of a token chan... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Integrating protocols may be vulnerable to multiparty collusion attacks
### Description
Users and providers may be able to collude to extract value from systems integrating with the Entropy RNG protocol. The Pyth Entropy contract works via a two-party commitment-and-reveal protocol. The final generated value ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Some gas save in `getRewards()` function
### Description
Inside the loop of the `getRewards` call there is a call of the `getReward` function. This function has `update` modifier that updates state variables every time.
https://github.com/keep3r-network/StakingRewardsV3/blob/13ecc6966ae1a413f62224382bfd4d64b1a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Whale withdrawals can get the HEXStrategy contract into a DOS state
### Description
The `HEXStrategy` contract implements a FIFO withdrawal queue. Every time a user calls the `unstake()` function in the `HEXStakingPool` the `withdraw()` function is called in the `HEXStrategy` contract:

`bidShares` returned are incorrect leading to incorrect royalties.
##... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Burning a Position Notifies the Subscriber But Does Not Unsubscribe Them
### Description
The burn operation on a position triggers the `_modifyLiquidity` logic, which, if a subscriber is set, will [notify the subscriber](https://github.com/Uniswap/v4-periphery/blob/df47aa9ba521fc15ffd339dc773d32f5fc4c91fc/src/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: FEEONTRANSFER AND BURNONTRANSFER TOKENS ARE NOT SUPPORTED
### Description
Whenever a transfer of tokens is executed (in a `swap`, a `deposit`, or while `adding liquidity`), there's no check if the amount sent is equal to the amount actually received by the contract.
The `safeTransferFrom` function calls `tran... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unsafe casting in initialize() function of TokenDelegate.sol
### Description
Unsafe casting may lead to a loss of a significant portion of the initial supply of IPT tokens. Consider the code snippet below from `contracts/governance/token/TokenDelegate.sol`. If a value provided in the `initialSupply_` parameter... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | false | false | ## Medium: TwoWayLendingFactory price manipulation
### Description
- https://github.com/curvefi/curve-stablecoin/blob/c3f7040960627f023a2098232658c49e74400d03/contracts/price_oracles/CryptoFromPoolVault.vy#L65
- https://github.com/curvefi/curve-stablecoin/blob/c3f7040960627f023a2098232658c49e74400d03/contracts/price_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 | liquidation | false | false | ## Low: Manual Liquidity Control Could Delay USDe Redemptions
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> Internally team will maintain ~$200k worth of collateral available for hot redemptions. However team and our custodian does have liquidity 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 | high | other | true | false | ## High: Incorrect Netting Logic Leads to Excessive Withdrawal Amounts
### Description
A logical error in the netting calculation will cause incorrect withdrawal amounts as the protocol fails to subtract deposit amounts when netting pending transactions properly.
### Impact
The netting optimization exists to make the... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | true | false | ## Low: `whenNotPaused` modifier is redundant for `burn()` in `LensProfiles.sol`
### Description
In `LensProfiles.sol`, the `burn()` function has the `whenNotPaused` modifier:
[LensProfiles.sol#L93-L96](https://github.com/code-423n4/2023-07-lens/blob/main/contracts/base/LensProfiles.sol#L93-L96)
However, the modifi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Stablecoin Shorting
### Description
## Vulnerability Report
The vulnerability arises because the current checks in `open_position_short` are not sufficient to prevent a user from effectively shorting a stable coin. The `require_keys_neq!` macro ensures that the `custody_key` and `collateral_custody_key` ar... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Miscounted assets breaking system invariants
### Description
When processing queued deposits, the amount of assets that have been processed are [accounted for](https://github.com/pods-finance/yield-contracts/blob/9389ab46e9ecdd1ea1fd7228c9d9c6821c00f057/contracts/vaults/BaseVault.sol#L376) in the `processedDe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: If amountUnlocked in TimelockTokenPool is less than 1e18, rounding down occurs
### Description
[Link](https://github.com/code-423n4/2024-03-taiko/blob/f58384f44dbf4c6535264a472322322705133b11/packages/protocol/contracts/team/TimelockTokenPool.sol#L197)
If amountUnlocked is less than 1e18, round down occurs. 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 | gas | other | false | false | ## Gas: Don't use draft versions in production
### Description
Using draft versions is not recommended for productions. Additionally, the non draft version is already available | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent factory address usage in MarginalV1LBLiquidityReceiverDeployer
### Description
In the `MarginalV1LBLiquidityReceiverDeployer` contract, there's an inconsistency in how the factory address is obtained and used. The contract stores a `marginalV1Factory` address in its state, set during construction.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Victim's fund can be stolen due to rounding error and exchange rate manipulation
### Description
Victim's funds can be stolen by malicious users by exploiting the rounding error and through exchange rate manipulation.
### Impact
Loss of assets for the victim.
### Recommendation
Following are some of the mea... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Computation Of claimIntervalsPassed
### Description
Intervals since last claim period are incorrectly computed. Currently, the interval start time is divided by claim interval duration, and subtracted from current block timestamp:
```plaintext
return block.timestamp - (getClaimIntervalTimeStart() /... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Math could fail due to negative number in DVGToken.sol
### Description
**Description**
At function _moveDelegates, line 220 srcRepOld can be 0 or less than amount:
While line 221 expects srcRepOld to be >= amount:
**Recommendation**:
Depending on requirements, add ‘revert’ or ‘if’ to correctly handle p... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | overflow | true | false | ## Gas: Add `unchecked {}` for subtractions where the operands cannot underflow because of a previous `require()` or `if`-statement
### Description
`require(a `require(a <= b); unchecked { x = b - a }`
*There are 3 instances of this issue:*
https://github.com/debtdao/Line-of-Credit/blob/e8aa08b44f6132a5ed901f8daa23... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Validate rageQuitTimestamp in `PartyGovernanceNFT._initialize()`
### Description
https://github.com/code-423n4/2023-05-party/blob/main/contracts/party/PartyGovernanceNFT.sol#L101
`rageQuit()` is a valuable feature for Party members since it is a protective measure for them to be able to do an emergency withdr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Installed Execution Functions Can Collide with Native Functions
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> Acknowledged.
**File(s) affected:**`ExecutionInstallDelegate`
**Description:** The ERC-6900 standard currently clearly states 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: `StakedCitadelLocker.totalSupplyAtEpoch()`: Use a storage variable's reference instead of repeatedly fetching it (`epochs[i]`)
### 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... | skyward_49k | high | signature | false | false | ## High: Balances messed up
### Description
**Severity**: Critical
**Status**: Resolved
**Description**
CommunityRound.sol, method: reserve(_request, _message, v, r, s), balances of investors are being overwritten rather than adding up balances[sender_] = _request.amount;. Hence, funds of investors are misallocated... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unpause functionality controlled by the same role as pause may be risky
### Description
The `unpause()` function in the `ERC20PresetMinterPauser` contract is controlled by the same `PAUSER_ROLE` as `pause()`, which may be risky.
### Recommendation
Consider separating the roles for pause and unpause functional... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | timing | true | true | ## Low: Operations done right at the `closesAtTimestamp`
### Description
The protocol checks the time validity of all user facing methods through the following modifier:
```solidity
modifier timeTransitions(uint256 marketId) {
if (block.timestamp > markets[marketId].closesAtTimestamp && markets[marketId].state ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Suboptimal Contract Design for getDecimals
### Description
The `getDecimals` function, which retrieves the decimal configuration for a given asset, is currently implemented in the `LendingPoolConfigurator` contract. This design requires unnecessary contract interaction and complicates the retrieval process. Im... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Config param maxFundingRate name is misleading
### Description
The name `maxFundingRate` is misleading. Actually, funding rates are unbounded. A more meaningful name would be `maxFundingRateChange` or `maxFundingRateUpdate`.
### Recommendation
Rename the struct field to a more meaningful name. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | false | false | ## Low: Use `Ownable2StepUpgradeable` instead of `OwnableUpgradeable`, `Ownable2Step` instead of `Ownable`
### Description
`StratFeeManagerInitializable` and `BeefyVaultConcLiq` should use `Ownable2StepUpgradeable` instead of `OwnableUpgradeable`.
`StrategyFactory` should use `Ownable2Step` instead of `Ownable`.
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 | signature | false | false | ## Medium: Debt Entries Can Be Overwritten
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `f12aeacb9b0f6015270cfdf3ca1602217739bd6a`.
**File(s) affected:**`DebtLibrary.col`, `Fund.sol`, `MoneyAccountant.sol`
**Description:** Part of the execution flow of `Fund.forward()` involves calling `... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: BytesLib.concat can potentailly return results with dirty byte paddings.
### Description
The `concat` function does not clean the potential dirty bytes that might have been copied from `_postBytes` (nor does it clean the padding). The dirty bytes from `_postBytes` are carried over to the padding for `tempBy... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | storage | false | false | ## Medium: VULNERABLE THIRD PARTY DEPENDENCIES
### Description
The scoped repository uses multiple third-party dependencies. Using vulnerable third-party libraries can result in security vulnerabilities in the project that can be exploited by attackers. This can result in data breaches, theft of sensitive information,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Setting `Factory.bondPercentDiv` to zero cause Denial of Service in `Auction.bondForRebalance()`
### Description
_Submitted by pants_.
The function `Factory.setBondPercentDiv()` allows the owner to set the state variable `Factory.bondPercentDiv` to zero.
#### Impact
If `Factory.bondPercentDiv` equals zer... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | access-control | true | true | ## Medium: Multi-step migration process risks token loss due to front-running
### Description
The current implementation of the Universal Router allows for a multi-step migration process from V3 to V4 positions. This process, as demonstrated in the tests `test_v3PositionManager_burn` and `test_v4CLPositionmanager_Mint... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Setting allowances to 0 should be a valid operation
### Description
The `operatorApprove` method of `PxEth` currently reverts when the allowance amount is 0 which is a logical error - removing allowance (or setting it to 0) should be a valid operation. Remove the following line from `operatorApprove`: | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users can fully drain the `TrufVesting` contract
### Description
Due to flaw in the logic in `claimable` any arbitrary user can drain all the funds within the contract.
### Impact
Any user can drain the contract
### Recommendation
change the if check to the following
```solidity
if (startTime > block.tim... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: memory variable should created outside of loop
### Description
Memory variable should created outside of loop and get overridden with each iteration of loop. By doing so we save gas cost for memory variable creation in each iteration.
### Proof of Concept
**Instances:**
https://github.com/code-423n4/2024-0... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | access-control | true | true | ## Medium: Faulty permission check in `UpdateWeightRunner::getData` allows unauthorized access
### Description
Certain actions on a pool are protected by permissions. One such permission is `POOL_GET_DATA`, which governs access to the [`UpdateWeightRunner::getData`](https://github.com/QuantAMMProtocol/QuantAMM-V1/blob... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `_hasSetOperator` is not set to true
### Description
`BGTStationAdapter` contract uses `_hasSetOperator` mapping to track if `locker` already set operator for it. Its value is set to true in the `BGTStationAdapter#stake()` function. But it's not set to true in the `BGTStationAdapter#wildcard()` function. Consi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Re-implementing ECDSA signature recovery
### Description
The Marmo project includes an [implementation of the ECDSA signature recovery function](https://github.com/ripio/marmo-contracts/blob/d3fb5922a4f01e47d585343d08cccfad659b3584/contracts/commons/SigUtils.sol#L10). This function is already part of the [Open... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Validate total fees in `PolygonStrategy::updateFee` only if the `_feeBasisPoints > 0`
### Description
**Description:** While updating the fee in `PolygonStrategy::updateFee`, if `_feeBasisPoints == 0`, the fee at the index is replaced with the fee at the last index of the array, and the last element is popped ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Ensure Accurate Event Emission in OfferUpdated Event within mintFromOffer Function
### Description
In the `mintFromOffer` function, `msg.sender` represents the taker contract, not the provider. However, when emitting the `OfferUpdated` event, `msg.sender` is incorrectly emitted as the provider.
### Recommenda... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | false | false | ## Medium: `LinearDistributor.declareReward` can revert due to dependency of balance
### Description
### Impact
`LinearDistributor.declareReward` will revert and it can cause permanent DOS.
### Proof of Concept
In `LinearDistributor.declareReward`, if the balance is greater than the bufferRequirement, the rest will... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | false | false | ## Low: Problematic Edge Cases When Using delegateBySig
### Description
To encourage governance participation through delegation, the `delegateBySig` function [is called](https://github.com/zksync-association/zk-governance/blob/08ec4e7548c83572e6f09c8344f6e3390bb1b27a/src/ZkMerkleDistributor.sol#L218) together with 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 | medium | other | false | false | ## Medium: NFTs can be transferred to zero address and fees can be claimed for these tokenids
### Description
The comment in `_transferFrom` states that it does not allow transferring to the zero address. This gives a false impression because it is not true.
Any `tokenID` can in fact be transferred to the zero addre... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Inconsistent interfaces
### Description
The codebase defines [an `IStrategy` interface](https://github.com/OriginProtocol/origin-dollar/blob/bf4ff28d5944ecc277e66294fd2c702fee5cd58b/contracts/contracts/interfaces/IStrategy.sol) that is not inherited by any of the strategies. Similarly, [the `IVault` interface]... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## Medium: DeployHyFiConfigEngine: double deployment of `proxyAdmin`
### Description
`DeployHyFiConfigEngine.run` creates a `ProxyAdmin` using `transparentProxyFactory` :
```solidity
function run() external {
--snip--
transparentProxyFactory = new TransparentProxyFactory();
proxyAdmin = ProxyAdmin(transparent... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Escrowed NFT can be stolen by anyone if no active `buyPrice` or auction exists for it
### Description
_Submitted by hyh, also found by wuwe1_
If a NFT happens to be in escrow with neither buyPrice, nor auction being initialised for it, there is a way to obtain it for free by any actor via `makeOffer`, `acc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Claiming accumulated rewards while the contract is underfunded can lead to a loss of rewards
### Description
The claimable rewards for an NFT staker are capped at the Ajna token balance at the time of claiming. This can lead to a loss of rewards if the `RewardsManager` contract is underfunded with Ajna 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... | skyward_49k | medium | other | false | false | ## Medium: Smart contract owner is able to mint arbitrary number of NFT tokens.
### Description
**Description**
CryptoBearWatchClub.sol, reserveBears
**Recommendation**:
Limit ability of Smart contract owner to mint tokens. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | reentrancy | true | false | ## Low: ClaggBaseAdapter.withdraw() violates the CEI pattern
### Description
In `ClaggBaseAdapter.withdraw()`, the function `_transferToCaller()` is called before `snapshot()`:
```solidity
// Transfer the tokens to the user
_transferToCaller(poolConfig.token, tokenAmount);
// Take a snapshot of the pool
snapshot(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 | oracle | false | false | ## Low: Ownership Functionality Can Be Lost Through One Step Transfers
### Description
`DIMOVesting.sol` inherits from OpenZeppelin’s `Ownable`. There are two potential issues in this contract which can allow ownership to be lost entirely:
1. As ownership transfer in `transferOwnership()` is unilateral, ownership can... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of return value check in CurveAMO_V3 may result in failed collateral retrieval
### Description
The `CurveAMO_V3` contract does not check the return value of a call to transfer tokens from the `collateral_token` contract to the pool address. Without this check, such transfers could fail.
```solidity
// G... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | signature | true | false | ## Gas: Reduce the number of calls to MerkleProof.verify()
### Description
## PayrollManager.sol Review
**Context:** `PayrollManager.sol#L139-L244`
**Description:**
The function `executePayroll()` loops through the roots to count the approvals. The `MerkleProof.verify` is a relatively expensive operation. This can... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 NatSpec comments
### Description
Many functions in the code base have excellent [Ethereum Natural Specification Format](https://solidity.readthedocs.io/en/develop/natspec-format.html) (NatSpec) comments. However, here are some examples of missing or incomplete comments:
* Most functions in the [`SetT... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary check reverts function call.
### Description
It's impossible to call `updateDistributionEventCollectionIds()` or `updateDistribtionTotalEarningsAmounts()` if `tournamentDistributionAmount`+`otherDistributionAmount` stays the same. `topUpDistributionEvent()` reverts if it's not needed to transfer... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | true | false | ## High: LIQUIDATED LOANS WITHOUT AN ADEQUATE REPAYMENT
### Description
In the `liquidate_collateral` function from the **krp-cdp-contracts/custody** contract, there is no validation that `info.sender` is the **krp-cdp-contracts/central\_control** contract. As a consequence, the coins to be used as repayment will 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: Emission of wrong value for some events
### Description
**Description:** In the `SecuritizeSwap::swap()` function, an event is emitted after a successful swap.
But the event is emitting `msg.sender` in the place of `from` value while the `msg.sender` for the function `swap()` is only issuer or master.
**Secur... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Mismatch In Expected Decimal Value Resulting In DOS
### Description
`bond::process_initialize_bond` is responsible for initializing a bond token, including setting up the token’s decimals. The decimals may be any value between 0 and 19, as provided by the input during the initialization process. However, in... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: README is empty
### Description
The README.md files on the root of the git repositories are the first documents that most developers will read, so they should be complete, clear, concise and accurate.
The [README.md of the Marmo contracts](https://github.com/ripio/marmo-contracts/blob/d3fb5922a4f01e47d585343... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Disabled tokens still stakable via pools
### Description
_Acknowledged_
Disabled tokens can still be staked through existing delegation pools despite being disabled for reward distribution. This creates a scenario where users unknowingly stake tokens that will never earn rewards, effectively losing the opport... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: claimGasAtMinClaimRate uses all etherSeconds when minClaimRateBips <= zeroClaimRate
### Description
The `claimGasAtMinClaimRate` function allows a user to claim the maximum gas at a minimum claim rate. It's unclear whether the function should:
1. Further try to maximize the claim rate if possible, or
2. Claim... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.