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
initialization
true
false
## Gas: Cache `prize.probability` before first use ### Description **Description:** In `SpinGame::_fulfillRandomness()`, `prize.probability` is first read in an `if` statement, and then cached immediately afterward: This results in an unnecessary initial storage read before caching. Consider caching it above the `if...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: VULNERABLE THIRD-PARTY DEPENDENCIES ### Description The scoped repository used multiple third-party dependencies. Several of the assessed dependencies had public-known vulnerabilities, many of them with CRITICAL or HIGH severity, that may pose a high risk to the global application security level. ### Impac...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
access-control
true
false
## Gas: Functions guaranteed to revert when called by normal users can be marked `payable` ### Description If a function modifier or require such as onlyOwner/onlyX is used, the function will revert if a normal user tries to pay the function. Marking the function as payable will lower the gas cost for legitimate calle...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
true
false
## Gas: Using `storage` instead of `memory` for `structs/arrays` saves gas ### Description When fetching data from a storage location, assigning the data to a ``memory`` variable causes all fields of the struct/array to be read from storage, which incurs a Gcoldsload (2100 gas) for each field of the struct/array. If 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
other
false
false
## Low: Comments are different from the implementation ### Description **Description** Comments in the function swap() of the Pool contract are different from the implementation. **Recommendation**: Update comments to function or update implementation. **Re-audit**: Skipped.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: HTTP Content Allowed in Chrome Extension Manifest ### Description **Update** Marked as "Fixed" by the client. Addressed in: `512e5bf`. **Description:** When it comes to altering content of a website using an extension, it is generally recommended only to target `https` websites. This ensures that any confiden...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Reduced Borrow Fee due to Resetting of Accrued Interest ### Description ## Vulnerability in Cumulative Interest Snapshot The vulnerability involves an issue with how the `cumulative_interest_snapshot` field is reset when increasing the position in the `increase_position_long` and `increase_position_short` 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
gas
other
true
false
## Gas: `require()` or `revert()` statements that check input arguments should be at the top of the function ### Description Checks that involve constants should come before checks that involve state variables, function calls, and calculations. By doing these checks first, the function is able to revert before wasting...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Set sane maximums for input parameters ### Description There should be an upper limit to reasonable fees *There are 2 instances of this issue.* **For further details on this (and the warden's other findings with multiple instances), please see their [full report](https://github.com/code-423n4/2022-05-alchemi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `createPaymentMethodWhitelist()` can be spam called ### Description **Severity**: Low **Status**: Resolved **Description** The function createPaymentMethodWhitelist() has no access modifier. Consequently, it can be called spam called multiple times by any address. This can result in overflow of paymentMetho...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Synth: approveAndCall sets unnecessary approval ### Description ## Handle cmichel ## Vulnerability details ## Vulnerability Details The `Synth.approveAndCall` function approves the `recipient` contract with the max value instead of only the required `amount`. ## Impact For safety, the approval should n...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Lack of Two-Step Ownership Transfer ### Description **Severity**: Low **Status**: Resolved **Description** The Beyond smart contracts does not implement a two-step process for transferring ownerships. In its current state, ownership can be transferred in a single step, which can be risky as it could lead to...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: `updatePolicy` parameters should be checked ### Description In `updatePolicy(_contracts, _methodNames...)`: should check other parameters based on `_paramTypes`. `_exactMatches` should be empty for `INT` and `UINT` (in case `UINT` support will be added to `updatePolicy(_contracts, _methodNames...)`). `_exactMa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [08] `exitFarm` doesn´t default the `isAave` flag ### Description When the `exitFarm` is called: 1. The Power Farm NFT is burned, 2. Reserved keys are reset, 3. And available NFT mapping is reserved for the burned one. However, it doesn't revert the `isAave` mapping to false: **[Trust (judge) commented](h...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
true
false
## Gas: Avoid repeating computations ### Description In Solidity development, repeating the same computations within a contract can lead to unnecessary gas consumption and reduce the contract's efficiency. This is particularly relevant in functions that are called frequently or involve complex calculations. Repeating ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inadequate URL protocol whitelist in link sanitization ### Description In `ExplorerLink.tsx` and `ManageChainsItem.tsx`, user-controlled URLs (e.g. the txPage template or the chain’s website field) are passed directly through xss() and rendered into an `` without validating the URL scheme. While the xss lib...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Proxy ownership fragility ### Description After deploying an `InitializableProxy`, the `ProxyCloneFactory` [transfers ownership of the proxy to itself](https://github.com/celo-org/celo-monorepo/blob/f64b4c5b5228ecbf41e3e7cfdbb8c0e9a983eea2/packages/protocol/contracts/common/ProxyCloneFactory.sol#L58). This pot...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: An attacker can block a user from opening new Maker/Taker positions by “donating” 16 unwanted Maker assets, saturating their asset quota ### Description Because assets created via newMaker(recipient=...) are added directly to the recipient’s quota without their consent or opt-in, an attacker can fill a user...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
liquidation
true
false
## Low: [08] Transaction revert in division by zero error when handling protocol fee if the feeTo address is set but `s.protocolFeeDenominator` is not set ### Description In the VaultImplementation, function commitToLien is called for lifecycle of new loan origination. which calls: which calls: which calls: If...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `deployVault()` function `_indexTokenOwner` argument is misnamed ### Description The `deployVault()` function in `CoreDeploy.s.sol` script takes the following arguments: As we can see, the `_indexTokenOwner` variable is only used to set the `vault` owner. The index token owner is set later, in the `initalizeI...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Input Validation ### Description **Update** Addressed in: `7f55712`. The client fixed 1.5.1, 2.1.2, and 2.1.3. The other issues remain unresolve **File(s) affected:**`isolated_lending/sources/isolated_lending.move`, `lending_core/sources/lending.move` **Description:** The following functions lack 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
medium
dos
true
false
## Medium: The `Voter.distribute` function can continue to fail. ### Description Report type: Smart Contract Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/Voter.sol Impacts: - Protocol insolvency - Unbounded gas consumption ## Description ## Brief/Intro When calling the Voter.distribute...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
oracle
true
false
Source: https://github.com/sherlock-audit/2023-02-blueberry-judging/issues/327 ## Found by berndartmueller, koxuan, rvierdiiev, rbserver ## Summary The maximum size of an `ICHI` vault spell position can be arbitrarily surpassed by subsequent deposits to a position due to a flaw in the `curPosSize` calculation. ##...
Sherlock
4
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
medium
access-control
false
false
## Medium: Privileged Roles and Ownership ### Description **Update** Marked as "Acknowledged" by the client. The client provided the following explanation: > The owner of the contract will be a multi-sig and it will be clear via off-chain documentation that the user must place some trust in Arkham. **File(s) affecte...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Prefer explicit unsigned integer sizes ### Description Prefer explicit unsigned integer sizes: ```solidity trust/TrustService.sol 218: for (uint i = 0; i < _addresses.length; i++) { compliance/ComplianceConfigurationService.sol 34: for (uint i = 0; i < _countries.length; i++) { compliance/Walle...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Spend limit on owner can be bypassed ### Description It seems that the owner is only allowed to spend amount uptil config.spend\_limit. However it was observed that this `config.spend_limit` is never decreased even if owner has spend an amount. This makes `config.spend_limit` useless as owner can simply send ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Off-by-one LTV check ### Description [Docs](https://lavarage.gitbook.io/lavarage/key-parameters) specify that positions are liquidated when `>= 90%` LTV, but this is not the case: Consider using `>=` instead of `>`, or change the docs accordingly.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Flashloan `TEL` tokens to stake and exit in the same block can fake a huge amount of stake with minimal material cost ### Description `Checkpoints#getAtBlock()` can be faked with falshloan as it may return the value of the first checkpoint in the same block. ### Impact Malicious user can fake their stake 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
medium
flash-loan
true
false
## Medium: Transaction revert if the baseToken does not support 0 value transfer when charging changeFee ### Description ## Lines of code https://github.com/code-423n4/2023-04-caviar/blob/cd8a92667bcb6657f70657183769c244d04c015c/src/PrivatePool.sol#L423 https://github.com/code-423n4/2023-04-caviar/blob/cd8a92667bcb66...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
reentrancy
true
false
## High: reentrancy attack during `mint()` function in Position contract which can lead to removing of the other user's limit orders or stealing contract funds because initId is set low value ### Description Function `Position.mint()` has been used in `initiateLimitOrder()` and `initiateMarketOrder()` and it doesn't 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: Lack of validation of the curve in NonlinearDutchDecayLib ### Description The `NonlinearDutchDecay.curve` is a user input parameter signed by the user. However, there are limited validations for the `relativeAmount` and `relativeBlocks` parameters. The only check is that the `relativeAmount` length is less tha...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Changing treasury owner through transferOwnership() can break Governer.sol and Auction.sol ### Description ## Lines of code https://github.com/code-423n4/2022-09-nouns-builder/blob/7e9fddbbacdd7d7812e912a369cfd862ee67dc03/src/governance/governor/Governor.sol#L21 https://github.com/code-423n4/2022-09-nouns-...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: PERFECTLY MATCHING AN ORDER AND THEN CANCELING CAN LEAD TO THE POINTER BEING 0 WITH REMAINING ORDERS ### Description It was discovered that it was possible to set to 0 the `inPtr` and `outPtr` variables when the last order matched had the exact amount of available ether left to cover the remaining match amoun...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
flash-loan
true
false
## Low: Undocumented function parameters ### Description There are multiple functions in the codebase where parameters got added, but their meaning was not documented in the function docs: - `BorrowLogic.executeSwapBorrowRateMode` added `address user`. - `ValidationLogic.validateSupply` added `DataTypes.ReserveData 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: Possible out-of-bounds write in strncpy function in Stylus C SDK ### Description The `strncpy` function defined in the Stylus C SDK writes past the destination string when the source string (`src`) is shorter than the number of bytes (`num`) to write to the destination string (Figure 28.1). This causes anot...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The Contract Should Approve(0) first ### Description Some tokens (like USDT L199) do not work when changing the allowance from an existing non-zero allowance value. They must first be approved by zero and then the actual allowance must be approved. IERC20(token).approve(address(operator), 0); IERC20(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
low
access-control
true
false
## Low: `ContractURIUpdated` Event Does Not Follow EIP-7572 Standard ### Description The `ContractURIUpdated` event in the `MonsterNFT` contract does not follow the standard defined in [eip-7572](https://eips.ethereum.org/EIPS/eip-7572). The current implementation uses `event ContractURIUpdated(string uri);` while 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
other
false
false
## Low: Presence Of Removed Function ### Description ## id_leak_verifier Overview In `id_leak_verifier`, `is_call_safe_to_leak` is responsible for verifying if leaking an object’s identifier is safe. In the code, a legacy option named `delete_child_object` exists that was utilized in the past but was removed in a 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
gas
other
false
false
## Gas: `LibTokenSilo::stemTipForToken` calculated multiple times with same parameter ### Description `LibTokenSilo::stemTipForToken` is calculated multiple times with the same [parameter](https://github.com/BeanstalkFarms/Beanstalk/blob/dfb418d185cd93eef08168ccaffe9de86bc1f062/protocol/contracts/libraries/Silo/LibSil...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Oracle Confidence Checks ### Description ## Oracle Confidence Value Analysis High oracle confidence values indicate that providers disagree on the actual price. Pyth, for example, represents confidence as the difference between the 25/75th quartile and the median price. In this case, it’s safer to ignore 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
signature
false
false
## Low: Deprecated methods in candy machine UI ### Description ## Candy Machine UI Repository In the `candy-machine-ui` repository, `src/connection.tsx` uses deprecated connection methods from `web3.js`. The deprecated methods are: 1. **getParsedConfirmedTransaction** 2. **getRecentBlockhash** 3. **setSigners** ## ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
true
false
## Low: On L1Splitter anyone can perform an L1 withdrawal just before the configuration functions are about to get executed ### Description The `L1Splitter` contract includes the following configuration functions: - `updateL1Recipient` - `updateFeeDisbursementInterval` - `updateMinWithdrawalAmount` These functions all...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users' funds may be temporarily frozen when the treasury lacks funds ### Description In the LPExternalRequestsManager contract, when users request burns, the requests are first processed and then confirmed by the SERVICE_ROLE: ```solidity function processBurns( bytes32 _idempotencyKey, uint256[] call...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
true
false
## Gas: Using storage instead of memory for structs/arrays saves gas ### Description When fetching data from a storage location, assigning the data to a memory variable causes all fields of the struct/array to be read from storage, which incurs a Gcoldsload (2100 gas) for each field of the struct/array. If the fields ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Not informative names of functions and variables ### Description For the function names `forceD ()` and `forceW ()`, it is not clear what these functions are used for. It is at the following lines: - https://github.com/orbxball/stablecoins-3pool/blob/adeb776933c6cb3b8306239cc3357d4c6239a88d/contracts/StrategyD...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Upgradeable contracts are missing storage \_\_gap ### Description In-scope there are upgradeable contracts, and therefore, it is recommended to use the `__gap` state variable to ensure that the state of the contract will be preserved across upgrades. In any of the upgradeable contracts, neither on their `Stor...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Modifier makes it expensive since we end up reading state twice (Saves 1197 Gas on average from the tests) ### Description https://github.com/code-423n4/2023-10-ethena/blob/ee67d9b542642c9757a6b826c82d0cae60256509/contracts/EthenaMinting.sol#L162-L174 | | Min | Average | Median | Max | | ------ | --- | --...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Duplicate code ### Description Duplicate code, i.e. using the same code structures in several places. Combining these structures will improve your code. The use of duplicate code structures impairs the perception of the program logic and can easily lead to errors in subsequent code edits. Duplicate code violat...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary operations in revokeVotes ### Description The [`revokeVotes`](https://github.com/celo-org/celo-monorepo/blob/f64b4c5b5228ecbf41e3e7cfdbb8c0e9a983eea2/packages/protocol/contracts/governance/Governance.sol#L672) function is used to set a voters `referendumVotes` for a proposal [to zero](https://githu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Code Obfuscation ### Description ## Protecting Business and Security Logic It is important to ensure that all business and security logic is not in a human-readable format when decompiled through third-party sources. The app code and compiled binaries may be reverse-engineered, revealing strings, method and 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
false
false
## High: Purchaser of a lien token may not receive payments ### Description A purchaser who buys out an existing lien via `buyoutLien()` will not receive future payments made to that lien holder if the seller had changed the lien payee via `setPayee()` and if they do not change it themselves after buying. ### 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...
skyward_49k
medium
access-control
false
false
## Medium: Unpredictable behavior due to admin front running or general bad timing ### Description In several cases, the owner of deployed contracts can update or upgrade things in the system without warning. This has the potential to violate a security goal of the system. Specifically, contract owners (a 2/3 EOA Gn...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Condition never met ### Description **Description** TokenDistributor.sol, line 108, getNextEpochRewardsRate() if (epoch == 0) return MAX_BPS; The condition is never met. epoch is always set to at least 1. **Recommendation**: Сheck the value of the epoch and the condition and/or remove the condition.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
oracle
true
false
## Low: Remove commented out code ### Description [RRUtils.sol#L358-L364](https://github.com/code-423n4/2023-04-ens/blob/45ea10bacb2a398e14d711fe28d1738271cd7640/contracts/dnssec-oracle/RRUtils.sol#L358-L364)
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unhandled chainlink revert in case its multisigs block access to price feeds ### Description In some extreme cases, oracles can be taken offline or token prices can fall to zero. Therefore a call to `latestRoundData` could potentially revert and none of the circuit breakers would fallback to query any prices 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...
cyfrin_structured
critical
logic-error
true
false
## Critical: Hypervisor collateral redemption can cause vaults to become undercollateralized due to slippage ### Description When redeeming Hypervisor collateral, `SmartVaultV4::autoRedemption` performs a call to `SmartVaultYieldManager::quickWithdraw`: ```solidity if (_hypervisor != address(0)) { address _yieldM...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## High: Auction bid that partially pays back an expired lien will revert ### Description Auction bids will revert for a bid amount that does not fully pay back an expired lien. ### Impact Auction bids will revert for a bid amount that does not fully pay back an expired lien. If a lien is only partially paid back, it...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Incorrect Discriminator Size ### Description ## MultiSig Wallet Discriminator Size Issue The discriminator size used while creating the MultiSig wallet is incorrect [0]. The actual size of Anchor’s discriminator is 8 bytes. ## Code Snippet This is not a problem in the current state of the program due to 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
high
reentrancy
true
false
## High: Tokens could be sent / withdrawn multiple times by accident ### Description Functions `closeQuestPeriod()` and `closePartOfQuestPeriod()` have similar functionality but interfere with each other. 1. Suppose you have closed the first quest of a period via `closePartOfQuestPeriod()`. Now you cannot use `closeQ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
liquidation
false
false
## Medium: (Re-Audit) Liquidation Window Is Dangerously Small ### Description **Update** Liquidation can now be activated if the leftover collateral in GLP after paying back the loan is `30%` or less than the original collateral in GLP. The `30%` number can be increased to `50%`. We recommend deploying with a maximum ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
dos
true
false
## Low: Risk of denial of service caused by cra�ted RPC messages in canister_sandbox ### Description The `FrameDecoder::decode` function deserializes a length-prefixed object from a provided `BytesMut` (effectively a byte array buffer). The implementation is a state machine with two states (`FrameDecoderState::NoLengt...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Input Validation in StructPriceOracle ### Description **Severity**: Low **Status**: Acknowledged **Description** **Note**: Attacker = (Malicious governance) **Overview**: The StructPriceOracle contract is used to fetch the latest price of the given assets using Chainlink's price feed. The contrac...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
front-running
false
false
## Medium: Malicious Actors Can Prevent Non-Owner Distributions ### Description The mechanism that allows any user to distribute capital for a minipool can be subverted by a malicious actor. The `distributeBalance()` function is able to be called by users who have previously called `beginUserDistribute()`. This start...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Possible gas savings ### Description Function `verifyAsm` costs a lot of gas, so it's meaningful to place checks before that function. We can place check for `preclaimed < cumulativeAmount` https://github.com/1inch/cumulative-merkle-drop/blob/96fb63d0cbfea73603e7500961c71e8ab1fb8c10/contracts/CumulativeMerkleD...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: Missing Game status verification in `endGame` function ### Description The `endGame` function lacks a necessary check to verify if the game is currently in progress before proceeding to end it. This oversight allows for the possibility of ending a game multiple times or ending games that were never initialized...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Not using safe version of ERC20 transfer / transferFrom / approve can lead to wrong scenarios ### Description Some tokens (like ZRX) do not revert the transaction when the `transfer` / `transferFrom` fails and return false, which requires us to check the return value after calling the `transfer` / `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
low
access-control
false
false
## Low: Malicious actor can evade the `FULL_RESTRICTED_STAKER_ROLE` role ### Description The protocol has implemented the `FULL_RESTRICTED_STAKER_ROLE` role so that the `StakedUSDe` owner has authority over blacklisting addresses and then manipulating their balances. This mechanism is flawed and an attacker can bypass...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: L12] Not using mixed case for variables ### Description ###### Low In the assembly blocks of the [`BigNumber`](https://github.com/BeamNetwork/currency/blob/de81d9bad4195e03f07aedd2a6817f0cb04a8c8d/contracts/VDF/BigNumber.sol) [library](https://github.com/BeamNetwork/currency/blob/de81d9bad4195e03f07aedd2a681...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: No instructions on how to reproduce the SGX enclave build ### Description It is important for users to verify that the measured enclave was built from the source code, as the released enclaves are a black box that cannot be inspected by anyone besides the signer. While we confirmed that the SGX enclave build 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...
cyfrin_structured
low
integer-overflow
true
false
## Low: Extreme weight ratios combined with large balances can cause denial-of-service for unbalanced liquidity operations ### Description The weighted pool math can potentially overflow when making unbalanced liquidity adjustments to a pool tokens with very small weights and large balances. The issue occurs in `Weig...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: State variables only set in the constructor should be declared `immutable` ### Description 1. File: src/ERC20.sol (line [40](https://github.com/code-423n4/2022-04-axelar/blob/f1c8bfc16f82a27797f61cb3a310c0f936dce567/src/ERC20.sol#L40)) 2. File: src/ERC20.sol (line [41](https://github.com/code-423n4/2022-04...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Risk Management Improvements ### Description ## Analysis of Reserve Limitations There is an absence of deposit and borrow limits on the reserves. Without these limits, a user (potentially a whale with significant assets) may deposit an unusually large amount of a specific asset as collateral into the reserve ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Multi-Signature Wallets Cannot Recover Native Tokens ### Description The `recoverNative` function of the ChestManager contract uses Solidity's `.transfer()` method to send Ether (or native tokens) to recipients. ``` function recoverNative( uint256 amount ) external onlyRole(DEFAULT_ADMIN_ROLE) { payable(m...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
signature
false
false
## Low: Allow users to increment their nonce to void their signatures ### Description **Description:** Currently users are unable to void their signatures by incrementing their nonce, since `NoncesUpgradeable::_useNonce` is `internal` and only called during actions which verify user signatures. A user may want to inv...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
true
false
## Gas: Using `storage` instead of `memory` for structs/arrays saves gas ### Description When fetching data from a storage location, assigning the data to a `memory` variable causes all fields of the struct/array to be read from storage, which incurs a Gcoldsload (**2100 gas**) for *each* field of the struct/array. If...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Handling of Fee-on-Transfer Tokens ### Description The issue arises within the `receiveTokens` function of the `LOB` contract . There is a vulnerability related to the improper handling of fee-on-transfer tokens. The function does not verify that the balances have been adjusted as expected after 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
other
false
false
## Low: Event is missing `indexed` fields ### Description Each `event` should use three `indexed` fields if there are three or more fields *There are 12 instances of this issue.* **[moose-code (judge) commented](https://github.com/code-423n4/2022-06-yieldy-findings/issues/235#issuecomment-1236821132):** > Low risk ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Long lines are not suitable for the ‘Solidity Style Guide’ ### Description `Bin.sol#L37` `Bin.sol#L40` `Bin.sol#L56` `Bin.sol#L84` `Bin.sol#L121` `Bin.sol#L146` `BinMap.sol#L41` `BinMap.sol#L75` `BinMap.sol#L41` `BinMath.sol#L121` `BinMath.sol#L134` `Delta.sol#L35` `Twa.sol#L32` `Factory.sol#L46` ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `++i` costs less gas than `i++`, especially when it's used in `for`-loops (`--i`/`i--` too) ### Description Saves **5 gas per loop** *There are 19 instances of this issue:* `PoolInspector.sol#L30` `Pool.sol#L127` `Multicall.sol#L13`
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing `prevAgentId`update in `promptMulti()` function may cause token loss by transferring to `address(0)` ### Description ### Finding description The `promptMulti()` function attempts to optimize token transfers by caching `agentTba` when the `agentId` remains unchanged. However, it fails to update `prevA...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
true
false
## Low: EVC operators can redirect payout funds to arbitrary addresses ### Description _Resolved_ Users who grant EVC operator permissions allow those operators to claim payouts on their behalf and redirect the funds to any address. When an operator calls `AmpleEarn.claimPayout()` through the EVC, the `_msgSender()` ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 steal funds from the Option contract before they are used ### Description The [`take` function](https://github.com/primitivefinance/primitive-protocol/blob/78a8e64b7618e9199203ab84042876c580ae1e90/packages/primitive-contracts/contracts/option/primitives/Option.sol#L102) of the `Option` contract is ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
liquidation
true
false
## Gas: Cache storage variables in `liquidatePosition()` ### Description https://github.com/code-423n4/2023-12-particle/blob/a3af40839b24aa13f5764d4f84933dbfa8bc8134/contracts/protocol/ParticlePositionManager.sol#L350 The implementation of `liquidatePosition()` reads the `LIQUIDATION_REWARD_FACTOR` storage variable 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
other
true
false
## Low: Expired locks can bypass expiry restriction via `split()`, regaining voting power ### Description _Resolved_ In the `VotingEscrow` contract, the `increase_unlock_time()` function is designed to allow lock owners to extend the lock duration, thereby increasing their voting power. However, it includes an import...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
oracle
false
false
## High: Incorrect Price Consultation Results ### Description _Submitted by leastwood_ #### Impact The `TwapOracle.consult()` function iterates over all token pairs which belong to either `VADER` or USDV\` and then calculates the price of the respective asset by using both UniswapV2 and Chainlink price data. This he...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
other
true
false
## Medium: Referral Incentives Disabled for All Legitimate Users During Any Liquidation ### Description Once the engine detects any instrument that requires liquidation (`is_long_margin_call` or `is_short_margin_call`), the `margin_call` flag is set to true for every subsequent `new_perp_order`. This flag is passed un...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
oracle
true
false
## Medium: Re-adding assets to the omnipool can cause a problem with the oracle ### Description If an asset is removed from the Omnipool, all of its data will be deleted from the Omnipool. However, the data from the asset remains in the Oracle and is not deleted there. The Oracle then continues to store the data of 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
access-control
true
false
## Low: Use Modifier For Better Readability And Code Reuse ### Description To improve readability and code reuse, a `onlyOwner` modifer can be defined instead of performing a manual conditional check `if (owner != msg.sender) revert NotOwner(owner, msg.sender);` within the following affected functions: * [`Vault.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
low
other
true
false
## Low: Interest and reward fee rates are back propagated when changed ### Description Interest and reward fee rates are applied backwards when changed, i.e. new fee rates are applied to the periods where old fee rates were active: ### Recommendation Consider making the fee rates immutable fields of the PendleYieldTo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Deleting a struct is cheaper than creating a new struct with null values. (1 instances) ### Description Deployment Gas Saved: **4 207** Method Call Gas Saved: **40** * src/policies/Governance.sol:[288](https://github.com/code-423n4/2022-08-olympus/blob/2a0b515012b4a40076f6eac487f7816aafb8724a/src/policies/Go...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
token
true
false
## Low: Unused response parameter should be removed ### Description The `_estimatedCollateralValueUSD` parameter decoded from the Chainlink Functions response and passed as an argument to `AutoRedemption::legacyAutoRedemption` is not used and can be removed: ```solidity (uint256 _tokenID, address _token, uint256 _est...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 `DepotFacet` contract uses an incorrect `PIPELINE` address. ### Description The `DepotFacet` contract uses an incorrect `PIPELINE` address. ### Impact Multiple functions of the `DepotFacet` contract wouldn't work properly.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect `symbol` name for pair token ### Description The symbol name for the ERC20 token of V2 Pair is incorrect. It can confuse users when the symbol name is used for display on the frontend or explorer.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Proper use of get as a function name prefix ### Description Clear function names can increase readability. Follow a standard convertion function names such as using get for getter (view/pure) functions. Instances:
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Short positions can be burned while holding collateral ### Description Users can permanently lose a portion of their collateral due to a malicious attacker or their own mistake. ### Vulnerability Details In the `ShortToken` contract, `adjustPosition()` is used to handle changes to a short position's short 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...
cyfrin_structured
low
signature
true
false
## Low: Prefer `calldata` to `memory` for external read-only inputs ### Description Prefer `calldata` to `memory` for external read-only inputs: ```diff - function mintWithTerms(bytes memory signature) external payable returns (uint256 tokenId) { + function mintWithTerms(bytes calldata signature) external payable ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `matchOrders` affected if withdrawals exceed the global limit ### Description **Severity** **Impact:** High **Likelihood:** Low **Description** Within the `AccountCollateral::updateBalance` function, a validation was added to check that withdrawals do not exceed a global percentage for each X period 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
high
rounding
true
false
## High: There are multiple issues with the decimal conversions between the vault and the strategy ### Description ### Finding description and impact The `StrategyLeverage` contract has multiple incorrect decimal handling issues, causing the system to not support tokens with decimals other than 18. ### Proof of Conc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Undermining the fairness of the protocol in `swapSource()` and possibilities for stealing a jackpot ### Description This issue will demonstrate how the current implementation of `swapSource()` and `retry()` goes directly against Chainlink's Security Consideration of **Not re-requesting randomness** (https:/...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: [13] The following protection code in `fungible\keeper\evm_hooks.go` is totally redundant ### Description The following protection code in `fungible\keeper\evm_hooks.go` is totally redundant as if you trace back where hooks are called (with `PostTxProcessing`) in **ethermint@v0.22.0::state_transition.go** you ...
0