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
high
other
true
false
## High: MintbaseStore Funds Drainage Through Revoke ### Description Upon approval revokes, `AccountIds` are removed from `token.approval` which reduces storage usage. Then, `MintbaseStore` attempts to refund the user with the storage fees previously deposited when calling `nft_approve`. However, since the highlighted...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 implementation of APWine and Tempus `redeem` ### Description _Submitted by shenwilly, also found by cccz, Chom, datapunk, kenzo, Picodes, and unforgiven_ Redeeming APWine and Tempus PT will always fail, causing a portion of iPT to not be able to be redeemed for the underlying token. The issue is c...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
front-running
false
false
## Low: Potential for hash collisions with frontrun protection ### Description Within `AgentRegistryCore.sol`, calls to the [`frontrunProtected` modifier](https://github.com/forta-protocol/forta-token/blob/92d7a7ddd6672a7530a4bfc532d0d697e7f12744/contracts/components/agents/AgentRegistryCore.sol#L38) utilize `abi.enco...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Ability to steal user funds and increase collateral share infinitely in BigBang and Singularity ### Description The `addCollateral` methods in both BigBang and Singularity contracts allow the share parameter to be passed as `0`. When `share` is `0`, the equivalent amount of shares is calculated using the Yiel...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: More efficient way of checking for empty string in `CommonUtils::isEmptyString` ### Description More efficient way of checking for empty string in `CommonUtils::isEmptyString`: ```solidity function isEmptyString(string memory _str) internal pure returns (bool) { return bytes(_str).length == 0; } ```
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
token
false
false
## Low: decimals field should be uint8 ### Description The decimals field of the token is defined as `uint256` both in [`CrowdsaleToken`](https://github.com/CoinFabrik/ico/blob/142f43f3bec4afd0ffff3fce06946cf67cb0272f/contracts/CrowdsaleToken.sol#L31) and [`FractionalERC20`](https://github.com/CoinFabrik/ico/blob/142f...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `minimum_deposit`<`deposit_cap` Is Not Enforced ### Description **Update** Marked as "Fixed" by the client. Addressed in: `9a73e603a3fa32b85e58641ca563f221ff741b91`. The client provided the following explanation: > Added the suggested validation. **File(s) affected:**`programs/liquid-staking/src/instructions...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Risk of Reentrancy During Flash Swap ### Description ## Vulnerability Report In the pool, there is a lack of a reentrancy guard during flash swap operations, allowing potential reentrant calls to be made via other functions, which might result in the manipulation of the pool values. ## Remediation Add a reen...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Any user can redeem from deprecated ERC-721 adapters ### Description _Resolved_ The vault maintains a whitelist for redeemable ERC-721 adapters through `supportedRedeemableERC721Adapters` and the `redeemableERC721Adapters` array, with registration controlled by `registerRedeemableERC721Adapter` and removal by...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 comment ### Description Transfers the current balance if there is less available, rather than the usual reverting 1. File: contracts/vToken.sol (line [216](https://github.com/code-423n4/2022-04-phuture/blob/594459d0865fb6603ba388b53f3f01648f5bb6fb/contracts/vToken.sol#L216))
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [11] Solmate safeTransfer and safeTransferFrom does not check the codesize of the token address, which may lead to fund loss ### Description Solmate safetransferFrom doesn’t check the existence of code at the token address, all contract below that use SafeTransferLib and all safeTransfer and safeTransferFrom 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
low
storage
false
false
## Low: Emit from/to ### Description Consider emitting the original CID in [`AddressRegistry.CIDNFTAdded`](https://github.com/code-423n4/2023-01-canto-identity/blob/dff8e74c54471f5f3b84c217848234d474477d82/src/AddressRegistry.sol#L48) for when a user overwrites a prior registration. This may add a little gas overhead,...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
signature
false
false
## Gas: Multiple address/ID mappings can be combined into a single mapping of an address/ID to a struct, where appropriate ### Description If both fields are accessed in the same function, can save ~42 gas per access due to not having to recalculate the key’s keccak256 hash (Gkeccak256 - 30 gas) and that calculation’s...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
true
false
## Gas: Function `transcoderWithHint()` can be more optimized (Save 4749 Gas on average) ### Description | | Min | Max | Avg | | | ------ | ------ | ------ | ------ | --- | | Before | - | - | 276355 | | | After | - | - | 271606 | | | | | | | | The require statement on line 499 makes a call to the funct...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `vestTokens` bug in `MultiFeeDistribution.sol` causes new incentives to erase previous incentives ### Description In `MultiFeeDistribution.sol`, the function `_notifyReward(address rewardToken, uint256 reward)` does not change `r.rewardPerTokenStored` and hence, relies on `_updateReward(address account)` to b...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
true
false
## Gas: Using storage instead of memory for structs/arrays saves gas ### Description Using a memory pointer for a storage struct/array will effectively load all the fields of that data type from storage (SLOAD) into memory (MSTORE). Using a storage pointer will allow you to read specific fields from storage as you nee...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
rounding
true
false
## Medium: Incorrect use of `u64` for arg `amount` in `withdrawtolandlord` can cause withdrawal failure ### Description ### Impact The use of `u64` for token amount in the `withdrawtolandlord` function can lead to failed withdrawals when handling tokens with 18 decimals, limiting the landlord’s ability to withdraw 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
initialization
true
false
## Low: Unoptimized for loop declaration ### Description There is an instance of an unoptimized `for` loop that may incur in higher gas costs than necessary. ### Recommendation Optimize the instance of a `for` loop, by not initializing `i` to its default value of `0`, using the pre-increment operator and `unchecked` ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
high
signature
true
false
## High: Auto redemption functionality broken by incorrect address passed to `SmartVaultV4::autoRedemption` ### Description `SmartVaultV4::autoRedemption` has the following signature: ```solidity function autoRedemption( address _swapRouterAddress, address _quoterAddress, address _collateralToken, byt...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: [02] `execute` function is defined as payable ### Description https://github.com/code-423n4/2024-06-krystal-defi/blob/main/src/V3Automation.sol The `execute` function includes the `payable` keyword but does not utilize ETH tokens within its logic.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `_voteSucceeded()` returns true when `againstVotes > forVotes` and vice versa ### Description As a result, voting process is broken, as it won't execute proposals with most of `forVotes`. Instead, it will execute proposals with most of `againstVotes`. ### Proof of Concept It returns whether number of votes ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [23] Deviations between Solidity compiler's checks and seaport's checks in `validateOrderParameters` ### Description **Context**: [Assertions.sol#L105](https://github.com/ProjectOpenSea/seaport/blob/878121af65be408462f3eae04ab81018b4e199da/contracts/lib/Assertions.sol#L105) Some comments on comparison between...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Subscribed message may get lost Severity: Medium ### Description **Description:** The subscribe function will stop if there is any error while sending the pubsub\_msg. Restarting the subscribe function may take time Within that time all published events would get lost and wont be processed. **Recommend...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redundant Code ### Description **Update** Marked as "Acknowledged" by the client. The client provided the following explanation: > This function is mainly for rebase tokens. **Description:** When dealing with collateral redemption in the form of eTokens, the protocol often calles `CollateralManger.getShares(...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use assembly for loops ### Description We can use assembly to write a more gas efficient loop. See the [final diffs](https://gist.github.com/0xJCN/e7523b1e87e79e6eea8e865906e5fb17) for comments regarding the assembly code. Total Instances: `3` https://github.com/code-423n4/2023-04-ens/blob/main/contracts/dns...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Manually constructed storage slots can be chosen so that the pre-image of the hash is unknown ### Description In the codebase, some storage slots are manually constructed using `keccak256` hash of a string `xyz.astaria.`. The pre-images of these hashes are known. This can allow in the future for actors to find...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TransactionManager - Flawed shares arithmetic ✓ Fixed ### Description To support a wide variety of tokens, the `TransactionManager` uses a per-asset *shares system* to represent fractional ownership of the contract’s balance in a token. There are several flaws in the shares-related arithmetic, such as: 1. `...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
liquidation
false
false
## High: addPremium – A Back Runner May Cause an Insurance Holder to Lose Their Refunds by Calling addPremium Right After the Original Call ✓ Fixed ### Description `addPremium` is a public function that can be called by anyone and that distributes the weekly premium payments to the pool manager and the rest of the poo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Open TODOs ### Description Code architecture, incentives, and error handling/reporting questions/issues should be resolved before deployment 1. File: src/MintableCappedERC20.sol (line [30](https://github.com/code-423n4/2022-04-axelar/blob/f1c8bfc16f82a27797f61cb3a310c0f936dce567/src/MintableCappedERC20.sol#L...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: optimization suggestions. ### Description **Description** 1. StWSX.sol: deposit, line 129. Function deposit() contains a redundant check for an amount greater than 0. The validation is redundant since the next validation checks that the amount is greater than the minimum deposit amount, automatically excludin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
rounding
true
false
## Medium: The precision loss in the fee percentage for connecting offers results in the borrower paying less than the expected fee. ### Description Some of the borrowed principal tokens is charged as a fee for connecting transactions. The percentage of the fee is calculated according to `DebitaV3Aggregator.sol:391`. ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `websiteURL` should be set in the constructor ### Description The `websiteURL` [is set on the DAO](https://github.com/code-423n4/2024-01-salty/blob/53516c2cdfdfacb662cdea6417c52f23c94d5b5b/src/dao/DAO.sol#L150) only [after a ballot voting passes](https://github.com/code-423n4/2024-01-salty/blob/53516c2cdfdfacb...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
rounding
true
false
## Medium: Division precision loss in `createDistribution` function lead to incorrect distribution of rewards in `GammaRewarder.sol` ### Description The `createDistribution` function in the contract contains a potential vulnerability related to precision loss during division calculations, which could lead to incorrect...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `transferFrom()` Usage Reverts on Non-Standard ERC-20 Tokens ### Description **Update** Marked as "Fixed" by the client. Addressed in: `57ef66a4f13f4f0b1e7e58b355150d71d05f70f8`. The client provided the following explanation: > Replaced all raw `transferFrom()` calls with OpenZeppelin's `SafeERC20.safeTran...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of documentation is error-prone ### Description The overall codebase lacks code documentation, high-level description, and examples. As a result, the contracts are difficult to review and the likelihood of user mistakes is high. Several behaviors are not documented, including: - `VotingEscrow.withdraw(_v...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The lower total amount of tokens sold due to rounding ### Description The project targets the following maximum amount of tokens sold: - Tier 1: 220 M - Tier 2: 210 M - Tier 3: 206 M - Tier 4: 1,304 M - Bonus: 60 M This means that the maximum amount of tokens sold globally is 2,000 M. The maximum amount 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
other
false
false
## Low: Complex functions, repeating functionality ### Description **Severity**: Informational **Status**: Acknowledged The current function implementation is too complex and also often repeat the functionality already presented in other function. **Recommendation**: split the functionality into multiple functio...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
true
false
## Low: `TODO` resolution required for GSM proxy admin and unique interest rate strategy handling ### Description The following unresolved `TODOs` introduce crucial issues in deployment and configuration logic: 1. Hardcoded `address(0)` as a proxy admin in `DeployUsdxlUtils._deployGsm()`. Currently, the proxy admin 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
front-running
true
false
## Low: Risks with transaction reordering ### Description Throughout the codebase, there are opportunities to reorder transactions to maximize the borrowable amounts of the borrower, grief lender actions, or front-run borrow actions. - A user could monitor the mempool for a borrow action and deposit their own assets ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Miscellaneous Gearbox General Comments ### Description This section details miscellaneous findings in the `contracts` repository discovered by the testing team that do not have direct security implications: ### Recommendation The development team has acknowledged the comments detailed above, but is currently ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Using `>`/`>=` without specifying an upper bound is unsafe ### Description There _will_ be breaking changes in future versions of solidity, and at that point your code will no longer be compatable. While you may have the specific version to use in a configuration file, others that include your source files may...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Default variable declaration values are used during calculations ### Description [In the codebase of the project](https://github.com/holdefi/Holdefi/blob/f4df394d7cf6df347b1f1e9af8e2676c5933c2c9/contracts), there are several places in which the returned variable is declared in the function definition without 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
initialization
false
false
## Medium: Shadow factory does not work ### Description `onlyOwner` check in ShadowFactory is not initialized and thus has no owner set. Solady's `Ownable` does not set the owner automatically on the deployment and requires calling `_initializeOwner()`, the way it is done in NFTShadow, for instance. As a result, any ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Partial Withdrawers Suffer Double Fee Charging Due to State Mismanagement ### Description The vulnerability manifests in the interaction between `initiateWithdrawal()` and subsequent partial withdrawals via `redeem()`. When a user initiates withdrawal, the contract stores cumulative fee amounts in `userWithdr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
access-control
true
false
## High: Split ownership can be spoofed using `execCalls()` ### Description Because the `onlyOwner` modifier allows calls from `address(this)`, we are able to call `transferOwnership()` from the `execCalls()` function. Notably, once an `execCalls()` transaction has been started and the modifier has been passed, it ca...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
medium
oracle-manipulation
true
true
## Medium: Missing Chainlink oracle staleness check ### Description The `getPrice` function in `ChainlinkFeedLibrary` fetches the latest price from a Chainlink feed using `latestRoundData`, but does not check if the returned data is stale. Chainlink feeds can become stale if no new price updates have occurred for a si...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong mapping is passed to the event. ### Description **Severity**: Informational **Status**: Resolved **Description** TestStake::stake2()#1982-1983. The function performs staking of 'stakeToken2' and writes the information about stakes in the mapping 'stake2Details". However, when emitting the event, infor...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
dos
false
false
## Medium: Unbounded schnorrData in opPoke ### Description Invalid optimistic pokes should always be challengeable. It is important that the `opChallenge` call, which challenges a previous `schnorrData` submitted through `opPoke`, does not revert and that the gas cost does not exceed the block gas limit. Otherwise, th...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
cross-chain
true
false
## Gas: Not possible to send native via the `TransactionRelayer` to the target contract when executing `executeByInvestorWithBlockLimit` ### Description **Description:** `TransactionRelayer::executeByInvestorWithBlockLimit` makes an external call to a `destination` address, one of the input parameters of this 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
medium
initialization
false
false
## Medium: Initial Liquidity provider can bypass the withdrawal limit ### Description the initial liquidity provider can bypass maximum withdrawal limit and withdraw all the liquidity that he has leading to a rug pull. ### Impact a key invariant of the system gets breached by having the inital liquidity provider able...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: NatSpec docs are incomplete ### Description In almost all methods the NatSpec documentation is incomplete as it is missing parameters and return variables in it. NatSpec documentation is essential for better understanding of the code by developers and auditors and is strongly recommended. Please refer to 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
true
false
## Low: Use the same solidity version in all non-library/interface files ### Description 1. File: contracts/HolyPaladinToken.sol (line [2](https://github.com/code-423n4/2022-03-paladin/blob/9c26ec8556298fb1dc3cf71f471aadad3a5c74a0/contracts/HolyPaladinToken.sol#L2)) 2. File: contracts/PaladinRewardReserve.sol (lin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Variable can be marked as constant. ### Description **Description** Line 12. Variable ‘TOTAL_SUPPLY’ is never changed **Recommendation**: Make variable a constant.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
dos
false
false
## Medium: Denial of Service via setCoolDownInSecs() ### Description **Severity**: Medium **Status**: Resolved **Description** The setCoolDownInSecs() function can be used to change the coolDownInSecs variable to a very large value. This can be unfair, especially for the participants who had already locked their 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
overflow
false
false
## High: Byte-to-Bit Mismatch in Shift Operations ### Description In both [`modexpGasCost`](https://github.com/matter-labs/era-contracts/blob/cc1619cfb03cc19adb21a2071c89415cab1479e8/system-contracts/evm-emulator/EvmEmulatorFunctions.template.yul#L985) and [`mloadPotentiallyPaddedValue`](https://github.com/matter-labs...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
liquidation
false
false
## High: Missing Collection Check ### Description ## NFT Withdrawal Vulnerability In `withdraw_collateral_compressed` and `withdraw_collateral_legacy`, users do not have to specify the collection of the NFT they are withdrawing. Therefore, the order taker may deposit an NFT from a cheaper collection into the order 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
low
other
false
false
## Low: Strengthen Parameter Validation ### Description ## Staked SUI Vault Update The `create_staked_sui_vault` function calls `staked_sui_vault_state::create` to set parameters and utilizes multiple assert statements to validate the parameter values. Adding an assertion to check that `min_atomic_unstake_fee` is les...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: An Uninitialized Variable In The `MarketConfiguration::update` Function Causes The `PrepMarket::getIndexPrice` Function To Revert ### Description ## Summary: The `update` function within the `MarketConfiguration` library fails to update the `priceFeedHeartbeatSeconds` variable, which is essential for 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
rounding
false
false
## Medium: Non-Perpetual `ZCTokens` Are Deployed with an Incorrect Amount of Decimals ### Description **Update** Marked as "Fixed" by the client. Addressed in: `f533c161fa2ad8e1e120ae77ff4d8b8406e2087e`. The client provided the following explanation: > "To keep our protocol for a long time even with extremely high 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
medium
other
false
false
## Medium: DRY. Rewards calculation logic is placed in both methods claimReward and getTotalClaimable. ### Description Arkouda.sol, claimReward and getTotalClaimable **Recommendation**: Consider to invoke method getTotalClaimable inside of claimReward to reuse existent logic and decrease final byte code.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Removing L2Reward from allowedCreators will freeze all positions created through the contract ### Description If the `L2Reward` contract is removed from the `L2Staking` contract’s `allowedCreators` mapping, all positions that were created through `L2Reward` will be frozen until it is re-added. The owner 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
medium
token
true
false
## Medium: safeApprove indepositToken could revert for non-standard token like USDT ### Description Some non-standard tokens like USDT will revert when a contract or a user tries to approve an allowance when the spender allowance has already been set to a non-zero value. In the current code, we have not seen any real ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `block.timestamp` used as swap deadline offers no protection ### Description **Description:** `UniV3Utils::swap` performs a [swap](https://github.com/beefyfinance/experiments/blob/14a313b76888581b05d42b6f7b6097c79f3e65c6/contracts/interfaces/exchanges/UniV3Utils.sol#L20) with `deadline: block.timestamp`. Th...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
liquidation
true
false
## Low: Vault index missing in `NewRewardsBps` impedes reward tracking ### Description The `NewRewardsBps` event in `LiquidationManagerV2` is missing the vault index parameter, making it impossible to track reward configuration changes for specific vaults. To mitigate this issue, update the `NewRewardsBps` event to ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Misleading function name ### Description The `conditionPspDapiUpdate` function always updates the `dataPoints` storage variable (by calling `updateDapiWithBeacons`), even if the function returns false (i.e., the condition for updating the variable is not met). This contradicts the code comment and the behavior...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
rounding
true
false
## Medium: Accounts that claim incentives immediately before the migration will be stuck ### Description For accounts that existed before the migration to the new incentive calculation, the following happens when they claim incentives for the first time after the migration: First, the incentives that are still owed fr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Basic authentication used for loki integration ### Description The current implementation uses basic authentication for Loki integration, as indicated by the environment variable `LOKI_URL`. Basic authentication transmits credentials in plain text, which poses significant security risks, especially in producti...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
front-running
true
false
## High: Incorrect inAmount Passed to the Order in StarBaseDCA ✓ Fixed ### Description In the `StarBaseDCA` contract, there is an `Order` struct designed to be executed `numberOfTrade` times, with the total amount of principal in the order represented by the `inAmount` variable. The StarBase team has confirmed that `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
initialization
false
false
## Low: MISSING ZERO ADDRESS CHECK ### Description The constructor of the `AllocationVester` contract is missing address validation. The `distributionToken` parameter should be checked to be non-zero. This is considered a best practice. Code Location ------------- ### Recommendation \*\*SOLVED: \*\* The `Pangolin Te...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `get_cost_amount` allows unlimited free domain registrations ### Description The `get_cost_amount` function unintentionally sets the price for domain names of length greater than or equal to 7 to zero. This behavior is due to the following code logic: Here, `FREE_LENGTH` is defined as `7`. When the length...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
overflow
true
false
## Low: Safe maths utilized in for-loop ### Description **Severity**: Informational **Status**: Resolved **Location**: PairInfos.sol The default safe math operation in solidity versions ^0.8.x incurs extra gas overhead due to it requiring more computation. The following operations in functions (`setPairParams`, `ad...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: level reentrancy ### Description **Description** Vesting.sol, line 559, removeTokenGrant() External call to the token is performed before the storage clean up. The best practices is to prepare all storage operations before the transfer is performed. Thus, in case of further development and change of the 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
initialization
false
false
## Low: Missing parent initializer call in SNst ### Description Upgradeable contracts require replacing the constructor with an initializer function for the implementation contract. The `initialize` function should call the `initialize` functions of the inherited parent contracts. > "Constructors are replaced by inte...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
true
## Low: `TokenLocker::withdrawWithPenalty` doesn't reset account bitfield when dust handling results in no remaining locked tokens ### Description When users withdraw their locked tokens using `TokenLocker::withdrawWithPenalty`, if after the [dust handling](https://github.com/Bima-Labs/bima-v1-core/blob/09461f0d22556e...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Parallel Operations Over Proposals Lead To Race Conditions ### Description The functions `suggestNewPendingWork` and `handleJobRequest` within the `Service` class are integral to handling proposals within a consensus-based system. Both functions operate concurrently and access shared resources, such as `s.pro...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
cross-chain
false
false
## High: Off-chain worker depends on a single Ethereum data source ### Description The Polkaswap system uses a single source of truth to fetch Ethereum events from the Ethereum bridge contract. There is no mechanism for including additional Ethereum data sources. If this Ethereum data source experienced an outage, 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
access-control
true
false
## Low: Unauthorized Vote Casting Vulnerability ### Description The `recordVote` function allows recording a vote for a given proposal. However, it lacks a restriction ensuring that only the voter themselves can cast their vote. This opens a potential vulnerability where a malicious user could call this function on 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
medium
storage
true
false
## Medium: Hardcoded Operator Limit Logic ### Description The contract defines some hardcoded limits which is not the right approach for upgradeable contracts and opens doors for accidental mistakes, if not handled with care. The operators for the current version are limited to 1. If the auditee team decides to open...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
access-control
true
false
## High: Trades are vulnerable to sandwich attacks ### Description The `swapToNative` function does not allow users to specify the `minAmountOut` parameter of `swapExactTokensForETH`, which indicates the minimum amount of ETH that a user will receive from a trade. Instead, the value is hard-coded to zero, meaning that...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing slippage protection for rewards swap ### Description In `FujiVaultFTM.harvestRewards` a swap transaction is generated using a call to `SwapperFTM.getSwapTransaction`. In all relevant scenarios, this call uses a minimum output amount of zero, which de-facto deactivates slippage checks. Most values fr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Misuse of Administrative Privileges ### Description **Severity** : Low **Status**: Acknowledged **Description**: The contract assigns significant control to the pool administrator (`POOL_ADMIN_ROLE`), including the ability to add new pools, close existing pools, and set the yield APY for pools. While 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
other
false
false
## Low: Silent fail on no whitelisting ### Description There is no logging on the early return condition of no whitelisted channels found for the destination channel. Logging this return condition would provide a data point for observability, supporting system monitoring and issue diagnosis. ### Recommended Mitigati...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
false
## Medium: `depositWithPermit` and `mintWithPermit` are allowed to be called by the permit creator only ### Description Functions `depositWithPermit` and `mintWithPermit` are allowed to be called by the permit creator only. Not any other contracts will be able to execute these function on behalf of signer. ### Proof ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
token
true
false
## High: 8] Utilisation ratio can exceed 100% to inflate fees and exploit the sponsor ### Description **Severity:** High **Path:** FeeCalculator.sol:calculateFee#L55-L84 **Description:** The `calculateFee` function calculates the required fee for RushERC20 deployment by taking the liquidity amount, duration and util...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Double-floor rounding in borrow path slightly favors users ### Description _Resolved_ In the borrow flow, both conversions use floor rounding, which (a) slightly underestimates current debt and (b) mints slightly fewer debt shares for the same borrowed amount (≤1 wei USG per operation). While economically neg...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: package.json - Invalid License ✓ Fixed ### Description The license field in `package.json` is invalid. **snap/package.json:L9** ``` "license": "(MIT-0 OR Apache-2.0)", ``` ### Recommendation fixed in [ethereum-push-notification-service/push-protocol-snaps@1a6a32ef760088ca59f73e555f41b5b5d871f761](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...
solodit_api
medium
initialization
true
true
<https://github.com/code-423n4/2022-12-gogopool/blob/main/contracts/contract/MinipoolManager.sol#L196-L269><br> <https://github.com/code-423n4/2022-12-gogopool/blob/main/contracts/contract/MinipoolManager.sol#L560> When a node operator creates a minipool they pass which duration they want to stake for. There is no va...
Code4rena
3
GoGoPool
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
liquidation
false
false
## High: Added Liquidation Fee Could Turn the LoC Insolvent ### Description The liquidation reward is calculated slightly differently for insolvent and solvent LoCs, resulting in a slightly lower fee percentage in the insolvent case. This small inconsistency is considered acceptable due to the special circumstances 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
gas
other
true
false
## Gas: Keep function argument in calldata ### Description Marking function arguments to memory wastes gas since data is always copied from calldata to memory. If possible, it’s better to avoid this copy to save gas. Both of these functions copy `commandParams` to memory when just `commandParams[0]` is used by the 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
token
false
false
## Low: Need validation in Wave contract constructor ### Description **Severity**: Informational **Status**: Resolved **Description** In Contract WaveContract.sol, the constructor only checks if the token is address(0) but doesn’t revert. In case It is address(0), it can lead to the claim(...) transaction being rev...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: MINTER_BURNER_ROLE can burn any amount of Yieldy from an arbitrary address ### Description _Submitted by 0x1f8b_ Using the `burn()` function of `Yieldy`, an address with `MINTER_BURNER_ROLE` can burn an arbitrary amount of tokens from any address. We believe this is unnecessary and poses a serious central...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Events coverage, configuration checks, variable naming ### Description Events can be added and expanded/indexed/fixed, and names updated per recommendations below. ### Recommendation 1. **Consider adding the asset address or v3 vault id to the events:** - **MarketplaceUniversalRouterZap.sol**: Lines 58-98 ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Annualized fee APY dependence on the frequency of executing a function ### Description _Submitted by Czar102_ #### Impact The APY of the annualized fee is dependent on the frequency of the execution of the [`BasketFacet::chargeOutstandingAnnualizedFee()`](https://github.com/code-423n4/2021-12-amun/blob/ma...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incomplete interfaces ### Description The [`IRouter` interface](https://github.com/forta-protocol/forta-token/blob/92d7a7ddd6672a7530a4bfc532d0d697e7f12744/contracts/components/router/IRouter.sol#L4) should have an externally accessed function which is not being declared in the interface, the [`version` getter...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Oracle Upgrades Can Make Prices Inaccessible ### Description New request IDs are calculated using the `requester` address. Similarly, `hasPrice` and `getPrice` use `msg.sender` as the `requester` to retrieve a price. As a result, if the `OptimisticOracleV2` implementation is upgraded in the future, the new 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
low
other
false
false
## Low: [06] ### Description Ownable smart contract is unnecessarily imported in [AccessProtected.sol](https://github.com/code-423n4/2022-09-vtvl/blob/f68b7f3e61dad0d873b5b5a1e8126b839afeab5f/contracts/AccessProtected.sol#L5) while it is never used. Unnecessary imports decreases the readability of smart contract code.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Function should be deleted, if a modifier already exists doing its job ### Description The function `requireNotPausedOrFrozen` is created only to hold the modifier notPausedOrFrozen. And for this purpose in some functions requireNotPausedOrFrozen is called in order to check if its paused or frozen. This functi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Commented out functions `updateUniswapRouter` and `updateUniswapFactory` in ApexMexMargin ### Description **Description** In contract Apex MexMargin, between lines 895-906, there are two functions named updateUniswapRouter and updateUniswapFactory, we would recommend to either delete them or uncomment them. ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Too low dust. ### Description **Description** claimRewards(), line 80. The contract utilizes low dust (1). Consider usage of a more realistic amount (e.g. 1e8). **Recommendation**: Consider increasing the dust amount.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Interest Accrual Mismatch ### Description ## Inconsistency in Flash Loan Interest Accrual There is an inconsistency in the accrual of interest across different pools when a user initiates and completes a flash loan. When a user starts a flash loan via `start_flashloan`, `accrue_interest(pool)` is called, a...
0