prompt
listlengths
2
2
source
stringclasses
3 values
severity
stringclasses
5 values
category
stringclasses
186 values
has_code
bool
2 classes
has_poc
bool
2 classes
reference_response
stringlengths
23
5k
firm
stringclasses
26 values
quality_score
float64
0
5
protocol
stringclasses
398 values
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
initialization
false
false
## Medium: M07] Lack of input validation ### Description ###### Medium Component: [`policy`](https://github.com/BeamNetwork/currency/tree/af3428020545e3f3ae2f3567b94e1fbc5e5bdb4c/contracts/policy) In multiple functions, the values received as arguments are not validated. In `PolicyInit.sol`: * In the `fusedIni...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Theoretical reentrancy protection in MozToken ### Description MozToken guards against transferring of locked tokens using `_beforeTokenTransfer()` hook. It is recommended to instead use the `_afterTokenTransfer()` hook, because if the transfer operation somehow reenters MozToken `transfer()`, the check would...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: POSITIONS CANNOT BE UNWOUND DUE TO OUSD BEHAVIOR ### Description It has been observed that once a user tries to unwind any position (supplying the `positionTokenID` of any owned NFT), multiple operations are performed, so the user can retrieve the `OUSD` initially sent. Once the final `OUSD` amount is transfe...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Access Control
false
true
## Handle leastwood ## Vulnerability details ## Impact The `updateVestedTokens()` function is intended to be called by the `FSD.sol` contract when updating a user's vested token amount. A check is performed to ensure that `_user == beneficiary`, however, as `_user` is a user controlled argument, it is possible to ...
Code4rena
3
FairSide
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unchecked collection in ticket redemption ### Description ## Redeem Winning Lot Ticket Instruction In the `redeemWinningLotTicket` instruction, the raffle winner purchases the NFT collateral from the protocol, transferring funds to the loan’s liquidity pool. However, this association between loan and liquidi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Possible Underflow Due to Unnecessary Signed Integers in Interfaces ### Description `SphereXEngine` hooks lack validation of the sign of `num` parameter. This can cause an underflow when [adding it to `_callDepth`](https://github.com/spherex-collab/spherex-protect/blob/5b134b2b176deb94e75417ed9b9d3670444a4167/...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
oracle
true
false
## Low: Insufficient collateral verification for oracle fees ### Description _Resolved_ When a user opens a trade system it only enforces minimum position size (collateral * leverage / 100 >= minLevPos) and does not enforce a minimum collateral requirement. This creates a case where collateral < oracle fee, which wou...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 `safeAllow` and `handlerAllow` instead of `safeCan` and `handlerCan` to better match the intention of the mappings ### Description There are 2 instances of this issue: https://github.com/open-dollar/od-contracts/blob/f4f0246bb26277249c1d5afe6201d4d9096e52e6/src/contracts/proxies/ODSafeManager.sol#L39C1-L4...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Open TODOs ### Description Code architecture, incentives, and error handling/reporting questions/issues should be resolved before deployment. *There is 1 instance of this issue:* https://github.com/code-423n4/2022-12-gogopool/blob/aec9928d8bdce8a5a4efe45f54c39d4fc7313731/contracts/contract/MinipoolManager.s...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
token
false
false
## Medium: Unchecked transfer. ### Description **Description** PlatformAuction.sol: function_currency Transfer(). Vault.sol: function executeTransaction(). PlatformAuction and Vault are used with regular transfer() and transferFrom() methods with no result check. The return value of an external transfer/transferFrom ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
token
false
false
## Gas: `storage` pointer to a structure is cheaper than copying each value of the structure into `memory`, same for `array` and `mapping` (5 instances) ### Description Deployment Gas Saved: **168 820** Method Call Gas Saved: **1 672** `forge snapshot --diff`: **8 746** Gas Saved It may not be obvious, but every time...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Misspelled Variable In Maven.move ### Description ## Variable Issue in maven.move A misspelled variable `weight_apporve` is present in `maven.move`. This variable is used in the following functions: 1. `start_permission_recovery` 2. `weight_of_permission` 3. `result_of_permission` ## Remediation Correct 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...
cyfrin_structured
low
other
true
true
## Low: Cache array length outside of loops ### Description If array length is not cached, the solidity compiler will always read the length of the array during each iteration. That is, if it is a storage array, this is an extra sload operation (100 additional extra gas for each iteration except for the first) and if ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
storage
false
false
## Low: Lack Of Storage Gap In Upgradeable Contract ### Description The `MergeMarketplaceStrategy` contract is supposed to be designed to be an upgradeable contract. It inherits from `OnwnableWithPausable`, but it lacks storage gaps. Storage gaps are essential for ensuring that new state variables can be added in futu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
token
true
true
## Handle jonah1005 ## Vulnerability details ## Impact A non standard erc20 token would always raise error when calling `_safeTransferFrom`. If a user creates a USDT/DAI pool and deposit into the pool he would find out there's never a counterpart deposit. ## Proof of Concept https://github.com/code-423n4/2021-07...
Code4rena
3
Wild Credit
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
token
false
false
## Medium: Not handling return value of transferFrom command can create inconsistency ### Description _Submitted by hubble_ ### Vulnerability details The below transferFrom command is called at two places in the core contracts, followed by an emit event payableToken.transferFrom(msg.sender,recipient,_amount) 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
gas
other
false
false
## Gas: Use a more recent version of solidity ### Description Use a solidity version of at least 0.8.10 to have external calls skip contract existence checks if the external call has a return value See [original submission](https://github.com/code-423n4/2022-04-phuture-findings/issues/57) for instances. **[jn-lp (Ph...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
initialization
true
false
## High: Missing fromToken != toToken check ### Description ## Email address mail@cmichel.io ## Handle @cmichelio ## Eth address 0x6823636c2462cfdcD8d33fE53fBCD0EdbE2752ad ## Vulnerability details Attacker calls `MarginRouter.crossSwapExactTokensForTokens` with a fake pair and the same token[0] == tokne[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
low
other
true
false
## Low: INTEREST RATE CALCULATION DOES NOT COVER COMMENTED CASE ### Description **Severity**: Low **Status**: Resolved **Description** The internal function `_calculateInterestRate()` is used for calculating the interest rate based on the borrower’s model and overall utilization rate. The function contemplates 3 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
gas
other
false
false
## Gas: An element is cached to memory after it is used ### Description Caching a struct element locally should be done before using it to save gas. The following diff applies this optimization. This will save small amount of gas when swapping.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong median calculation ### Description The median calculation is wrong, it always assumes an odd length, but the math is different if the length is even. In that case, it should be: *There is 1 instance of this issue.* [[266](https://github.com/code-423n4/2024-04-panoptic/blob/6908144756ef0cce2ede6d3b20...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Function writing` that does not comply with the `Solidity Style Guide` ### Description Order of Functions; ordering helps readers identify which functions they can call and to find the constructor and fallback definitions easier. But there are contracts in the project that do not comply with this. https://do...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
oracle
false
false
## Medium: BondVault BASE incentive can be gamed ### Description ## Handle cmichel ## Vulnerability details `BondVault` deposits match _any_ deposited `token` amount with the `BASE` amount to provide liquidity, see [Docs](https://docs.spartanprotocol.org/tokenomics-1/sparta) and `DAO.handleTransferIn`. The matched...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A DOS Attack Can Prevent Teleports ### Description **Update** Marked as "Acknowledged" by the client. The client provided the following explanation: Since this is only one way to move Boba tokens around to another chain we are avoiding adding a fee for now. There exists the native way of using the LayerZero...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
true
false
## Gas: Use `assembly` to write address storage values ### Description ### Relevant GitHub Links https://github.com/Cyfrin/2023-07-beedle/tree/main/src/utils/Ownable.sol#L15 https://github.com/Cyfrin/2023-07-beedle/tree/main/src/Fees.sol#L20 https://github.com/Cyfrin/2023-07-beedle/tree/main/src/utils/Ownable.sol#L2...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: State transitions are implicit and not enforced ### Description There are multiple states a `Crowdsale` instance can be in. The current state can be obtained by calling [`getState`](https://github.com/CoinFabrik/ico/blob/142f43f3bec4afd0ffff3fce06946cf67cb0272f/contracts/Crowdsale.sol#L479-L489), and 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
high
front-running
true
false
## High: RocketRewardPool - Unpredictable staking rewards as stake can be added just before claiming and rewards may be paid to to operators that do not provide a service to the system  Partially Addressed ### Description Nodes/TrustedNodes earn rewards based on the **current** share of the effective RPL stake provide...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: TRST-M-1 Removing a trade path in router will cause serious data corruption ### Description **Description:** The RouterInfo represents a single UniV3-compatible router which supports a list of token paths. It uses the following data structures: When an admin specifies a new path from **token0** to **toke...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
reentrancy
false
false
## Low: Check-effects-interactions pattern not followed ### Description The `claimReward` function in the `RewardManager` contract is responsible for claiming rewards for a specific operator. However, the function does not follow the CEI pattern, which is a common pattern in Solidity development to prevent reentrancy ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inability to perform a cross-chain transfer due to mintCap ### Description Cross-chain transfers in the sUSX contract may be reverted on the destination chain in [`finalizeInboundTransferShares`](https://github.com/dforce-network/sUSX/blob/2ff5d7a8f9a509006557bf5de72fabf40d1138a5/src/sUSX.sol#L290) if the 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
other
true
false
## Low: Unnecessary `BoostedIncentiveLogic` functions can be removed ### Description **Description:** * `BoostedIncentiveLogic::_updateRewardState` overrides the `BaseIncentiveLogic` implementation; however, both functions have exactly the same implementation, so there is no need to override it. * `BoostedIncentiveLo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: getBunniTokenPrice wrongly returns the total price of all tokens ### Description The function getBunniTokenPrice() is supposed to return the price of 1 Bunni token (1 share) like all other feeds, but it doesn't. It returns the total price of all minted tokens/shares for a specific pool (total value of positi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
false
false
## Low: Lack of guardian-role transfer ### Description The [`guardian`](https://github.com/emptysetsquad/emptyset/blob/bf9753ef9cd5b17236036257f290e0d0b850a029/protocol/contracts/src/governance/GovernerAlpha.sol#L62) address from the `GovernorAlpha` contract has a special role inside the system, which is allowed to ei...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bypass Pool Ratio Check ### Description ## Liquidity Provider Protocol The protocol allows liquidity providers to execute deposits and withdraw transactions in quick succession. This enables a user to manipulate the pool ratio by executing a deposit to change the ratio and immediately following it with a w...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
true
false
## Gas: Use Short-Circuit Logic in Conditional Checks ### Description ERC1155Minimal.sol [here](https://github.com/code-423n4/2023-11-panoptic/blob/main/contracts/tokens/ERC1155Minimal.sol#L97) and [here](https://github.com/code-423n4/2023-11-panoptic/blob/main/contracts/tokens/ERC1155Minimal.sol#L135). Employing sho...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: THE CONTRACT FUNCTION SHOULD APPROVE(0) FIRST ### Description Some tokens (like USDT L199) do not work when changing the allowance from an existing non-zero allowance value. They must first be approved by zero, and then the actual allowance must be approved. ``` IERC20(token).approve(address(operator), 0); IE...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Max value can't be applied in the setters ### Description The function `setTradingDelay` is used by the governance to change the tradingDelay. However in the require statement applying the maximum delay is not allowed. Consider changing the require statement to: `require(val < MAX_TRADING_DELAY, "invalid tra...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
oracle
false
false
## Medium: Stork Oracle price can be arbitrated ### Description `StorkERC7412WrapperModule.fulfillOracleQuery` is used to update the price of the Stork oracle. Given that the oracle works with a push model, this opens the opportunity to arbitrage a price update by performing a trade, setting the new price, and closin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Ignored return values in GovernorAlpha functions ### Description The GovernorAlpha contract allows successful proposals to be queued and executed through the Timelock contract. The corresponding functions in Timelock return data that may be useful for users, but the data is ignored by the GovernorAlpha contrac...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
oracle
true
false
## Medium: `TWAPOracle.getRate` does not scale the ratio ### Description _Submitted by cmichel_ The `TWAPOracle.getRate` function simply performs an integer division to compute the rate. It should first be scaled by some value, for example, `1e18`. #### Impact The rate has no decimal precision and if `tUSDInVader...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Separate methods for limit management ### Description In `addApprovedGrantToken()`: it's better to add two methods: one to add a limit and another one to update the limit to restrict actions and make the protocol more atomic. https://github.com/MetaLex-Tech/borg-core/blob/9074503d37cfa1d777ef16f6c88b84c98b4f54...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
signature
true
true
## High: stopLimit Id collision with bracket orders due to no validation, opening up an attack to steal funds ### Description High-severity vulnerability in Oku's dual-contract architecture where parallel order creation between `StopLimit.sol` and `Bracket.sol` enables order data corruption and potential double-refund...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Receipt Token Balance Check ### Description ## Implementation of `set_service` Instruction In the implementation of `set_service` instruction, there is a section of code that sets the service for the stake which was deposited before guest chain initialization without explicitly checking if the deposi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `prb-math` not audited ### Description _Submitted by gpersoon_ The library [`prb-math` documents](// https://github.com/hifi-finance/prb-math#security) have not been audited by a security researcher. This means its more risky to rely on this library. Recommend considering (crowdsourcing) an audit for `pr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: entryPoint cannot be changed ### Description MetaPaymaster keeps `entryPoint` as a storage variable even though there's no way to update it after initializing the proxy. So if `entryPoint` changes for any reason (most likely because a bug is discovered there), the only way is to upgrade the contract. This can ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: Premature Task Execution ### Description ## Vulnerability Concern The vulnerability concerns the handling and execution of conditional tasks based on comparison results. According to the specification, `comparison_task` should execute only the `on_true` or `on_false` sub-tasks depending on the comparison r...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ConvexCurveLPVault's `_transferYield` can become stuck with zero reward transfer ### Description _Submitted by hyh_ Now there are no checks for the amounts to be transferred via \_transferYield and \_processTreasury. As reward token list is external and an arbitrary token can end up there, in the case when...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unclear check ### Description **Description** At: src/processor.rs:232 It’s not clear why do you need to pass array as an argument if this array is required to be equal md.data.creators. You can just take it from the metadata and remove the argument. **Recommendation**: Refactor.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Sliced Bytes Are Cut Off ### Description In the `Bytes` library, the [`slice4`](https://github.com/latticexyz/mud/blob/12a9eb1afb18a7f7cb43d774cabb2d5af7c74e6b/packages/store/src/Bytes.sol#L264) function intends to return a `bytes4` value from a `bytes32` value at a given index. While the output is correctl...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Address Validation ### Description The constructor of the contract lacks zero address checks. ### Recommendation Implement zero address checks for the *altt and* factory parameters in the constructor.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
dos
true
false
## High: Attacker can block LayerZero channel due to variable gas cost of saving payload ### Description This is an issue that affects `BaseUSDO`, `BaseTOFT`, and `BaseTapOFT` or all the contracts which are sending and receiving LayerZero messages. The consequence of this is that anyone can with low cost and high freq...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
liquidation
false
false
## Gas: 3S-LENFT-N12 Throughout code: variables should be immutable ### Description Throughout the code base, there are multiple contracts with variables set in the initialization and not allowed to change. These variables should be set to immutable to save gas, since they will be stored in the bytecode instead of st...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential Inflation Attack During Initial Deposit ### Description **Update** The client acknowledged the issue and proposed a solution where, in the early stages of the vault, the price will be set to `1e18`, potentially achieving the same outcome as adding virtual shares and a decimals offset. The client prov...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `NodeOperatorRegistry::_parsePubKeyToString`: Use shift operations rather than division/multiplication when dividend/factor is a power of 2 ### Description **Description:** While `DIV` and `MUL` opcodes cost 5 gas unit each, shift operations cost 3 gas units. Therefore, `NodeOperatorRegistry::_parsePubKeyToStr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Docstrings ### Description Throughout the [codebase](https://github.com/matter-labs/era-contracts/tree/518bfff51085743dc85d2824d823aaf4bb3e82d8/), there are several parts that do not have docstrings: * The [`Admin.sol`](https://github.com/matter-labs/era-contracts/blob/518bfff51085743dc85d2824d823aaf...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
oracle
true
false
Source: https://github.com/sherlock-audit/2023-02-notional-judging/issues/10 ## Found by xiaoming90 ## Summary The slippage or minimum amount of tokens to be received is set to a value much smaller than expected due to the use of `TwoTokenPoolUtils._getMinExitAmounts` function to automatically compute the slippage...
Sherlock
5
Notional Update #2
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inverting the condition of an `if`-`else`-statement wastes gas ### Description Flipping the `true` and `false` blocks instead saves ***[3 gas](https://gist.github.com/IllIllI000/44da6fbe9d12b9ab21af82f14add56b9)*** *There is 1 instance of this issue:* `Pool.sol#L270`
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: When stream sender admin is transferred, callbacks are still made to the old admin ### Description In the `SablierV2MerkleLT` and `SablierV2MerkleLL` contracts, when users claim an airstream, the sender is marked as the current admin of the contract: ```solidity function claim( /*...*/ ) { streamId = LOCKUP...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
input-validation
true
false
## Medium: Unsafe token transfers in `VaultV3` can lead to state inconsistencies ### Description The `VaultV3` contract doesn't validate the success of token transfers in both `custodyFunds()` and `returnFunds()` functions. State changes occur before or regardless of transfer success, which can lead to vault state inc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No way to reset a protocol to use the defaultMarkup ### Description Once a protocol has a markup set, it is impossible to allow that protocol to use the default markup again due to the minimum of `50_00` in `setMarkup`. This would then require switching the protocol's address or manually resetting all "default...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Docstrings ### Description Throughout the codebase, a few instances of missing docstrings were identified: * The [`IVault` interface](https://github.com/OriginProtocol/origin-dollar/blob/eca6ffa74d9d0c5fb467551a30912cb722fab9c2/contracts/contracts/interfaces/IVault.sol#L6-L253) in `IVault.sol` * 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
initialization
true
false
## Low: Discrepancies in Event Emissions ### Description ## Liquidity and Swap Event Issues in thalaswap_v2 ## 1. Issue with `add_liquidity_weighted` In the current implementation of `pool::add_liquidity_weighted`, `AddLiquidityEvent` emits amounts (the raw values of assets initially provided to the function) instea...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary Re-implementation of Predefined instruction ### Description ## Function Redundancy in utils.rs A function named `close` is implemented in `utils.rs` which has the same functionality as a function implemented by `anchor-lang`—namely, closing a Solana account. [here](#). This re-implementation of th...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Undocumented 360 Days-Basis for APR Calculations ### Description **Update** Marked as "Fixed" by the client. Addressed in: `8982d06f5b1f6b5a81171a706b46192aaf68a10b`. The client provided the following explanation: > https://docs.lucidao.com/dapps/altr-lending/faq - 1st FAQ. **File(s) affected:**`Lending.sol`...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: Curve gauges with 7+ extra reward tokens cannot be integrated ### Description When the PoolFactory creates new reward distributors, we begin by manually adding CRV and SDT as reward tokens. We then iterate through the Curve gauge's reward tokens and add each of those to the StakeDAO reward distributor. St...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: sFrxEth may revert on redeeming non-zero amount ### Description ### Impact Unstaking is blocked. ### Proof of Concept When unstaking the `withdraw` of each derivative is called. `SfrxEth.withdraw` calls [`IsFrxEth(SFRX_ETH_ADDRESS).redeem(_amount, address(this), address(this));`](https://github.com/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
storage
false
false
## Low: Upgradeable contracts which are inherited from should use ERC7201 namespaced storage layouts or storage gaps to prevent storage collision ### Description **Description:** The protocol has upgradeable contracts which other contracts inherit from. These contracts should either use: * [ERC7201](https://eips.ether...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Certain ERC20 tokens do not return bool from approve which breaks the core logic ### Description **Description** The BrightPoolLenger and Uniswap Exchange contracts attempt to approve the ask or bid token for other contracts and require the approve function to return true. However, some ERC20 implementations...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: | Typo ### Description **Description** On line 58, “current” is misspelled as “curent“. **Recommendation** Replace “curent” with “current” in the comment. **Resolution** GMX Team: Acknowledged.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Expressions that cannot be overflowed can be unchecked (5 instances) ### Description Deployment Gas Saved: **23 016** * src/Kernel.sol:[299-300](https://github.com/code-423n4/2022-08-olympus/blob/b5e139d732eb4c07102f149fb9426d356af617aa/src/Kernel.sol#L299-L300), [309-310](https://github.com/code-423n4/2022-...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Operator Bond Undercollateralized During Slashing Due to Share-Based Accounting ### Description The operator bond in EXManager is tracked in shares (exLST) rather than underlying HYPE amounts. When bonding occurs via `bond()`, the operator deposits KHYPE which is converted to exLST shares at the current exchan...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [02] Use `safetransfer` Instead Of `transfer` ### Description It is good to add a `require()` statement that checks the return value of token transfers or to use something like OpenZeppelin’s `safeTransfer`/`safeTransferFrom` unless one is sure the given token reverts in case of a failure. Failure to do so wil...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Input Length Check ### Description Function `cook()` requires arrays of input parameters to be of the same length or otherwise the iteration inside the function will likely fail. A transaction fails if `actions.length > values.length` and `actions.length > datas.length`. Unfortunately, there is no check to 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
initialization
false
false
## Low: Incorrect Encoding Implementation Leads to Wrong RLP Encoding ### Description A contract can be encoded with RLP encoding. The implementation of this encoding is not correct and does not store the expected information. As a result, any attempt to use this encoding may be incorrect. We did not assess the impact...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
front-running
false
false
## High: Insecure Migration Logic Allowing Preemptive Registration and State Loss ### Description The `batchMigratePlayers` function is designed to transfer player data from an old contract but will skip any player that is already registered in the new system if they either have points or their username is already tak...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Collateral can already be seized even when negRiskMarket is not fully resolved ### Description NegRiskMarket has a two step verification process, in order to ensure reported outcomes are correct. First the UMA oracle has the possibility to flag the answer and after this there is a period of time in which 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
other
true
false
## Low: Incorrect supply increase in `_deposit_for()` for MERGE_TYPE deposits ### Description In the \_deposit_for() function, the supply is incorrectly increased when the deposit type is MERGE_TYPE. This occurs because the supply is updated unconditionally, regardless of the deposit type. However, for MERGE_TYPE depo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `process_deposit_erc20_event` Incorrectly Assumes Deposit Origin ### Description **Update** Marked as "Fixed" by the client. Addressed in: `f894f2c47e9d4d7cdc5c7dfaddefb44e12937870`. The function `TokenBridge.withdrawToPostchain()` was not updated, thus the status has been marked as Mitigated. The client provi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of event emission after sensitive actions ### Description The following functions do not emit relevant events after sensitive actions. * The [`initialize` function](https://github.com/notional-finance/contracts/blob/b6fc6be4622422d0e34c90e77f2ec9da18596b8c/contracts/utils/Governed.sol#L21) of the `Go...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
true
false
## Low: Hard-coded `9` decimals for xBELO mint can mismatch underlying BELO mint ### Description **Description:** During `initialize` the program creates the xBELO receipt token like this: The number of decimals is fixed at **9** instead of copying `belo_mint.decimals`. If the canonical BELO mint was deployed with a...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
oracle
false
false
## Low: EventReferenceCoinChanged is Unused ### Description Description The event ReferenceCoinChanged inBondingCurveEvents is never emitted and may be safely removed. Recommendations Consider removing the event ReferenceCoinChanged from the BondingCurveEvents.sol contract. Resolution The recommendation has been imple...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
oracle
true
false
## Low: Removal Of Unused And Redundant Code ### Description ## Code Review and Remediation Recommendations 1. **Withdraw Instruction Issue** In the withdraw instruction, after creating the instruction and generating the `account_infos` list, the code pushes the bank account and `oracle_key` account again into `ix....
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Optimizing gas usage in gas adjustment calculations ### Description Usually, only one of the input/output is filled with `adjustmentPerGweiBaseFee`. Checking for `adjustmentPerGweiBaseFee != 0` before the calculation would save gas. ### Recommendation Consider adding checks for non-zero values of `order.baseI...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
oracle
true
false
## Low: No same value input control ### Description ### Recommended Mitigation Steps Add code like this; `if (oracle == _oracle revert ADDRESS_SAME();`
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 ### Context ### Recommendation Use temporary TODOs as you work on a feature, but make sure to treat them before merging. Either add a link to a proper issue in your TODO, or remove it from the code. ### Recommendation Use temporary TODOs as you work on a feature, but make sure 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
gas
storage
true
false
## Gas: onlyGovernor and onlyScheduled Modifiers Can be Combined ### Description Both of these modifiers are solely used together, so there is no need to separate the logic of the two when a single `GLOBALS_SLOT` `SLOAD` can be saved. ### Recommendation Consider removing the `governor()` function altogether and inlini...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Hardcoded or Fixed Slippage can lead to Loss of User funds ### Description **Severity**: Medium **Status**: Acknowledged **Description** In the `GammaSwapLiquidityWarehouse.sol` contract the hardcoded Slippage values is not adivsed as it can lead to loss of user funds when the volatility of token is hig...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary Constraints for Accounts ### Description In many instructions, the constraints of an account can be simplified by using the `has_one` attribute of Anchor. The highlighted constraints are examples of this: © 2022 OtterSec LLC. All Rights Reserved. 21 / 26 Solvent Audit 06 | General Findings ## ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
logic-error
true
true
## High: Immediate stake cache updates enable reward distribution without P-Chain confirmation ### Description The middleware immediately updates stake cache for reward calculations when operators initiate stake changes via `initializeValidatorStakeUpdate()`, even though these changes remain unconfirmed by the P-Chain...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insecure Sign-In Message ### Description ## API Login Message The message used to log in to the API is a simple UUID, which means that a user could be deceived into signing it on a malicious website without realizing it will be used to access the Fuse API. > _routers/auth.rs rust ## Remediation Refer 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
token
true
false
## Low: Use a more recent version of solidity ### Description Use a solidity version of at least 0.8.4 to get `bytes.concat()` instead of `abi.encodePacked(,)` Use a solidity version of at least 0.8.12 to get `string.concat()` instead of `abi.encodePacked(,)` [ERC20MultiVotes.sol#L4](https://github.com/fei-protocol/...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary use of nonReentrant modifier in privileged functions ### Description **Severity**: Informational **Status**: Resolved **Description**: In the smart contract Sakazuki, the `nonReentrant` modifier is used with most of the privileged functions (those with `onlyOwner`). However, these functions are...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of a double-step transferOwnership() pattern ### Description The current ownership transfer process for all the contracts inheriting from `Ownable` or `OwnableUpgradeable` involves the current owner calling the [transferOwnership()](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.8/...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `swapUnderlyingForYt` revert due to rounding issues ### Description The core function (`swapUnderlyingForYt`) of the Router will revert due to rounding issues. Users who intend to swap underlying assets to YT tokens via the Router will be unable to do so. ### Impact The core function (swapUnderlyingForYt) ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TRST-L-2 Transfers of vaults from an invalid source are not treated correctly by receiver delegate ### Description **Description:** In the universalReceiver() function, if the notifying contract does not support LSP9, yet the **typeID** corresponds to an LSP9 transfer, the function will return instead of 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
medium
cross-chain
true
false
## Medium: `excuteProposal` can fail due to Wormhole guardian change ### Description Wormhole governance can change signing guardian sets. If this happens between a proposal is queued and a proposal is executed. The second verification in `_executeProposal` will fail as the guardian set has changed between queuing 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
other
false
false
## Low: Shield Eater can be detonated on unowned planets ### Description The `detonateShieldEater` function in the `OverrideShieldEaterSystem` contract does not check if the planet is owned by an empire before detonating the shield eater. Given that the override cost for the EEmpire.NULL empire is 0, if `detonateShiel...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A `require` check can easily be bypassed ### Description In `StargateArbitrum::stargateSwap` we have the following code This check can easily be bypassed by just sending 1 wei. Remove the check completely, since `msg.value` is not used in the method anyway.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: (HAL-22) Consider Using Named Mappings ### Description The project accepts using a Solidity compiler version greater than `0.8.18`, which supports named mappings. Using named mappings can improve the readability and maintainability of the code by making the purpose of each mapping clearer. This practice helps ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `SGLLiquidation::_computeAssetAmountToSolvency`, `Market::_isSolvent` and `Market::_computeMaxBorrowableAmount` may overestimate the collateral, resulting in false solvency ### Description An user can borrow via `BigBang::borrow` when there is no collateral amount from the user's share. The `BigBang` will fal...
0