prompt
listlengths
2
2
source
stringclasses
3 values
severity
stringclasses
5 values
category
stringclasses
186 values
has_code
bool
2 classes
has_poc
bool
2 classes
reference_response
stringlengths
23
5k
firm
stringclasses
26 values
quality_score
float64
0
5
protocol
stringclasses
398 values
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
liquidation
true
false
## High: `_repayCredit()` Is Publicly Accessible ### Description **Update** The issue has been fixed by making `_repayCredit()` an internal function. **File(s) affected:**`credit/CreditCaller.sol` **Description:** The function `_repayCredit()` appears to be a helper function to be used by `repayCredit()` and `liquid...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `RecoverySpell` Comment only applies to benign spells ### Description **Impact** The comment: https://github.com/solidity-labs-io/kleidi/blob/1a06ac16bc99d0b4081281329d03064c3737f5e4/src/RecoverySpell.sol#L112-L117 Only applies to benign spells Malicious spells can be deployed anywhere by the compromised...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: onlyPoolSupplier modifier can be bypassed ### Description The `MarginalV1LBLiquidityReceiverDeployer.deploy()` function allows deployment of a `MarginalV1LBLiquidityReceiver` contract. Access to the function is restricted by the `onlyPoolSupplier` modifier, which permits calling the function only from the suppl...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Dust
true
true
## Lines of code https://github.com/code-423n4/2022-05-factorydao/blob/db415804c06143d8af6880bc4cda7222e5463c0e/contracts/PermissionlessBasicPoolFactory.sol#L245 ## Vulnerability details ## Impact An attacker may cause a DoS attack on `withdrawExcessRewards()` by creating a excessive number of `receipts` with mini...
Code4rena
4
FactoryDAO
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Protocol migration does not transfer the underlying asset to the new strategy contract when the rescue is completed ### Description When rescue starts, the `_guardian_underlying_withdraw` (see ExternalGuardian.sol#L84) withdraws underlying funds back to the strategy contract. ```solidity (tokens, rescued) ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Chain ID and Contract Address in Message Hash ### Description The `_verifySignatures()` function constructs [`msgHash`](https://github.com/Fantom-foundation/Opera-Bridge/blob/730e10b341c98ead97c14befd704c03db951fe86/contracts/OperaBridge.sol#L153) using only the chain ID (peer chain), batch ID, tota...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of input validation on set\_buyback\_config ### Description The `set_buyback_config` entry point is used by the platform admin to set multiple parameters, such as: * `chest_vault_authority`: account with the ability to withdraw from the chest vault. Corresponds to the remaining amount after transferring ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
rounding
true
false
## Low: The `rounding direction` should be set to `round up` in the `_adjustAddLiquidity` function in the `router` contract ### Description In the `_adjustAddLiquidity` function, all calculations are `rounded down`. https://github.com/code-423n4/2024-03-abracadabra-money/blob/1f4693fdbf33e9ad28132643e2d6f7635834c6c6/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
low
other
false
false
## Low: Failure to block zero amount rewards in `notifyRewardAmountNextPeriod()` and `notifyRewardAmountForPeriod()` functions ### Description Current implementation of [notifyRewardAmountNextPeriod()](https://github.com/code-423n4/2024-10-ramses-exchange/blob/4a40eba36bc47eba8179d4f6203a4b84561a4415/contracts/CL/gaug...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
access-control
true
false
## Low: Missing weight sum validation in `setWeightsManually` function ### Description The `UpdateWeightRunner::setWeightsManually` allows privileged users (DAO, pool manager, or admin based on pool registry) to manually set weights of the pool without validating if the weights sum to 1. This check is correctly enforc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insufficient input validation ### Description In `initializeDistributor` multiple parameters are insufficiently validated: - `_maxEthContributionPerAddress` is only checked that is > 0, but this seems like too low of a limit , maybe use 1e18 - `_distributionStartTimestamp` is checked that it is `>= block.ti...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Compares to a boolean constant ### Description **Description** contracts/MGD.sol#240: flaggedNFTS[_tokenId] == true contracts/MGD.sol#52 55: require(protocolAdmins[_msgSender()] == true) contracts/MGD.sol#61 64 require(_org.orgAdmin[_msgSender()] == true || protocolAdmins[_msgSender()] == true) contracts/Orde...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
solodit_api
high
reentrancy
true
true
Source: https://github.com/sherlock-audit/2024-06-union-finance-update-2-judging/issues/33 The protocol has acknowledged this issue. ## Found by 0xAadi, Bigsam, Bugvorus, Varun\_05, cryptphi, korok, snapishere, trachev ## Summary The `claimTokens` function in the VouchFaucet contract fails to properly enforce the ...
Sherlock
5
Union Finance 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
low
other
false
false
## Low: Incomplete DragonBoat Integration ### Description The `Service` struct contains several placeholder functions intended for `DragonBoat` consensus integration, including `Lookup`, `Sync`, `PrepareSnapshot`, `SaveSnapshot`, `RecoverFromSnapshot`, and `Close`. These functions currently return `nil` or perform 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
high
reentrancy
false
false
## High: Oracle manipulation via missing balancer vault read-only reentrancy check ### Description The Balancer team announced a vulnerability related to read-only reentrancy in the Balancer Vault. The issue involves a race condition between data reported by the Balancer Vault and data reported by Balancer pools. Any ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
dos
false
false
## Medium: Traders Can Prevent LPs From Removing Liquidity Through Denial of Service ### Description **Update** Fixed. Global long position sizes can now be limited across the range of tokens. However, it is up to the client to correctly set these limits. The client's response: "We added limit for both long and short ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Initialization of Inherited Upgradable Contracts ### Description The `StrategyBaseUpgradeable` contract inherits from `OwnableUpgradeable`, `ReentrancyGuardUpgradeable` and `UUPSUpgradeable`, but only calls the initializers for `OwnableUpgradeable` (`__Ownable_init`) and `UUPSUpgradeable` (`__UUPSUp...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
front-running
false
false
## Low: Solvers could profit from front- and back-running price updates ### Description Solvers can instantly fill their orders with the `solveRequestsVault()` function to deposit into or redeem from the vault if it has enough liquidity. Therefore, solvers theoretically could try to front- and back-run a price updatin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent deletion of redeemed bonds ### Description When a Senior Bond is redeemed, the [NFT is burnt](https://github.com/BarnBridge/BarnBridge-SmartYieldBonds/blob/943df3a8fcd8dd128af3beb0c85a0480c0e95ead/contracts/SmartYield.sol#L313), and then the corresponding [`seniorBonds` mapping entry is deleted](h...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: LACK OF PAUSE FUNCTIONALITY ### Description It has been observed that no pausing mechanism is implemented across the contracts. However, pausing mechanisms can be helpful in various situations, such as preventing users from interacting with specific functions under certain conditions (such as a contract upg...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: State variables should be cached in stack variables rather than re-reading them from storage ### Description The instances below point to the `second+` access of a state variable within a function. Caching of a state variable replaces each Gwarmaccess (100 gas) with a much cheaper stack read. Other less obviou...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Front-run withdrawValidator by submitting proofs can permanently DOS validator unstaking on EigenLayer ### Description **Description:** An attacker can observe the mempool and front-run the `CasimirManager::withdrawValidator` transaction by submitting the same proofs directly on Eigen Layer. Since the proof ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
initialization
true
false
## High: `Fontaine` never stops the flows to the tax and recipient, so the buffer component of the flows will be lost ### Description `Superfluid` flows [reserve](https://docs.superfluid.finance/docs/protocol/advanced-topics/solvency/liquidations-and-toga) 4 hours of the stream flow rate as a buffer for liquidations, ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessarily restrictive data type for timestamps ### Description The protocol handles all timestamp data as `uint32` types, an unnecessarily small data type. All timestamps in the protocol are handled as `uint32` types. ```solidity function _calculateFixedIncome( uint256 principal, uint256 coupon, uin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Only the Rollstaker Admin Can Activate the Next Epoch ### Description **Update** Marked as "Acknowledged" by the client. The client provided the following explanation: Quantstamp notes that the RollStaker does not automatically activate the next epoch nor does it have any sort of time range for how long an 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
access-control
false
false
## Low: Potential for Malicious Airdrop Campaigns Due to Permissionless Deployment and User-Controlled Parameters ### Description **Update** Marked as "Acknowledged" by the client. The client provided the following explanation: > Our contracts are designed with a strong focus on permissionlessness, so we aim to minim...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The balance of RevenueHandler can be drained ### Description Report type: Smart Contract Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/RevenueHandler.sol Impacts: - Theft of unclaimed yield ## Description ## Vulnerability Details Normally, veALCX holders can claim the reward th...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: LACK OF DISABLEINITIALIZERS IN THE IMPLEMENTATION CONTRACT ### Description The contracts use the `Initializable` module from OpenZeppelin, and the implementations of these contracts are not marked as initialized in the constructor. An uninitialized instance can be initialized by anyone to take over the contrac...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
false
false
## Low: Privileged Roles and Ownership ### Description **Update** Marked as "Acknowledged" by the client. The client provided the following explanation: > We have already made an effort to document all privileged roles in the repo docs and will carry these over to end user-facing docs once they are deployed. Our Merk...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: gracePeriod not increased after membership extension ### Description ## Handle gpersoon ## Vulnerability details ## Impact In the function purchaseMembership of FSDNetwork.sol, when the membership is extended then membership[msg.sender].creation is increased, however membership[msg.sender].gracePeriod ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [10] Critical changes should use a two-step pattern and a timelock ### Description Lack of two-step procedure for critical operations leaves them error-prone. Consider adding a two-steps pattern and a timelock on critical changes to avoid modifying the system state. https://github.com/code-423n4/2023-03-asym...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Adversary can make honest parties unable to retrieve their assertion stakes if the required amount is decreased ### Description ### Impact When the required stake (to create a new assertions) is updated to a lower amount, adversary can make the honest party unable to retrieve their assertion stakes. ### Pro...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Potential loss of trading fees if liquidity moves to multiple dexes ### Description In a previous audit, it was mentioned that STRX trading fees are charged for only a single dexPair. The team said they intended to add additional dexPair addresses if meaningful pools emerge. However, right now, there is no way...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Reward Amount in GaugeExtraRewarder Can Be Overestimated ### Description The function [`setDistributionRate`](https://github.com/ThenafiBNB/THENA-Contracts/blob/2bb84cf6bb429e9bac8ac8464f4546da855ef4ca/contracts/GaugeExtraRewarder.sol#L119) of the `GaugeExtraRewarder` contract [first checks that the contrac...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
reentrancy
false
false
## Low: Reentrancy state mutability pattern not followed ### Description **Severity**: Informational **Status**: Acknowledged **Description** In contract “PwIporTokenInternal”, the function “receiveRewards” does not respect the check-effect-interact pattern which my cause unpredicted behaviour in future, as a best ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Centralization risks with a lot of power vested in the `Reporter` role ### Description **Description:** In the current design, the `Reporter`, a protocol-controlled address, is responsible for executing a number of mission-critical operations. Only `Reporter` operations include starting & finalizing a repor...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
rounding
true
false
## High: Anyone Can Get Funds From This Contract. ### Description An attacker can purchase bondETH at a low price and sell it at a higher price. ### Impact An attacker could extract significant amounts of ETH from this market. ### Recommendation ```diff function getRedeemAmount( ... ) public pure returns(uint2...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `BeefyAdapter()` malicious vault owner can use malicious `\_beefyBooster` to steal the adapter's token ### Description Malicious vault owner can use Malicious `\_beefyBooster` to steal the adapter's token. ### Proof of Concept When creating a BeefyAdapter, the vault owner can specify the `\_beefyBooster`. ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
reentrancy
false
false
## Medium: `HolyPaladinToken.sol` uses `ERC20` token with a highly unsafe pattern ### Description _Submitted by jayjonah8_ In `HolyPaladinToken.sol` it imports `ERC20.sol` with some changes from the original Open Zeppelin standard. One change is that the `transferFrom()` function does not follow the Checks Effect an...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Floating pragma ### Description Contracts should be deployed with the same compiler version and flags that they have been tested with thoroughly. Locking the pragma helps to ensure that contracts do not accidentally get deployed using, for example, an outdated compiler version that might introduce bugs that af...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## Gas: State variables can be packed into fewer storage slots ### Description If variables occupying the same slot are both written the same function or by the constructor, avoids a separate Gsset (20000 gas). Reads of the variables are also cheaper. Consider making this state var near one of the address types (does...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unused function `validateWithdrawalCredentials()` ### Description **Description:** The function `validateWithdrawalCredentials()` in CasimirManager is private and isn't called anywhere in the contract. **Recommended Mitigation:** Consider removing the unused function. **Casimir:** Fixed in [d6bd8da](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: Unnecessary Use Of Drop Ability ### Description ## FillReceipt Structure in Orderbook The `FillReceipt` structure within the orderbook is designed to record details regarding the outcome of order matching and execution. Currently, `FillReceipt` includes the drop capability. However, a filled order (represente...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: PRAGMA VERSION ### Description The `BigBangGame` smart contracts use the pragma version `0.6.7` which was released on May 4, 2020. latest pragma version `0.8.16` released on August 8, 2022, solves different issues. It is also noticeable that Solidity versions after `0.8.0` also implement default overflow prote...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Listing potential can not be purchased with discounted price ### Description In the function `SecondSwap_Marketplace::spotPurchase()`, depending on the listing’s discount type, the price is computed accordingly: And then the `baseAmount` that the buyer needs to pay is calculated from the discounted price....
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Minimum and Excess Deposit Checks in `LST` Swaps ### Description **Update** Marked as "Fixed" by the client. Addressed in: `22c750b83b4ec4febf87d195dddec9bd02325a58`. The client provided the following explanation: > Fixed calls to exessive and minimum deposit validation methods. Added unit tests. *...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insufficient Validation Of JSON Metadata ### Description ## AutographDynamicNFTOptionalMarketplaceFilteringNonUpgradeable.sol In `AutographDynamicNFTOptionalMarketplaceFilteringNonUpgradeable.sol`, `setMetadataForAll` is used by the upgrader to update the default metadata for the ERC721 tokens. The input argu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
signature
false
false
## Low: Payload IDs are not re-org safe ### Description Creation of payloads is not re-org safe and may result in a proposal with malicious payloads. A payload is created via an incrementing nonce `_payloadsCount` in `createPayload()`. When there is a re-org and a new transaction which calls `createPayload()` is execu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The Decimal Multiplier Would Not Work For Tokens With > 18 Decimals ### Description **Severity** - Medium **Status** - Acknowledged **Description**: The DECIMAL_MULTIPLIER has been used for tokens such as USDC with 6 decimals (non 18 decimal tokens) , the multiplier would be applied here → So if 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
high
other
true
false
## High: Stale share price usage leading to fund loss and unfair distribution ### Description The share conversion is a critical operation in the `DepositETH` and `DepositUSD` contracts, where deposits and withdrawals are based on the current share price. The share price can fluctuate over time due to the yield receiv...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
front-running
true
false
## Low: The borrower can front-run the claim call and repay after the due-time of the loan without paying extra fees ### Description In the function `InterestCalculator::getProratedInterestAmount`, the `endTime` cannot exceed `loanStartTime + loanDuration`. Therefore, even if `block.timestamp` has surpassed the due ti...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Delegate controlled privilege escalation risk in `LogicalOrWrapperEnforcer` ### Description **Description:** When using the `LogicalOrWrapperEnforcer` enforcer, delegators may define multiple caveat groups with different security properties, expecting that all groups provide adequate security boundaries. Howe...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Floating pragma ### Description The Solidity version of the different contracts in scope is not fixed, some contracts use a Solidity version from 6.12.0 up to 7.0.0, others use a Solidity version greater than 0.8.1. It is recommended that contracts should be deployed with the same compiler version and flags us...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
token
true
false
## Medium: Missing Usage of SafeERC20 Library ✓ Fixed ### Description Tokens compliant with the ERC20 specification could return `false` from the `transfer` or `transferFrom` function call to indicate the transfer has failed, while the calling contract would not notice the failure if the return value is not checked. C...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
liquidation
false
false
## High: User loses collateral converted to pendingBalance when `cash()` or `list()` is called ### Description In OptimisticListingOpensea, there are several functions which update pendingBalances of a proposer: 1. `list()` 2. `cash()` 3. `propose()` Unfortunately, in `list()` and `cash()` the = operator is used ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Cannot create retroactive vesting ### Description Certain large protocols have promised vesting schedules to contributors that begin at a certain timestamp, but due to the heaviness of governance processes, the vest is not programmed on-chain until after the vest is intended to begin. The line ``` if (_start...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
false
false
## Gas: Using `private` rather than `public` for constants, saves gas ### Description If needed, the values can be read from the verified contract source code, or if there are multiple values there can be a single getter function that [returns a tuple](https://github.com/code-423n4/2022-08-frax/blob/90f55a9ce4e25bceed...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unlocked Pragma ### Description **Update** The team locked the version to `0.8.9` for some contracts in the commit `cf17a6fe`. However, within the scope of this audit, contracts under `LP/`, `ERC721Bridges/`, and `standards` still have unlocked pragma. **Description:** Every Solidity file specifies in the hea...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Storage ### Description ### Caching storage values in memory The code can be optimized by minimising the number of SLOADs. SLOADs are expensive (100 gas) compared to MLOADs/MSTOREs (3 gas). Here, storage values should get cached in memory (see the `@audit` tags for further details):
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Malformed data could cause the transaction parser to loop infinitely ### Description The `parser_runtimeargs_getData` function could loop infinitely if provided with malformed data. The `for` loop in `parser_runtimeargs_getData`, shown in Figure 1.1, uses a `uint8_t` loop index variable but a `uint32_t` loop bo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
cross-chain
true
false
## High: Users will lose their cross-chain transaction if the destination router do not have enough WETH reserves. ### Description When the DecentEthRouter receives the dcntEth OFT token from a cross-chain transaction, if the WETH balance of the destination router is less than amount of dcntEth received (this could be...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: Missing zero address check in setYieldTrackers() ### Description **Severity**: Medium **Status**: Acknowledged **Description** The yieldTrackers array can have zero address being set in its array of addresses via the setYieldTrackers function. This could lead to revert on function calls to recoverClaim(...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `wethAddress` can be const ### Description `wethAddress` can be const because it isn't changing: https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/core/WETHGateway.sol#L31 ### Recommendation We recommend to set `wethAddress` as a constant.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
token
true
false
## High: Repaying a Loan with Permit in UErc20.sol Wrongly calculates the interest to be paid this Reduce/Increase profits for the protocol as interest calculations are not performed correctly. ### Description The function `_repayBorrowFresh` in `UErc20.sol` wrongly calculates the interest to be paid when repaying a l...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
dos
false
false
## Medium: The `Gravity.sol` should have pause/unpause functionality ### Description _Submitted by defsec_ In case a hack is occuring or an exploit is discovered, the team (or validators in this case) should be able to pause functionality until the necessary changes are made to the system. Additionally, the gravity.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...
cyfrin_structured
low
other
false
false
## Low: `Portico::start` not used internally could be marked external ### Description `Portico::start` not used internally could be marked external.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Expired maturities longer than `FixedLib.INTERVAL` with unaccrued earnings may be arbitraged and/or might lead to significant bad debt creation ### Description `Market::totalAssets()` only accounts for the unassigned earnings of maturities that are in the future or during the past interval. Thus, if a matur...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fully slashed transcoder can vote with 0 weight messing up the voting calculations ### Description If a transcoder gets slashed fully he can still vote with 0 amount of `weight` making any other delegated user that wants to change his vote to subtract their `weight` amount from other delegators/transcoders....
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Ensure to call the `_twapUpdate` function before making any changes to the `reserves` ### Description There is a `_twapUpdate` function to calculate `cumulative price`. https://github.com/code-423n4/2024-03-abracadabra-money/blob/1f4693fdbf33e9ad28132643e2d6f7635834c6c6/src/mimswap/MagicLP.sol#L545-L558 Ensur...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A cap is needed on the amount of Note than can be borrowed ### Description _Submitted by Picodes_ The fact that there is no cap on the amount of Note that can be borrowed makes the Oracle Extractable Value unlimited. But as you intend to rely on TWAP, you need to make sure the cost of oracle manipulation ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Some of the following contracts have functions with incomplete or lacking docstrings: * [`MasterWhitelist.sol`](https://github.com/TruFin-io/staker-audit-april/blob/9f199451b5220f73cfc1eb95dc13381acf804b15/contracts/helpers/MasterWhitelist.sol) * [`TrueStakeMaticv2.sol`](ht...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: User can't `unlock` when `getTotalUnits == 0` even though tax is zero. ### Description User can't unlock when `STAKER_DISTRIBUTION_POOL.getTotalUnits() == 0` or `LP_DISTRIBUTION_POOL.getTotalUnits() == 0`. But `stakerAllocationBP` or `liquidityProviderAllocationBP` can be zero and [`stakerAllocationBP + liq...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Mid-Season Merkle Root Update Invalidates Previously Valid Proofs ### Description In the `VettedGate` referral reward system, the on-chain contract stores a single active `merkleRoot` and verifies claims with respect to that root. If the root is updated mid-season — even without removing a legitimate referrer ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Non Atomic Upgrade And Migrate ### Description ## Wormhole and Token Bridge Upgrade Implementation The original implementation of wormhole and token_bridge upgrade consists of two steps: 1. Upgrade the package through the native Sui upgrade command. 2. Custom migration logic facilitates the switch from old t...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
true
false
## High: Missing Side Check On Market Vault Account ### Description ## Vulnerability Report The vulnerability is related to a potential mismatch between the side of an order and the market vault utilized for depositing assets in `place_order`. `place_order` is responsible for validating and placing a new order in a t...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: Stealing SoP rewards by manipulating the total rain roots during converting ### Description One can potentially hijack SoP rewards by manipulating the pipeline function calls during the conversion process. ### Impact Stealing SoP rewards.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Extensive Reliance on External Applications ### Description **Update** Marked as "Fixed" by the Venus team. Addressed in: `244a44662f105112bc61872c80fc890e6e4d4574`. The Venus team provided the following explanation: > The commit is actually in the documentation repo: https://github.com/VenusProtocol/venus-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
rounding
false
false
## Low: Saving large JSON integers could result in interoperability issues ### Description The parsing of JSON integers generated by the deposit tool differs from mainstream implementations such as NodeJS and jq. The JSON standard warns about certain "interoperability problems" in numeric types outside the range [-(2*...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [04] Some users can deposit but can never withdraw ### Description In `LiquidRon`, the contract allow users to `deposit()` or `mint()` using the `wRON` token, but during `withdraw()` or `burn()` users are forced to receive native `RON` or the txn will revert: * This is a problem cause the depositor may have b...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
storage
true
false
## Gas: Shorten the array rather than copying to a new one ### Description Inline-assembly can be used to shorten the array by changing the length slot, so that the entries don't have to be copied to a new, shorter array. ### Proof Of Concept https://github.com/code-423n4/2023-03-wenwin/tree/main/src/TicketUtils.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
low
other
true
false
## Low: Insufficient Validation Of Vesting Duration ### Description The `getReleasableAmount` function in the TreasuryVesting contract appears to lack validation for the `duration` field. However, this is not a security concern as the token release schedule is effectively controlled by the `releaseSteps` and `timeStep...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TOCTOU in the perms package Create method ### Description The `perms` package offers a method to create a file with a given set of permissions (the Create method, shown in figure 4.1). However, it is prone to time-of-check to time-of-use (TOCTOU) vulnerabilities because the `Stat`, `Chmod`, and `OpenFile` operat...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
access-control
true
false
## Medium: `MasterChef.sol` A `depositor` can deposit an arbitrary amount without no cost ### Description _Submitted by WatchPug, also found by cmichel_ The owner of `MasterChef.sol` can add a `depositor` with `addDepositor()`. [MasterChef.sol#L78-L80](https://github.com/code-423n4/2022-02-concur/blob/72b5216bfeaa7c...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential Inconsistency in Deposit Cap Update ### Description **Update** Marked as "Fixed" by the client. Addressed in: `878ad5617d4dcaef89c3a3cecef5e4751f6619b5`, `47dc0ad6073a640b34f40d94dab82231996cb9b1`. The client provided the following explanation: > Deposit cap can't be set below currently deposited am...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: FULL-Restricted Users Can Still Deposit ### Description The deposit flow does not fully enforce the FULL_RESTRICTED_STAKER_ROLE check. When a user with FULL restriction calls deposit(assets, receiver), the restriction logic fails to prevent the operation, allowing restricted users to bypass intended complianc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Do not hardcode LayerZero's proprietary chainIds ### Description As stated by LayerZero [here](https://layerzero.gitbook.io/docs/technical-reference/mainnet/supported-chain-ids): Since the chainIds are proprietary, they are subject to change. As recommended by LayerZero on point 4 [here](https://layerzero.gi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Single-step ownership change is risky ### Description The codebase primarily follows a two-step ownership change pattern. However, in specific sections, a single-step ownership change is utilized. Two-step ownership change is preferable, where: - The current owner proposes a new address for the ownership chan...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: In case the portfolio makes a loss, the total reserves and reserve ratio will be inflated. ### Description The pool balance is transferred to the portfolio for investment, for example sending USDT to Curve/Aave/Balancer etc. to generate yield. However, there are risks associated with those protocols such as...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
true
false
## Gas: Some equations can be inlined to reduce number of variables declarations ### Description `_getUtility` Can be changed to: `_getPointGivenXandUtility` Can be changed to: `_getPointGivenYandUtility` Can be changed to:
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
dos
false
false
## Low: Wormhole idle timeout too long ### Description The wormhole service sets the idle timeout at five minutes without verifying that the client has sent basic registration. The length of this timeout may enable “slowloris”-style denial of service attacks. The following code sets the idle timeout on connection: `...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Hardcoded Emission Values Lead to Incorrect Reward Calculations ### Description The `GaugeController` contract uses hardcoded values for calculating emissions in the `_calculateRWAEmission` and `_calculateRAACEmission` functions. This deviates from the intended behavior described in the documentation, which 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
initialization
false
false
## Low: Inconsistencies with the whitepaper. ### Description **Severity**: Informational **Status**: Acknowledged **description** 1) For the 4th tree level in the whitepaper, the following values are set: Percentage reserved from bonus size - 80, and Maximum reserve period in days - 2. But in the bpnmMain 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
reentrancy
true
false
## Low: DCA task IDs can be manually set ### Description The `taskId` parameter of a DCA should be set only by Gelato, but it can be arbitrarily set by the user. This can break assumptions made by Gelato’s components and break other third-party integrations. The `createDca` function does not check whether the user ha...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
storage
false
false
## Medium: Instance Metadata Extraction Through SSRF ### Description **Update** The issue was fixed using an external proxy in `d636d4d`. **Update** As of `b84cd5f`, this issue is unresolved. A blacklist approach cannot prevent an attack that involves supplying a URL controlled by the attacker that redirects to, for...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
overflow
false
false
## Low: Integer overflow vulnerability in brotli-sys ### Description Running `cargo audit` on the codebase reveals an integer overflow vulnerability in `brotli-sys`, a dependency inherited in the Stylus repository. The dependency does not currently have an update available to fix the vulnerability. Note, however, that ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
false
false
## High: Rocketpool CLI - Lax data validation and output sanitation ✓ Addressed ### Description `ValidateTimezoneLocation` and `ValidateDAOMemberEmail` are only used to validate user input from the command line. Timezone location information and member email addresses are stored in the smart contract’s string storage,...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Rename `isAllowed` to `wasAllowed` in `Allowlist::allowUser`, `disallowUser` ### Description **Description:** `Allowlist::allowUser`, `disallowUser` return the existing `allowed` status into a named return variable called `isAllowed`, before potentially modifying the `allowed` status. Since these functions ca...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
access-control
false
false
## Medium: Ongoing or Imminent Sales Can Be Arbitrarily Updated ### Description **Update** Marked as "Fixed" by the client. Addressed in: `15f4cc0e3fe47cc36652505b4686d1cd3e6eb7bd`. The client provided the following explanation: > A check was added in update_sale verifying that the sale has not started before changes...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: CREATE YOUR OWN IMPORT NAMES INSTEAD OF USING THE REGULAR ONES ### Description To improve code readability, it is recommended to use specific names when importing instead of regular ones. ### PROOF OF CONCEPT ### RECOMMENDATION ### Recommendation ```diff -11: import "@openzeppelin/contracts/token/ERC20/ERC...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential swap failure in `UniswapModule` ### Description **Severity** **Impact:** High **Likelihood:** Medium **Description** During the liquidation process, all assets in a `MarginAccount` are converted to the `baseToken` (USDC), and debts in each `LiquidityPool` are cleared with the help of the `_clear...
0