prompt listlengths 2 2 | source stringclasses 3
values | severity stringclasses 5
values | category stringclasses 186
values | has_code bool 2
classes | has_poc bool 2
classes | reference_response stringlengths 23 5k | firm stringclasses 26
values | quality_score float64 0 5 | protocol stringclasses 398
values |
|---|---|---|---|---|---|---|---|---|---|
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Basket can be fully drained if the auction is settled within a specific block
### Description
_Submitted by Ruhum_
The `settleAuction()` function allows someone to settle the auction by transferring funds in a way that the new pending index is fulfilled. As a reward, they are able to take out as many token... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Governance control is centralized through a single gov address.
### Description
**Severity** : Medium
**Status** : Acknowledged
**Description**
The contract `VaultPriceFeed` employs a single gov address for critical governance actions, it introduces a significant risk by creating a single point of failur... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Error codes of Quote functions are unchecked
### Description
The error return values from functions `getBuyNFTQuote()` and `getSellNFTQuote()` are not checked in contract `LSSVMRouter.sol`, whereas other functions in contract `LSSVMPair.sol` do check for `error==CurveErrorCodes.Err` or `OK`.
```solidity
ab... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: The condition for full withdrawals in the code is different from that in the documentation
### Description
### Proof of Concept
The condition in [docs](https://github.com/code-423n4/2023-04-eigenlayer/blob/138cf7edb887f641ae48e33e963ab1be4ff474c1/docs/EigenPods.md) for full withdrawal is `validator.withdrawabl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Untested functions in RenderToken
### Description
The `RenderToken` contract implements functions (*e.g.* [holdInEscrow](https://github.com/jeualvarez/Token-Audit/blob/e946177747e57312690775204834b8fca1bbb0d5/contracts/RenderToken.sol#L39) ) that are not being tested in the test suite. Consider testing all fun... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unbounded iteration on refreshCompSpeedsInternal
### Description
## Handle
@cmichelio
## Vulnerability details
## Vulnerability Details
The `Comptroller.refreshCompSpeedsInternal` function iterates over all markets and does expensive computations like updating all borrower / supply indices.
## Impact
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 | low | token | true | false | ## Low: Non ContractError::Revert errors will silently pass
### Description
When calling a contract, the logic to handle the error only accommodates the `ContractError::Revert` case. All other errors will silently pass, leading to the RPC request waiting for the 60 seconds timeout. For example, the `WithdrawToken` log... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Tokens that revert of zero value transfers can cause reverts on liquidation
### Description
Tokens that revert of zero value transfers can cause reverts on liquidation
### Impact
In case liquidation reverts (due to tokensToGiveToSender == -amountDue), the `tokenDifferenceFromLiquidations` won't be updated ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Gas: amounts and shares types can be changed to uint128
### Description
Safe casting the input amount / shares to `uint128` can be avoided if it’s taken in as that type in the first place. As an added benefit, it helps to avoid potential reverts with safe casting and overflows / underflows in other parts / function... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: No upper limit on the expiration date of the orders
### Description
The lack of an upper bound check on the `expiration_date` of an order can lead to the reuse of an `order_seqno` and the order contract. This can result in unexpected behavior from off-chain components relying on `order_seqno` and the order con... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `sessionCounter` check not enforced when removing `SessionKeyValidator`
### Description
When users remove `SessionKeyValidator`, it will ensure that `sessionCounter` is 0 before triggering `removeModuleValidator` and `removeHook` to complete the module removal. The `sessionCounter` check is necessary to pre... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Naming Error
### Description
Within the `bootloader.yul` code, two instances referencing non-existent variables and functions were identified. Compiling the code will lead to a compilation error, as the referred variable and function names lack definitions:
* The unknown variable [`SHOULD_SET_NEW_BLOCK`](... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect accounting of `tipBalance` can indefinitely stall report execution
### Description
**Description:** The `receive` fallback function in `CasimirManager` increases `tip` balance if the sender is not the `DelayedWithdrawalRouter`. The implicit assumption here is that all withdrawals, full or partial, a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | logic | false | false | ## Low: Temporarily Unusable ETH [samples]
### Description
The `TokenPaymaster` includes [a mechanism](https://github.com/eth-infinitism/account-abstraction/blob/9879c931ce92f0bee1bca1d1b1352eeb98b9a120/contracts/samples/TokenPaymaster.sol#L213) to receive ETH donations. However, they cannot be used or withdrawn until... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential hash collisions for constants
### Description
[The constants for the access roles `OWNER_ROLE` and `EXECUTOR_ROLE`](https://github.com/EnsoFinance/shortcuts-contracts/blob/4902e55608f975f73772310955444110b1cfc4fc/contracts/access/Roles.sol#L5)
are vulnerable to potential hash collisions.
### Recomme... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ADD PARAMETER TO EVENT-EMIT
### Description
Some event-emit description doesn't have parameter. Add parameter for front-end website or client app, they can has that something has happened on the blockchain.
FILE : 2023-03-canto-identity/canto-namespace-protocol/src/Tray.sol
80: event PrelaunchEnded();
[Tr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | access-control | false | false | ## High: Missing Ownership Check In Vault
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `37fd1a6c3040d1a7f685e487715c0c9de9be827a`.
**File(s) affected:**`UserVault.sol`
**Description:** Users can bundle up NFT and tokens in a special NFT called vaults via the `UserVault` contract. 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... | cyfrin_structured | medium | access-control | true | true | ## Medium: Unauthorized role grants prevent `QuantAMMBaseAdministration` deployment
### Description
`QuantAMMBaseAdministration` is a contract that manages certain break-glass features and facilitates calls to other QuantAMM contracts.
However, this contract fails to deploy due to an issue in the [`QuantAMMBaseAdmini... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: GOVERNORALPHA DOES NOT CONTROL QUEUED PROPOSALS ON CANCEL METHOD
### Description
The `cancel(uint proposalId)` The cancel function is used to cancel the proposals. There is a check on the contract to do not cancel executed proposals. If the state of a proposal is not `QUEUED` yet, the contract will revert to c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: Asset Inventory System
### Description
Thala lacks a formal system for tracking and managing critical assets including personal devices, hardware security modules, and service account access. Without a comprehensive asset inventory, the team faces increased risk during security incidents and may miss critical ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unsafe Casting From uint256 To uint128
### Description
There are a range of unsafe casts in `FuroStream`, `FuroVesting`, and `SushiAuctionMaker` for `uint256` values into `uint128`. These casts will truncate any values greater than `2^128`.
`BentoBoxV1` expects ERC20 tokens to have a maximum value less than `... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Abstract Contracts Allow Direct Modification of State Variables
### Description
In order to prevent re-entrant calls, the [`_sendEntered` and `_receiveEntered` state variables](https://github.com/ava-labs/teleporter/blob/253b833518aa7a6448650388cc288bd76d8470a7/contracts/src/Teleporter/ReentrancyGuards.sol#L21... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No validation of address parameter value in contract constructor
### Description
There is no more functionality to initialize the `vault` variable in the contract. If the value of the variable passed to [constructor](https://github.com/iearn-finance/yearn-vaults/blob/54db126821c4d7aaaf5839be935cecb9b1bf088b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | ## High: Incorrect ETH Fee Handling
### Description
## SwiftSource Refund Order Vulnerability
In `SwiftSource::refundOrder`, the function handles refunds in two scenarios:
- Native Cryptocurrency (ETH) when `tokenIn == address(0)`
- ERC20 tokens for all other addresses.
The vulnerability arises because native ETH i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | true | false | ## Low: Total claimable bounties may exceed type(uint32).max
### Description
Individual bounties are capped to `type(uint32).max` which is approximately `4.295` of a native token of 18 decimals (`4.2949673e18 wei`). It's possible (and likely in the case of the Polygon network) for their sum to therefore exceed `type(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... | cyfrin_structured | low | integer-overflow | true | false | ## Low: `yUSDeVault` edge cases should be explicitly handled to prevent view functions from reverting
### Description
Per the ERC-4626 specification, the preview functions "MUST NOT revert due to vault specific user/global limits. MAY revert due to other conditions that would also cause mint/deposit/redeem/withdraw to... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | Business Logic | false | true | _Submitted by hansfriese, also found by 0x52 and codexploder_
<https://github.com/code-423n4/2022-07-fractional/blob/8f2697ae727c60c93ea47276f8fa128369abfe51/src/modules/Migration.sol#L105>
<https://github.com/code-423n4/2022-07-fractional/blob/8f2697ae727c60c93ea47276f8fa128369abfe51/src/modules/Migration.sol#L141>
... | Code4rena | 4 | Fractional |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent Array Length Validation in Update and Set Functions
### Description
The `updateUserVipLevel`, `updateUserAffiliate`, and `setVipLevelsDiscount` functions fail to validate that the input arrays `_users` and `vipLevel`, `_users` and `affiliateReceives`, and `vipLevel` and `discount` have matching 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 | gas | overflow | true | false | ## Gas: `RankedBattle.updateBattleRecord()` doesn't need to check voltage since `VoltageManager.spendVoltage()` will revert if voltage is too low
### Description
`updateBattleRecord()` checks that the initiator's voltage is sufficient:
```solidity
require(
!initiatorBool ||
_voltageManagerInstance.ownerVoltageRe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Addresses Should Not Be Hardcoded
### Description
**Severity** - Low
**Status** - Acknowledged
**Description**
In the Fias2.sol addresses such as FOREVERR_MINTER and LITCRAFT_MINTER have been hardcoded , it is possible that on different chains the addresses corresponding to these roles are different and hen... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Ownership Verification
### Description
## CW721ERC721Pointer::transferFrom Issues
The `CW721ERC721Pointer::transferFrom` method lacks a check to verify whether the provided `from` address is the true owner of the token being transferred. In the ERC721 standard, this verification step is crucial to ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | reentrancy | true | true | ## Lines of code
https://github.com/code-423n4/2022-12-tigris/blob/588c84b7bb354d20cbca6034544c4faa46e6a80e/contracts/Position.sol#L126-L161
## Vulnerability details
## Impact
Function `Position.mint()` has been used in `initiateLimitOrder()` and `initiateMarketOrder()` and it doesn't follow check-effect-interactio... | Code4rena | 5 | Tigris Trade |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | logic-error | true | false | ## Low: `unwhitelistOperator` allows state changes when whitelist Is disabled, causing inconsistent operator state
### Description
The `unwhitelistOperator` function performs state changes (removing an operator from the whitelist and potentially unregistering them) even when the whitelist feature is **disabled**. This... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Operators can cast an extra vote to get voting majority
### Description
**Severity**
**Impact:**
High, as it breaks the `votingRatio` invariant
**Likelihood:**
High, as operators can cast an extra vote at any time
**Description**
In `PoolGovernance::proposeEpoch`, operators can cast an extra vote when thi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: Lack of jailbreak detection
### Description
Anti-jailbreak mechanisms are not used in the iOS application. These mechanisms can help mitigate reverse engineering, application modification, and unauthorized versions of mobile applications to some extent, but few if any will be completely successful against 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 | medium | access-control | false | false | ## Medium: Missing setter for cooldownDuration in LevelMinting
### Description
In the LevelMinting contract, `cooldownDuration` is set to 7 days in the constructor. However, the contract does not have a function to update the value of `cooldownDuration`. Therefore, the protocol admin will not be able to update the wit... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Guards Preventing Direct Initialisation of Minipool Base Contract
### Description
The `RocketMinipoolBase.initialise()` function does not include important checks to protect it from being executed directly in the context of the `RocketMinipoolBase` implementation contract. Fortunately, the current `ini... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | ## High: Fee Evasion via LP Token Transfer Resets Deposit Value
### Description
## 01. Relevant GitHub Links
 
*
## 02. Summary
Within the UpliftOnlyExample contract, liquidity providers receive LP NFTs to represent their share in the pool. However, this LP NFT can be freely transferred to another address. 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 | low | token | true | false | ## Low: `doNFTTransferIn()` should not perform fee on transfer token check
### Description
In `doNFTTransferIn()`, we perform a check that is taken from the ERC20 market, checking the balance before and after the transfer, and adjusting the amount to the difference between these values.
While this situation should no... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | cross-chain | true | false | ## Medium: The optimal version _depositAndSwap() isn't always used
### Description
The function `_depositAndSwap()` of SwapperV2 has two versions. The second version keeps `_nativeReserve` that is meant for fees. Several facets don't use this version although their bridge does require native fees. This could result in... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | true | false | ## Low: TRST-L-5 Governance-related risks
### Description
**Description:**
There are several ways in which a malicious or hacked governance can take user funds. Through the WalletAdapterRegistry, governance can register new wallet adapters arbitrarily. A malicious adapter can be abused easily as it can transform 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 | gas | oracle | true | false | ## Gas: Refactor code to avoid instantiating memory struct within loop
### Description
In the instance below, instead of instantiating the `SignedSets` struct within memory in the loop we can refactor the `validateSignedSet` function so that only the needed struct values are returned and used in the loop.
https://git... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Asset transfer centralization risks
### Description
The protocol is subject to the following asset transfer risks which become a threat in case the `DEFAULT_ADMIN_ROLE` is compromised / acts maliciously:
- Arbitrary transfer of ETH and ERC20s from `Treasury` contract via direct transfer or allowances.
- Arbit... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | false | false | ## Low: Additional verification checks for bridge farm scripts
### Description
The bridge initialization scripts check several assumptions on the involved contracts.
### Recommendation
Consider adding additional checks:
- `FarmProxyInit.sol#L99`: `cfg.vestBgn` should be in the future; otherwise, the distribution 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 | access-control | false | false | ## Low: Privileged Roles and Ownership
### Description
**Update**
Marked as "Fixed" by the client. The privilege roles are properly documented. Addressed in: `35bb7853313ee75e446fcf4fedda0133d98102c1`.
**File(s) affected:**`AccessProtected.sol`, `TokenVesting.sol`
**Description:** Smart contracts will often have 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 | medium | initialization | false | false | ## Medium: TLS certificates are not pinned for multiple domains
### Description
Magma will accept SSL certificates signed by any Certificate Authority (CA) installed within the device's trust store for the indicated domain names. As part of an attack, this could allow an entity in control of a CA private key (such as ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | true | false | ## Medium: defaulting doesn't change the state of the loan
### Description
The lender can claim the borrowers collateral in case they have defaulted on their payments. This however does not change the state of the loan so the borrower can continue making payments to the lender even though the loan is defaulted.
### 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 | other | true | false | ## Medium: User should not receive rewards for the rebalance period, when protocol was blacklisted, because of unpredicted behaviour of protocol price
### Description
User should not receive rewards for the rebalance period, when protocol was blacklisted, because of unpredicted behaviour of protocol price.
### Impact... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | false | false | ## Low: Chainlink can have different bonding and claim periods for Operator and Community staking pools
### Description
`FundFlowController` uses the same `unbondingPeriod` and `claimPeriod` for both the Operator and Community pools.
Since the Chainlink [Operator](https://etherscan.io/address/0xa1d76a7ca72128541e9fca... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `_AddRebalanceRequest` may use outdated balance for delegate withdrawal request
### Description
`ValidatorManager._addRebalanceRequest()` checks validator's balance and records a withdrawal request:
```solidity
function _addRebalanceRequest(address validator, uint256 withdrawalAmount) internal {
require(... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: L15] Unused variables
### Description
###### Low
In the `CurrencyGovernance` contract, there are two unused variables. Firstly, the [`REVEAL_TIME`](https://github.com/BeamNetwork/currency/blob/51b65c5c7af455391af2bc30d13d761566d8c236/contracts/inflation/CurrencyGovernance.sol#L26) [constant](https://github.c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | true | false | ## Medium: Attacker can reset the gauge associated to a lptoken
### Description
The `GaugeFactory` contract deploys gauge contracts by cloning the existing implementation through the `deployGauge` function. Once deployed, the `lpTokenToGauge` mapping associates the provided lpToken address to the new gauge.
Through ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `IdleYieldSource` doesn't use mantissa calculations
### Description
_Submitted by tensors_
Because mantissa calculations are not used in this case to account for decimals, the arithmetic can zero out the number of shares or tokens that should be given.
For example, say I deposit 1 token, expecting 1 share i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | false | false | ## High: C02] Any token holder can prevent currency governance
### Description
###### Critical
The [`CurrencyGovernance`](https://github.com/BeamNetwork/currency/blob/51b65c5c7af455391af2bc30d13d761566d8c236/contracts/inflation/CurrencyGovernance.sol) [contract](https://github.com/BeamNetwork/currency/blob/51b65c5c7... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Possible Inconsistencies in Anchor Framework
### Description
## Caution Regarding Library Dependencies
It is advisable to exercise caution regarding the dependencies and versions of libraries that the AMM utilizes. Specifically, avoid utilizing the Anchor crate’s master branch, as it may contain experimental ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: WstUSR is not EIP-4626 compliant
### Description
The WstUSR implementation returns `stUSRAddress.totalSupply()` as its `totalManagedUsrAmount`:
According to EIP-4626:
> totalAssets: Total amount of the underlying asset that is “managed” by Vault.
- The purpose of the `totalAssets()` function is to provide ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | false | false | ## Low: `AutoCompoundingPodLp` vault does not follow the EIP4626
### Description
Under the 'Security Considerations' header, it states that shares/assets provided _to_ the user should be rounded down, but should be rounded up when taken _from_ the user.
In the `withdraw()` function, the calculation to obtain `_shares... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | false | ## Medium: Liquidity manipulation is possible when trading
### Description
The [Trade contract](https://github.com/code-423n4/2024-05-predy/blob/main/src/libraries/Trade.sol) lacks any checks against the retrieved price. It doesn't utilize TWAP. Consequently, an attacker can manipulate the spot price (`slot0`) throug... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | true | false | ## Medium: Deposits Guaranteed To Fail May Be Re-Executed Repeatedly
### Description
The Atlas contract incorporates deposit status rollback functionality for deposits in which the user successfully deposited native BTC into the Atlas Bitcoin wallet, but the execution of the atBTC minting logic for that user failed. 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 | cross-chain | false | false | ## High: Incorrect casting in Bridge::_getRoyaltyPercentage leads to miscalculated royalty fees
### Description
The `_getRoyaltyPercentage` function in the Bridge contract attempts to get royalty information using the `ERC2981::royaltyInfo` function but incorrectly treats the returned royalty amount as a royalty perce... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Floating Pragma
### Description
The contracts in the codebase are using the floating pragma `^0.8.0` . This version indicates that any compiler version starting from `0.8.0` can be used to compile the source code.
However, the code will not compile when using version `0.8.3` or earlier since the protocol 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 | medium | reentrancy | true | false | ## Medium: Exchange owner might steal users’ funds using reentrancy
### Description
The practice of pulling funds from a user (by using `safeTransferFrom`) and then later pushing (some) of the funds back to the user occurs in various places in the `Exchange` contract. In case one of the used token contracts (or one 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: Unnecessarily complex iteration logic in `MetaVault::redeemMetaVaults` can be simplified
### Description
`MetaVault::redeemMetaVaults` is currently implemented as a while loop, indexing the first array element and calling `MetaVault::removeVaultAndRedeemInner` which implements a "replace-and-pop" solution for ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Multiple conditions in a single require statement
### Description
There is a single require statement with multiple conditions in [lines 241 to 243](https://github.com/primitivefinance/primitive-protocol/blob/78a8e64b7618e9199203ab84042876c580ae1e90/packages/primitive-contracts/contracts/option/primitives/Opti... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Documentation errors
### Description
## Code Comments Review
**Context:**
- DistributionModule.sol#L714
- IDistributionModule.sol#L83
- IDistributionOperator.sol#L6
- IOffChainDistributionChallenger.sol#L14
**Description:**
At several places, the code comments are incorrect:
- **IDistributionOperator.sol::... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Anyone can create Proposal Unigov `Proposal-Store.sol`
### Description
_Submitted by Soosh, also found by 0x1f8b, cccz, csanuragjain, hake, p4st13r4, Ruhum, TerrierLover, WatchPug, and zzzitron_
Proposal Store is used to store proposals that have already passed () " Upon a proposal’s passing, the proposalHa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | overflow | true | false | ## High: Attacker can block all votes to a specific pool by triggering an overflow error
### Description
An attacker can deploy a `BribeRewarder` contract using a custom token and distribute a huge number of those tokens to trigger an overflow error and prevent users from voting in a specific pool.
### Impact
By exec... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## High: Lack of replay protection in PPS oracle
### Description
The `ECDSAPPSOracle` signature schema does not include a nonce, which makes it vulnerable to replay attacks once enough validators (more than the `quorumRequirement`) sign the price update. A malicious user can exploit this by pushing an outdated PPS pri... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incomplete Docstrings
### Description
Throughout the codebase, multiple instances of incomplete docstrings were identified:
* In `IAmountGetter.sol`:
+ In the [`getMakingAmount`](https://github.com/1inch/limit-order-protocol/blob/cf8e50eb24c01c7b276a30a5877840df35e66e67/contracts/interfaces/IAmountGetter.s... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: DebtManager.manualAllocation vault.totalIdle can be lower than vault.minimum_total_- idle()
### Description
In case `vault.totalIdle()` is smaller than `vault.minimum_total_idle()`, there should be a `continue`. The `totalIdle` can be lower than the minimum.
### Recommendation
```solidity
// deposit/increa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Mint and burn functionalities can break
### Description
The [`mint`](https://github.com/celo-org/celo-monorepo/blob/6b5143a142f4715a9b8bc428b1cf391eec414ec8/packages/protocol/contracts/stability/StableToken.sol#L223) and [`burn`](https://github.com/celo-org/celo-monorepo/blob/6b5143a142f4715a9b8bc428b1cf391... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | true | false | ## Low: Public functions not called by the contract should be declared external instead
### Description
Contracts [are allowed](https://docs.soliditylang.org/en/latest/contracts.html#function-overriding) to override their parents' functions and change the visibility from external to public.
There are 2 instances of t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Constant can be used
### Description
**Description**
ShyftStaking.sol, unbondingPeriod (line 26)
The value is set just once during the initialization and is not changed throughout the contract.
Also there is no setter for the variable. Thus it can be set as the constant or the immutable
variable constructed 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 | reentrancy | true | true | ## Medium: `timewindow` can be changed unexpectedly that blocks users from calling `deposit` function
### Description
### Impact
As shown by the following `epochHasNotStarted` modifier, which is used by the `deposit` function below, users can only deposit when `block.timestamp
### Proof of Concept
Please add 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 | token | false | false | ## Medium: Use `safeTransferFrom` and `safeTransfer` from SafeERC20
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
In contract Trading.sol, there are multiple places where the IERC20 interface is used for the interaction with several tokens. However, there are also cases where the result ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | false | false | ## Low: Hard-coded credentials
### Description
The claim-backend component sets the PostgreSQL password as an environment variable (figure 5.1). The password is also checked into the source code (figure 5.2). Keeping secrets in environment variables is a well-known antipattern. Environment variables are commonly captu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | cross-chain | true | false | ## Gas: Optimize away `nativeToken` variable in `TokenBridge::setDeployed`
### Description
**Description:** Optimize away `nativeToken` variable in `TokenBridge::setDeployed` which is written to but never read, eg:
**Linea:**
Fixed in commit [35c7807](https://github.com/Consensys/zkevm-monorepo/commit/35c7807756ccac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unhandled return values of transfer and transferFrom
### Description
#### Resolution
`safeTransferFrom` is now used instead of `transferFrom` in all locations.
ERC20 implementations are not always consistent. Some implementations of `transfer` and `transferFrom` could return ‘false’ on failure instead 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 | medium | flash-loan | false | false | ## Medium: NFT flashloans can bypass sale constraints
### Description
## Handle
pauliax
## Vulnerability details
## Impact
Public sale has a constraint that for the first 4 weeks only NFT holders can access the sale:
if (currentEra 0, "You need NFT to participate in the sale.");
}
However, this check can 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 | oracle | false | false | ## Low: Wrong Oracle Feed Addresses
### Description
The `SPCTPriceOracle` and `USDzPriceOracle` contracts contained the hardcoded address `0xAed0c38402a5d19df6E4c03F4E2DceD6e29c1ee9` as the `SPCT/USD` and `USDz/USD` oracle addresses respectively. However, this was found to be the `DAI/USD` Chainlink oracle on Ethereum... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 address(0) for the zero address
### Description
In `PayrollManager::execTransactionFromGnosis`, one of the arguments of `executeAllowanceTransfer` looks like:
```
0x0000000000000000000000000000000000000000
```
While the intention was obviously to send the zero address as the argument, it is best to use 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... | solodit_api | high | Wrong Math | true | true | ## Handle
WatchPug
## Vulnerability details
The total balance should NOT be simply added from different tokens' tokenAmounts, considering that the price of tokens may not be the same.
https://github.com/code-423n4/2021-09-yaxis/blob/cf7d9448e70b5c1163a1773adb4709d9d6ad6c99/contracts/v3/Vault.sol#L324
```solidity=... | Code4rena | 5 | yAxis |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Malicious or erroneous MarketSource can break rebasing
### Description
If MarketSource ever reports a `partialRate` and `partialVolume`, such that
\[ \text{partialRate} \times \text{partialVolume} \geq 2^{256} - \sum_{i \neq j} \text{partialRate}_i \times \text{partialVolume}_j \]
then the incremental summat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | Wrong Math | false | true |
Minting and redeeming become impossible.
### Proof of Concept
uint256 _numberOfNonReservesMinted = _storedTier.initialQuantity -
_storedTier.remainingQuantity -
_reserveTokensMinted;
uint256 _numerator = uint256(_numberOfNonReservesMinted * _storedTier.reservedRate);
uint256 _numberReserved... | Code4rena | 4 | Juicebox |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Ownership Can Be Renounced
### Description
The owner of the `Claim` contract can renounce ownership by calling the [`renounceOwnership`](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.1/contracts/access/Ownable.sol#L76) function. If the ownership is lost, the [`ownerRescueTokens` function](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 | high | liquidation | true | false | ## High: Decrease position can be abused to withdraw PnL twice
### Description
When users decrease their position, it will eventually trigger `executeDecreasePositionSizeMarket`.
```solidity
function executeDecreasePositionSizeMarket(
ITradingStorage.PendingOrder memory _order,
ITradingCallbacks.AggregatorAnswe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Past Defeated Proposals Can Be Executed in the Future
### Description
Report type: Smart Contract
Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/AlchemixGovernor.sol
Impacts:
- Manipulation of governance voting result deviating from voted outcome and resulting in a direct change f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Boolean State of `VestingSchedule.revoked` Never Modified
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `cb094f8`.
**Update**
Marked as "Fixed" by the client. Addressed in: `8a0a205de922c611702750e4c9a57e9503f409cc`. The client provided the following explanation:
> VestingSchedul... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | Missing-Logic | true | true | Source: https://github.com/sherlock-audit/2023-02-blueberry-judging/issues/129
## Found by
8olidity, carrot, Jeiwan, obront, Ch\_301, cergyk, rbserver
## Summary
When a user withdraws some of their underlying token, there is a check to ensure they still meet the Max LTV requirements. However, they are able to arbi... | Sherlock | 5 | Blueberry |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Constant redefined elsewhere
### Description
Consider defining in only one contract so that values cannot become out of sync when only one location is updated. A [cheap way](https://medium.com/coinmonks/gas-cost-of-solidity-library-functions-dbe0cedd4678) to store constants in a single location is to create an... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Minting an NFT with a position on the same bucket as a previously minted NFT changes its deposit time
### Description
Minting an NFT with a position on the same bucket as a previously minted NFT changes its deposit time.
### Impact
The `depositTime` is used when applying early withdrawal fee and on bankrup... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User Can Be Permanently Denied from Purchasing New Penguins Due to Incorrect Alive Penguin Count Validation
### Description
The vulnerability exists in the penguin purchase mechanism within the `buyPenguin()` function and its associated validation logic. The contract maintains two separate data structures to ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | true | false | ## High: Fee receiver is given twice the amount of borrow fees it's owed
### Description
The fee receiver is given twice the amount of borrow fees it's owed, at the expense of the user's position
### Impact
The fee receiver gets twice the amount owed, and the user is charged twice what they should be for that portion... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [02] `evm_signer::TryProcessOutTx` does allow to send out CCTX tx to address(0)
### Description
`evm_signer::TryProcessOutTx` does allow to send out CCTX tx to address(0), which would effectivelly cause a funds loss. This is low as self-reck. I would recommend to add the following conditions.
https://github.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Uneven deduction of performance fee causes some KangarooVault users to lose part of their token value
### Description
In `KangarooVault._resetTrade()`, a `performanceFee` is charged upon closing of all positions, on the `premiumCollected`. This is inconsistent with `getTokenPrice()` as `premiumCollected` is f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: MappedSinglyLinkedList Encapsulation
### Description
To improve encapsulation of the `MappedSinglyLinkedList` data structure, consider renaming [both](https://github.com/pooltogether/pooltogether-pool-contracts/blob/23b826b94e62d9c3a49bbe637da44cd1409c5b7f/contracts/utils/MappedSinglyLinkedList.sol#L79) [insta... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: `NotSelf()` error declaration is unused
### Description
The `DeleGatorCore` contract and `EIP7702DeleGatorCore` contract both define a custom error called `NotSelf()`, but this error is never actually thrown anywhere in either contract or their derived implementations.
```solidity
// DeleGatorCore and EIP7... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Token owner can burn their token with active rental leading to renters' funds being stuck
### Description
The `burn` function in the contract deletes all data associated with a token, including any active rental information. In Coded Estate, renters must deposit funds in advance for short-term rentals, and th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Btcstaking module allows `stakingTx` to be coinbase transaction which is unslashable for 100 blocks
### Description
Coinbase transactions have a special property of not being spendable for 100 bocks after creation. If now a staker uses such a transaction as a staking transaction (by adding the required outp... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users' collateral could get stuck permanently after fully closing short trades
### Description
When completely closing a short trade, a user is supposed to input `TradeParams` such that:
`shortPosition.shortAmount == params.shortAmount`
`shortPosition.collateralAmount == params.collateralAmount`
However, ... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.