prompt
listlengths
2
2
source
stringclasses
3 values
severity
stringclasses
5 values
category
stringclasses
186 values
has_code
bool
2 classes
has_poc
bool
2 classes
reference_response
stringlengths
23
5k
firm
stringclasses
26 values
quality_score
float64
0
5
protocol
stringclasses
398 values
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Unnecessary gas consumption ### Description **Severity**: Informational **Status**: Resolved **Description** CommunityRound.sol, method: reserve(_request, _message, v, r, s), address of caller is being pushed into investorsList which is a private array of addresses, and it is not being read or used in any o...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Zero Amount Transfers when Claiming Fees ### Description **Update** Marked as "Fixed" by the client. Addressed in: `b166e5b`. The client provided the following explanation: _Added check `feeAmount > 0` before transfer in `receiveFees()`_ **File(s) affected:**`BatchTrade.sol` **Description:**`BatchTrade.recei...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: **Misleading error message [1]** ### Description **Description** In `SecondaryCollateralizationBWT.sol` file, in the constructor, there is a require statement: **Recommendation**: Replace **"WHITE TOKEN"** with **"BWT TOKEN"**.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
rounding
true
false
## Medium: Lack of liquidity inside StakingManager ### Description The exchange rate of kHYPE is calculated based on the total amounts of all StakingManagers in the system. ```solidity uint256 rewardsAmount = validatorManager.totalRewards(); uint256 slashingAmount = validatorManager.totalSlashing(); uint256 totalHYPE...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
cross-chain
false
false
## Low: Delivery of messages across chains ### Description LayerZero is used to transport messages cross-chain. If a compromise of LayerZero take place, the worst case scenario may include forgeries of Mozaic messages, causing havoc and possibly loss of funds.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Payment card authority could potentially bypass whitelist limits for jetton transfers ### Description The authority role in the treasure contract can use the `op::transfer` operation to bypass the jetton transfer destination checks performed in the `op::transfer_jettons` operation. This allows them to transfer...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
token
true
false
## Low: Inconsistent state updates when tokens are burned and/or transferred directly to the `DEAD_ADDRESS` ### Description **Description:** The following state updates are performed when batch burning tokens: Note how while the `_balances[owner]` state is decremented, that of `DEAD_ADDRESS` is not incremented despi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Error Case in `handle_burn_notification()` May Lead to Locked Funds for Caller and Incorrect Accounting ### Description **Update** Marked as "Fixed" by the client. Addressed in: `0e30d970d6f0ed06ed1e2ec95346d150f2e7d62d`. **File(s) affected:**`pool.func` **Description:** If the caller provides a non...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `PARENT_CANNOT_CONTROL` can be bypassed by maliciously unwrapping parent node ### Description [NameWrapper.sol#L356](https://github.com/code-423n4/2022-07-ens/blob/ff6e59b9415d0ead7daf31c2ed06e86d9061ae22/contracts/wrapper/NameWrapper.sol#L356) [NameWrapper.sol#L295](https://github.com/code-423n4/2022-07-ens/...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Not considering fees when wrapping mtOFTs leads to DoS in leverage executors ### Description When wrapping mtOFTs in leverage executors, fees are not considered, making calls always revert because the obtained assets amount is always smaller than expected. ### Impact High. The core functionality of leverag...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Alignment Between Commission Receivers & Stakeholders upon Policy Creation ### Description **Update** Marked as "Acknowledged" by the client. The client provided the following explanation: We purposely added separate inputs for comission receivers and stakeholders because they can be different. These p...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
true
false
## Low: If an adopted token and its canonical live on the same domain the cap for the custodied amount is applied for each of those tokens ### Description If `_local` is an adopted asset that lives on its canonical's original chain, then we are comparing the to-be-updated balance of this contract (`custodied`) with `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...
solodit_api
high
Don't update state
true
true
## Lines of code https://github.com/code-423n4/2022-11-stakehouse/blob/4b6828e9c807f2f7c569e6d721ca1289f7cf7112/contracts/liquid-staking/GiantMevAndFeesPool.sol#L170-L173 ## Vulnerability details ## Impact When a user transfers away GiantMevAndFeesPool tokens, the pool's claimed[] computed is left unchanged and sti...
Code4rena
5
Stakehouse Protocol
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Combining shorts can incorrectly reset the shorts flag ### Description The protocol allows users to combine multiple short positions into one as long as the combined short stays above the primary collateral ratio. The function is also able to reset an active flag from any of the combined shorts if the final...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: beforeTokenTransfer called with wrong parameters in LBToken._burn ### Description ## Lines of code https://github.com/code-423n4/2022-10-traderjoe/blob/37258d595d596c195507234f795fa34e319b0a68/src/LBToken.sol#L237 ## Vulnerability details ## Impact In `LBToken._burn`, the `_beforeTokenTransfer` hook 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
initialization
true
false
## Gas: `++i` costs less gas compared to `i++` or `i += 1` ### Description `++i` costs less gas compared to `i++` or `i += 1` for unsigned integer, as pre-increment is cheaper (about 5 gas per iteration). This statement is true even with the optimizer enabled. `i++` increments `i` and returns the initial value of `i`...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: [07] Challenges and Strategies in Managing Voting Participation in Growing Communities ### Description As communities involved in cultural indexing and art piece voting grow, they face the challenge of declining active voter participation, which can hinder critical processes such as achieving quorum. 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
true
false
## Low: Inconsistent spacing in comments ### Description Some lines use `// x` and some use `//x`. The instances below point out the usages that don't follow the majority, within each file *There are 3 instances of this issue:* https://github.com/code-423n4/2022-05-backd/blob/2a5664d35cde5b036074edef3c1369b984d10010...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
true
false
## Low: Missing cardinality check in function read() ### Description There is 1 instance of this issue: https://github.com/open-dollar/od-contracts/blob/f4f0246bb26277249c1d5afe6201d4d9096e52e6/src/contracts/oracles/CamelotRelayer.sol#L91C1-L101C4 On Line 93, the comment mentions that the read() function should reve...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No restriction on emergency withdrawal of `RESOLV` staking tokens ### Description `ResolvStaking` and `ResolvStakingSilo` have a function `emergencyWithdrawERC20()`, which allows the admin to withdraw `RESOLV` tokens from the contract. - https://github.com/resolv-im/resolv-contracts/blob/530d997b010b803691abab...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
overflow
true
false
## Gas: Use unchecked{} whenever underflow not possible (Instances Missed by bot)(Gas Saved ~320 Gas) ### Description **Note: Analyzer only talks about overflow errors so these underflow related instances also not covered by that** ### Total Gas Saved : ~320 GAS in 2 Instances. Because of previous condition check 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
low
cross-chain
false
false
## Low: User Can Derive Call to Be on Behalf of the L1ScrollMessenger ### Description The [`L1ScrollMessenger` contract](https://github.com/scroll-tech/scroll/blob/3bc8a3f5c6ac816ddffadca41024331dcf4d3064/contracts/src/L1/L1ScrollMessenger.sol#L28) enables users to [send messages](https://github.com/scroll-tech/scroll...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
cross-chain
true
false
## Low: Potential for Conflicting Token Registrations in OriginalTokenBridge Contract ### Description **Severity**: Informational **Status**: Acknowledged **Location**: OriginalTokenBridge.sol **Description** The OriginalTokenBridge contract contains three separate token registration functions: registerToken, regi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TOKEN ROLES CAN BE ADDED MULTIPLE TIMES ### Description It was identified that the same allowed role can be added to the asset token multiple times. This might result in unexpected behavior, for example, in a deadlock situation where removing the roles would not be possible because of an `Index out of range` e...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: Buyouts of shorter duration liens can lead to the loss of borrower funds ### Description Liens whose duration is equal to (or maybe less than) `minDurationIncrease` cannot be bought out to be replaced by newer liens with lower interest rates but the same duration. This locks the borrower out of better-terme...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `override` function arguments that are unused should have the variable name removed or commented out to avoid compiler warnings ### Description *There is 1 instance of this issue:*
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Fix Invalid Nameserver Configuration ### Description WHOIS data for Thala.fi revealed two valid Vercel nameservers and one invalid gitbook.io entry: ### Recommendation Remove the invalid gitbook.io nameserver entry through the domain management interface and verify that only the required Vercel nameservers re...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
access-control
false
false
## High: Multiple Authentication Bypass Mechanisms Increase Risk of Misconfiguration ### Description **Update** Marked as "Fixed" by the client. Addressed in: `6bb6183c1cfaac59c98b31cebd1113836449d702`. Additional fix in: `f63cc429f04754d9adc1d2613388cee5cc67861a`. The client provided the following explanation: > Re...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
overflow
true
false
## High: Failure To Validate AMM Configuration ### Description ## Contract Validation Issues in AMM Configuration `contract::instantiate` fails to validate `quote_decimals`, `base_decimals`, and `market_id` in the AMM configuration for a launchpad. If the `market_id` does not correctly correspond to the specified `...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 `withdrawRewards()` may lead to inaccuracy in `delayedRewards` if there's no withdrawal to process ### Description **Description:** In the `CasimirManager`, the `withdrawRewards()` function can be used by the reporter to process swept validator rewards. The reporter must provide `WithdrawalProofs`, wh...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [03] Borrowers would pay lesser APR in some supported assets ### Description ### Proof of Concept First, per the readMe, we should assume rebasing tokens are in scope, see https://github.com/code-423n4/2024-08-wildcat/blob/fe746cc0fbedc4447a981a50e6ba4c95f98b9fe1/README.md#L262 Where as this integration 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
high
token
false
false
## High: cannot forward extra rewards from both OCY_Convex to OCT_YDL. ### Description Convex specifies `rewardContract` to be a `VirtualBalanceRewardPool`, but all three OCY_Convex uses it as a ERC20 token, which make it impossible to claim extra rewards and forward them to the OCT_YDL. ### Impact Current OCY_Convex...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Collision between constants ### Description The [`NS_POOL_MAX_STAKE`](https://github.com/neptune-mutual-blue/protocol/blob/73fc82fbe0d1388867b7df669983fe42760daeb1/contracts/libraries/StakingPoolCoreLibV1.sol#L27) and [`NS_POOL_REWARD_TOKEN`](https://github.com/neptune-mutual-blue/protocol/blob/73fc82fbe0d1388...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 `withdrawFees` and `withdrawRakeback` functions are not following the decimal notation from the rest of functions, which may lead to an incorrect usage. ### Description **Severity**: Low **Status**: Resolved **Description** The `withdrawFees()` and `withdrawRakeback()` functions within the `Treasury.so...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
true
false
## High: Missing validation of vesting wallets in `EscrowManager.createLock()` ### Description `EscrowManager.createLock()` lacks whitelist verification for the `vestingWallets_` parameter. This allows an attacker to use the same "poisoned" vesting wallet multiple times to artificially increase voting power in the sys...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Missing Two-Step Ownership Transfer ### Description The owner of **CryptoLegacy** might make a mistake when transferring ownership. It's safer to use a two-step ownership transfer process. ### Recommendation We recommend using `Ownable2Step` from OpenZeppelin. > **Client's Commentary:** > https://github.com/...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Input Validation ### Description **Update** The client has implemented only several of the recommended checks, however we find their reasoning for not implementing the others to be sufficient. **Update** Marked as "Fixed" by the client. Addressed in: `99c87d3361289dc1b84b4cbef008f3c37be9c5bb`. The cl...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Refactor functions with events which emit both new and old values ### Description **Files:** `StateTransitionManager.sol`, `Admin.sol` [File: code/contracts/ethereum/contracts/state-transition/chain-deps/facets/Admin.sol](https://github.com/code-423n4/2024-03-zksync/blob/main/code/contracts/ethereum/contracts...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Typos and Bad NATSPEC ### Description We have identified the following typos/NATSPEC problems: ``` AccessControlled.sol 29: `NewAccessControlManager` should be `NewAccessControllManager` Accounting.sol: 66: `InvalidNavSpit` should be `InvalidNavSplit` ERC20Cooldown.sol: 10: `allows to store` should be `allo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
dos
false
false
## Low: [06] DOSing by spamming transactions is allowed ### Description https://github.com/code-423n4/2024-11-nibiru/blob/8ed91a036f664b421182e183f19f6cef1a4e28ea/x/evm/keeper/keeper.go#L120-L124 Note that here, `BaseFeeMicronibiPerGas` returns the gas base fee in units of the EVM denom and this is stored as a const...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [8] `internal` functions only called once can be inlined to save gas ### Description Not inlining costs **20 to 40 gas** because of two extra `JUMP` instructions and additional stack operations needed for function calls. *There are 12 instances of this issue:*
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
solodit_api
medium
Access Control
false
false
Source: https://github.com/sherlock-audit/2023-01-ajna-judging/issues/156 ## Found by Jeiwan ## Summary Anyone can call the `Pool.transferLPs` function and transfer previously approved LP tokens to the approved address. ## Vulnerability Detail The [Pool.transferLPs](https://github.com/sherlock-audit/2023-01-ajna/bl...
Sherlock
4
Ajna
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Burning a User’s Tokens for a Flash Proposal will not Deduct Their Balance ### Description ## Handle kirk-baird ## Vulnerability details ## Impact The proposal to burn a user's tokens for a flash governance proposal does not result in the user losing any funds and may in fact unlock their funds sooner....
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Address lacks zero-check ### Description **Description** LGEWhitelisted.sol, line 61 Missing “require” statement for comparison “pairAddress” function parameter with zero address. It is needed to prevent misleading transactions or a transaction with incorrect arguments (e.g. because of frontend validation fa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: argsToLabels() slice index panic ### Description The function `argsToLabels()` takes a "variadic parameter" input, allowing a varying number of string arguments to be provided to the function. While the function will accept any number of inputs, it can only gracefully handle even numbers of arguments: ```go 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: Missing period verification ### Description In the `createVestingSchedule` function, there is no check to ensure that `_slicePeriodSeconds` is not greater than the vesting duration. If `_slicePeriodSeconds` is greater than the duration, the `vestedAmount` will always be zero until the full duration has passed,...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Borrower cannot partially repay interest of a loan ### Description The repay function of the Lender.sol contract allows a borrower to repay a loan in a specific pool. However, it is currently impossible for the borrower to partially repay the interest of a loan. This is due to the fact that the repay 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
other
false
false
## Medium: Yearn Vault Withdrawal Amount Discrepancy ### Description Users withdrawing tokens from the Yearn Protocol would not receive the exact amount requested. Yearn vaults process withdrawals in yvToken rather than the underlying asset. Therefore, if a user requests an amount to withdraw from a Yearn vault using ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Inconsistent vote weight windows enable potential voting power manipulation ### Description Current implementation allows for independent setting of vote weight windows on the hub chain (via `HubGovernor`) and spoke chains (via SpokeVoteAggregator). This can lead to inconsistencies in how voting power is calcu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Development Framework ### Description **Update** Marked as "Fixed" by the client. Addressed in: `e6b7472d0983118cb5827e19dd7db3519b6bf2a5`. The client provided the following explanation: > Added hardhat development framework to the project. Along with tests for ERC20, ERC20Votes, and ERC20Permit. You ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Ticking Interest Rate opens up to multi-block MEV - Directly Triggering Recovery Mode on the next block due to interest ticking ### Description **Impact** Because Apollon charges an interest on borrowing, an attack can guarantee triggering Recovery Mode on the next block by simply borrowing up to the thres...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Avoid Loss of Unexecuted Messages ### Description ## Update Restrictions for orderDelivery Flag Restrict updates to the `orderDelivery` flag after deployment to ensure that unexecuted messages are not lost when switching from unordered to ordered execution. To prevent sending transactions while the contract...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users that mint zero shares will lose their funds ### Description When a user deposit their funds, the following function will be called: If `totalShares_ > 0` and the denominator is higher than the numerator, the user will deposit their funds but they will receive zero shares in return, so consider revertin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `BaseConicPool.handleInvalidConvexPid()` doesn't set `rebalancingRewardActive` when invoking `_setWeightToZero()` ### Description Generally, when weights are changed in BaseConicPool, `rebalancingRewardActive` gets updated. For instance, `BaseConicPool.handleDepeggedCurvePool()` invokes `_setWeightToZero()`...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Anyone can get the NFT collateral token after an Auction without bidding due to missing check on `msg.sender` ### Description In IsolateLogic.sol, liquidation of an isolate loan can only be placed after the auction period is passed with bidding. The problem is that there is a missing check on `msg.sender` in ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
overflow
false
false
## Low: FOR LOOP OPTIMIZATIONS ### Description In for loops, the variable `i` is incremented using `i++`. It is known that in loops, using `++i` costs less gas per iteration than `i++`. It has also been detected that some `uint256` variables are initialized to 0. These variables are already initialized to 0 by defaul...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Events Not Emitted ### Description **Update** Marked as "Fixed" by the client. Addressed in: `de72dd6b7e8030b03b6f00286c8929d313ad0cde`. Recommendation implemented. **File(s) affected:**`xAUXO.sol`, `TokenLocker.sol` **Description:** During deployment, `xAUXO` sets `entryFee` and `feeBeneficiary`, but the e...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: `distributor` Cannot Be Updated ### Description **Update** Marked as "Fixed" by the client. Addressed in: `29a1538b0299af281175c31d08bb06311968e3d3`. **File(s) affected:**`AGStaking.sol` **Description:**`distributor` is declared as an `immutable` state variable. It can only be set in the constructor and will...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
overflow
false
false
## Low: [11] Oracle not compatible with tokens of 19 or more decimals ### Description Keep in mind that the version of solidity used, despite being greater than `0.8`, does not prevent integer overflows during casting, it only does so in mathematical operations. In the case that `feed.decimals()` returns 18, and 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
overflow
false
false
## Medium: Tokens can't be removed as a collateral without breaking liquidations and other core functions ### Description ### Impact The core mechanism that Revert utilizes to prevent arbitrary tokens to be utilized as collateral is by the default setting of the `collateralFactor`. Since the `collateralFactor` for al...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
initialization
true
false
## Medium: PerAddressTrancheVestingMerkleDistributor.claim always reverts because it checks the Merkle proof incorrectly ### Description Both the `claim` and `initializeDistributionRecord` methods of PerAddressTrancheVestingMerkleDistributor do not include the tranches when checking the Merkle proof (and do not even a...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: [04] The `lastAccruedBlock` naming needs to be refactored ### Description Low impact, confusing comment/docs since the `lastAccruedBlock` is either wrongly implemented or wrongly named. ### Proof of Concept Take a look at [PrimeLiquidityProvider.sol#L22-L24](https://github.com/code-423n4/2023-09-venus/blob/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
medium
oracle
true
false
## Medium: Different Oracle issues can return outdated prices ### Description ### Impact Different problems have been found with the use of the oracle that can incur economic losses when the oracle is not consumed in a completely safe way. ### Proof of Concept The problems found are: * The `timeStamp` check is no...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: What if a wrong rootHash is used? ### Description Assume a wrong `rootHash` is created, for example due to a bug in the creation script. Once that is updated via `handleUpdates()`, there is no way to do any more updates or validations, and the account would be bricked. ### Recommendation Consider creating ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
initialization
true
false
## Medium: Missing access control in `SDLVesting::stakeReleasableTokens` ### Description **Description:** The [`SDLVesting::stakeReleasableTokens`](https://github.com/stakedotlink/contracts/blob/3462c0d04ff92a23843adf0be8ea969b91b9bf0c/contracts/vesting/SDLVesting.sol#L108) function is meant to be driven by a trusted ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
medium
access-control
false
false
## Medium: Centralization risk ### Description The protocol has a `DEFAULT_ADMIN_ROLE` with privileged rights to perform admin tasks that can affect users. Especially, the owner can change the fee/reward fraction settings and various policies. Most admin functions don't emit events at the moment. ### Impact While 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
false
false
## Low: Privileged Roles and Ownership ### Description **Update** The client acknowledged the issue with the following comment: _"In line with Quantstamp recommendations, we acknowledge that the following contracts have privileged roles and ownership, and users should therefore be aware that they are not fully trustle...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: If the collateral is a fee-on-transfer token, repayment will be blocked ### Description As we all know, some tokens will deduct fees when transferring token. In this way, **the actual amount of token received by the receiver will be less than the amount sent**. If the collateral is this type of token, the 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
low
token
true
false
## Low: Hardcoded CCIP `feeToken` prevents LINK discount usage ### Description In `BridgeCCIP::send`, the [`feeToken`](https://github.com/YieldFiLabs/contracts/blob/40caad6c60625d750cc5c3a5a7df92b96a93a2fb/contracts/bridge/ccip/BridgeCCIP.sol#L126-L133) parameter is hardcoded: ```solidity // Sends the message to the d...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Dangerous storage variable in Strategy contract due to use of delegatecall ### Description The Strategy contract contains a single storage variable (`strategyExecutor`). Because the implementation uses a (double) delegatecall, it takes only one mistake in the enabled Action contracts to overwrite this very imp...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Inconsistent type usage for `IssuanceHours.HOUR_IN_SECONDS` ### Description **Description:** In `IssuanceHours` the constant [`IssuanceHours.HOUR_IN_SECONDS`](https://github.com/ondoprotocol/rwa-internal/blob/a74d03f4a71bd9cac09e8223377b47f7d64ca8d4/contracts/globalMarkets/tokenManager/issuanceHours/IssuanceHo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bribe Rewards Struck In Contract If Deposited During First Epoch ### Description _Submitted by xiaoming90_ Bribe rewards added to the `Bribe` contract in the first epoch will not be claimable by any voters, and the rewards will struck in the `Bribe` contract. ### Proof-of-Concept Assume that the current ep...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
## High: Transferring `quoteToken` to the exchange pool contract will cause future liquidity providers to lose funds ### Description _Submitted by WatchPug_ In the current implementation, the amount of LP tokens to be minted when `addLiquidity()` is calculated based on the ratio between the amount of newly added `quo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
signature
false
false
## Medium: Contract owner can arbitrarily replay finishUpgrade ### Description In all of the upgradeable contracts, the owner can call `finishUpgrade` at any time with any target contract address. This can lead to the upgraded contract being reset to the state of any contract of the same type. Furthermore, executing `...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: 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. ### Proof of Concept Navigate to the following contract 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
medium
token
true
false
## Medium: If a hat is owned by address(0), phony signatures will be accepted by the safe ### Description If a hat is sent to `address(0)`, the multisig will be fooled into accepting phony signatures on its behalf. This will throw off the proper accounting of signatures, allowing non-majority transactions to pass and ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
true
false
## Low: Manager revocation front-running keeps unauthorized access possible ### Description The public `assignRole` function in `AgoraAccessControl.sol` allows any existing manager to both add and remove the manager role in one atomic call, with only a guard against removing the *last* manager. A malicious manager (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
cross-chain
true
false
## Low: [31] Unnecessary duplication of checks ### Description ### Proof of Concept Take a look at https://github.com/code-423n4/2024-03-zksync/blob/4f0ba34f34a864c354c7e8c47643ed8f4a250e13/code/contracts/ethereum/contracts/bridge/L1SharedBridge.sol#L386-L456 These functions are both used for finalizing the withdra...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
false
## Low: [37] Redundant return of the nonce deployed ### Description ### Proof of Concept Take a look at https://github.com/code-423n4/2024-03-zksync/blob/4f0ba34f34a864c354c7e8c47643ed8f4a250e13/code/system-contracts/contracts/NonceHolder.sol#L122-L131 Function is returning the deployment nonce for the accounts use...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [Dependency] Avoid uint declarations and opt for uint256 for clarity ### Description The function parameter is declared as a `uint` type which is an alias for `uint256`. ### Recommendation It is best practice to use `uint256` for full clarity and, most importantly, to stay consistent on usage.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [01] Underflow panic before intended custom error ### Description `GatewayVm::checkBack` checks whether stack will underflow before a rewind look-up. When `checkBack` will cause underflow, a custom error `GatewayVm::checkBack` will propagate. The problem is underflow panic will happen before revert custom err...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: When opening a position, the collateral of the previous position is used for borrowing, which makes the user more easily liquidated ### Description When a user opens a position, if there is collateral in previous positions that have not reached the maximum borrowable amount, this collateral will be used for 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
low
rounding
true
false
## Low: [03] `bigdecimal::rev()` lacks explicit division by zero check ### Description The `rev()` function in `bigdecimal.move` doesn’t explicitly check for division by zero when calculating the reciprocal of a `BigDecimal`: Albeit, all other division operations have zero checks: * `div` checks with `assert!(!bigui...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Error Code Conflict ### Description ## Error Codes in maven.move In `maven.move`, `E_EXCEED_COIN_OPERATION_LIMIT` and `E_EXCEED_RECOVERY_OPERATION_LIMIT` have the same value. ## Remediation Renumber the value of error codes. ## Patch Fixed in `025c786`. ### Recommendation Renumber the value of error cod...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
cross-chain
true
false
## Low: Failed messages never expire and can be replayed by anyone, potentially allowing users to be griefed ### Description Report type: Smart Contract Target: https://testnet.snowtrace.io/address/0xa9491a1f4f058832e5742b76eE3f1F1fD7bb6837 Impacts: - Griefing (e.g. no profit motive for an attacker, but damage to t...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
liquidation
false
false
## Low: Initial debt repayment issue due to low USDH circulating supply ### Description When the `PositionManager.sol` contract is deployed, the first users who take on debt may face an issue where they cannot fully repay their debt. This occurs because the circulating supply of USDH is initially too low, making it im...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
access-control
false
false
## High: Incorrect Hash in Proposal ID Prevents Guardians From Canceling Proposals ### Description The `Guardians` multisig on L1 has the privilege to cancel proposals of the Token and GovOps Governor contracts on L2\. This is performed by encoding a call to the `cancel` function and sending it through the Mailbox fac...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Return Value of `getCompAddress()` ### Description **Update** Marked as "Mitigated" by the client. Addressed in: `dd662b87f14a5e86c79de21cab9cd88506c9ee22`. The client provided the following explanation: > This address will be upgraded to the correct one once the protocol token has been deployed. 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
dos
true
false
## Medium: DoS of strategy execution due to array indices out of bounds ### Description **Description:** `StrategyBuilderPlugin._validateStep()` intends to enforce that the condition results reference a new index that does not exceed the maximum step index: However, given `maxStepIndex` is passed as the array 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
medium
overflow
true
false
## Medium: The overflow in the `_calculateStreamedAmount` function can lead to unexpected results. ### Description In the `_calculateStreamedAmount` function, the calculation is within an `unchecked` block. When the `start time` is later than the `current block's timestamp`, an `overflow` occurs during the calculatio...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `L2Bridge` is incompatible with ERC721 that returns `felt252` for strings ### Description ## Vulnerability Details When retrieving ERC721 collection metadata values (name, symbol, token_uri), we are retrieving their returned data to be `ByteArray`. Since these functions will return string values we need to 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
low
other
false
false
## Low: PUSH0 not supported in all chains ### Description The contracts use solidity version `0.8.22`, which can generate `PUSH0` opcodes depending on the evm version specified in the compiler settings. This opcode is not supported in all chains, and can cause the contracts to fail on deployment. There is no `evm_ver...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TWAP Period May be Set to Zero ### Description The function `changeTwapPeriod(uint32 _twapPeriod)` sets the Time Weighted Average Price (TWAP) period for an Uniswap oracle. It is possible to set `_twapPeriod` to zero using this function. This would make the function `_readUniswapPool()` unusable due to the ass...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: GlmRouter’s `calculateGlmPrice()` may not return correct value ### Description **Severity**: Low **Status**: Resolved **Description** In Contract GlmRouter.sol, the method `calculateGlmPrice(...)` does not check if `totalAssets` or `totalSupply` is greater than 0 or not. If total supply is 0, then this meth...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
## Medium: Distribution can be bricked, and double claims by a few holders are possible when owner calls `LiquidInfrastructureERC20::setDistributableERC20s` ### Description ### Lines of code ### Impact Double claim, DOS by bricking distribution, few holders can lose some rewards due to missing validation of distrib...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
access-control
false
false
## Medium: The Current Access Control Model Can Result in Concurrent Behaviors ### Description **Update** Marked as "Acknowledged" by the client. Some measures are implemented to mitigate the issue. The client provided the following explanation: > The current admin design is requested by the end-users. We've added ve...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: feeAmount computation might fail because of intermediate overflow ### Description Severity: Low Risk Context: VerifiedPoolsBasicHook.sol#L376 Description: The afterSwap hook computes the feeAmount as: uint256 feeAmount = uint128(swapAmount) * hookFee / TOTAL_FEE_BIPS; Currently, the math is done in uint128 typ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
cross-chain
false
false
## Medium: Extra parameter for the method ### Description At the line https://github.com/aave/governance-crosschain-bridges/blob/9fd0609a2e14d546885f76211961f251d2e15cb9/contracts/PolygonBridgeExecutor.sol#L35, when calling the `processMessageFromRoot()` method, the `stateId` parameter is passed. But then this variabl...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Misleading comments ### Description The following comments are potentially misleading or errant: * Throughout [`AggregatorOracle.sol`](https://github.com/AlphaFinanceLab/homora-v2/blob/5efa332f2ecf8e9705c326cffda5305bc6f752f7/contracts/oracle/AggregatorOracle.sol) there are comments that say `maxPriceDeviati...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [12] ### Description The number of currencies (3) is hard-coded in different places, consider storing this information in arrays, which enables easy additions of new ones.
0