prompt
listlengths
2
2
source
stringclasses
3 values
severity
stringclasses
5 values
category
stringclasses
186 values
has_code
bool
2 classes
has_poc
bool
2 classes
reference_response
stringlengths
23
5k
firm
stringclasses
26 values
quality_score
float64
0
5
protocol
stringclasses
398 values
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Fee depletion via many useless Bitcoin transactions ### Description A malicious proposer can choose to grief by sending many Bitcoin transactions which are ultimately useless. For instance, they can send a Bitcoin transaction that assigns only the change UTXO as the output. This will cause the approver to skip...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
token
true
false
## Low: `AllowedCalldataEnforcer` cannot authenticate empty calldata preventing `receive()` function calls ### Description The `AllowedCalldataEnforcer` contract has a design flaw that prevents it from authenticating calls with empty calldata. This issue arises from a requirement check in the `getTermsInfo` function 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
liquidation
false
false
## Medium: _calculateMaxBorrowCollateral calculates repay incorrectly and can lead to set token liquidation ### Description When calculating the amount to repay, `_calculateMaxBorrowCollateral` incorrectly applies `unutilizedLeveragePercentage` when calculating `netRepayLimit`. The result is that if the `borrowBalance...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Loan migration will be DoS 'd if lender is blacklisted ### Description In loan migration, there is a potential DoS if the old lender is blacklisted by a payable currency. Migration uses repay instead of force repay. ### Recommendation Consider using force repay, and for the same lender condition, transfer fun...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
solodit_api
medium
Front-Running
false
false
## Medium Risk Assessment ## Severity Medium Risk ## Context River.1.sol#L27 ## Description The system is designed in a way that depositors receive shares (lsETH) in return for their ETH deposit. A share represents a fraction of the total ETH balance of the system at a given time. Investors can claim their staking p...
Spearbit
5
Liquid Collective
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
oracle
false
false
## High: Ability To Update Signer Key ### Description ## OracleSetConfigs Instruction In the `OracleSetConfigs` instruction, the oracle authority may change the `secp256k1_signer` of the enclave after verification. The `secp256k1_signer` key is utilized to verify that the signature on the quote (or any related data) ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Advance orders of CONTRACT order types can generate orders with different consideration recipients that would break the aggregation routine ### Description When Seaport receives a collection of advanced orders to match or fulfill, if one of the orders has a CONTRACT order type, Seaport calls the `generateOrder...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Reduce the size of error messages (Long revert Strings) ### Description Shortening revert strings to fit in 32 bytes will decrease deployment time gas and will decrease runtime gas when the revert condition is met. Revert strings that are longer than 32 bytes require at least one additional mstore, along with...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: _stakingTokenVote can have memory attribute instead of storage ### Description `_reset()` uses `address[] storage _stakingTokenVote = stakingTokenVote[_tokenId];` to access `_stakingToken`'s within the loop as part of the reset logic. Given that it uses `delete stakingTokenVote[_tokenId];` directly on the stat...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 != 0 instead of > 0 for unsigned integer comparison ### Description *Instances (5)*: [Link to code](https://github.com/code-423n4/2022-12-tessera/blob/f37a11407da2af844bbfe868e1422e3665a5f8e4/src/modules/GroupBuy.sol) [Link to code](https://github.com/code-423n4/2022-12-tessera/blob/f37a11407da2af844bbf...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistencies In Calculation Of Fee Amount ### Description ## VTVLVesting Token Transfer Issue In `VTVLVesting::_transferToken`, the `_realFeeAmount` parameter passed to the USDC token transfer function is not correctly converted into a USDC amount with six decimal points. This issue may result in a loss o...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
solodit_api
high
First Depositor Issue
false
true
_Submitted by GreyArt, also found by 0xDjango, CertoraInc, cmichel, rayn, TomFrenchBlockchain, and WatchPug_ [Collateral.sol#L82-L91](https://github.com/code-423n4/2022-03-prepo/blob/main/contracts/core/Collateral.sol#L82-L91)<br> The attack vector and impact is the same as [TOB-YEARN-003](https://github.com/yearn/ye...
Code4rena
4.25
prePO
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
front-running
true
false
## Medium: Infinite loop in the `exitValidators()` prevents users from calling `requestUnstake()` ### Description **Description:** When users call function `requestUnstake()` to request to unstake their ETH, the `CasimirManager` contract will calculate if the current expected withdrawable balance is enough to cover al...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
logic
false
false
## Medium: Convoluted transaction verification implementation ### Description [`execute`](https://github.com/OpenBazaar/smart-contracts/blob/c4f02cdd41cb85d28bba637a01f20a8ee8bb04bd/contracts/escrow/Escrow_v1_0.sol#L324) is the function responsible for releasing funds to destination addresses, once all the necessary v...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
rounding
true
false
## Medium: Users lose their entire investment when making a deposit and resulting shares are zero ### Description ### Impact Users could receive `0` shares and thus lose their entire investment when making a deposit. ### Proof of Concept Alice calls `deposit` with `999` assets, with herself as the receiver Shares...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Cache memory array length if expected size of array is >= 3 ### Description **Description:** Cache memory array length if [expected size of array is >= 3](https://x.com/DevDacian/status/1791490921881903468): **Zaros:** Fixed in commit [3c5d345](https://github.com/zaros-labs/zaros-core/commit/3c5d3456eefa7cde...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [16] Avoid hardcoded values ### Description It is not good practice to hardcode values, but if you are dealing with addresses much less, these can change between implementations, networks or projects, so it is convenient to remove these values from the source code. ### Affected Source Code * [Market.sol:44]...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: External calls in loop can lead to denial of service ### Description Several function calls are made in unbounded loops. This pattern is error-prone as it can trap the contracts due to the gas limitations or failed transactions. For example, `AaveStrategy` has several loops that iterate over the `assetsMapped...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Misleading comment about destroying the wallet ### Description The `Marmo` contract has a [special](https://github.com/ripio/marmo-contracts/blob/d3fb5922a4f01e47d585343d08cccfad659b3584/contracts/Marmo.sol#L16) [`INVALID_ADDRESS`](https://github.com/ripio/marmo-contracts/blob/d3fb5922a4f01e47d585343d08cccfad6...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: With `0 address` control of `owner`, it is a best practice to maintain consistency across the entire codebase ### Description The `owner` authority is an important authorization in almost all contracts. This address is defined in the constructor or `initialize`, where `0 address` control is already included in...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Missing notification about chain switching capability during connection ### Description The Gemini Wallet interface does not inform users that connected dapps can switch chains when establishing a connection. Unlike other wallets, which explicitly warn users about chain switching capabilities during the connect...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ASSERTIONS LACK MESSAGES ### Description Several instances of assertions without messages were identified. The lack of message in `require` assertion might be unfavorable for end users.`require` Code Location ------------- `LineOfCredit.sol` `LineOfCredit.sol`- Line 69: `require(ids.length > 0 && credits[ids...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A Non-Zero Discount Prevents All Purchases Of Cards ### Description The `getAllocations()` function on line [60] calculates the allocation percentage of the vault and referrer. On line [66] of the Processor, the `vaultPercentage` variable is calculated using both `discount` and `refer`. However, `discount` is...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
dos
true
false
## Low: Limit Ambiguity ### Description ## LzAppUpgradeable.sol Gas Limit Checks ## Function: _checkGasLimit The gas limit check has three scenarios: 1. `minDstGasLookup[_dstChainId][_type] != 0` and `_extraGas == 0` 2. `minDstGasLookup[_dstChainId][_type] == 0` and `_extraGas != 0` 3. `minDstGasLookup[_dstChainId]...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
liquidation
false
false
## Low: Loss of Precision Due to Division before Multiplication ### Description **Update** Marked as "Acknowledged" by the client. The client provided the following explanation: > There is always a multiplication before division, which can basically meet the precision requirements of the protocol. **File(s) affected...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Layout order does not comply with best practices ### Description This is a [best practice](https://docs.soliditylang.org/en/latest/style-guide.html#order-of-layout) that should be followed. Inside each contract, library or interface, use the following order: 1. Type declarations 2. State variables 3. Events ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unchecked return ### Description **Severity**: Medium **Status**: Resolved **Description** dpnm_sc.sol - In buyTurnoverWithGWT(uint) & buyEarnLimitWithGWT(uint) , the return value from the burning operation of gwt is not validated gwt.burn(msg.sender, gwtCost). In buydPNM(uint) & selldPNM(uint) , the ret...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: assets < s.depositCap invariant can be broken for public vaults with non-zero deposit caps ### Description The following check in `mint` / `deposit` does not take into consideration the new shares / amount supplied to the endpoint, since the `yIntercept` in `totalAssets()` is only updated after calling `sup...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
signature
true
false
## Low: Nonstandard usage of nonce ### Description The protocol implemented two withdraw functions `withdrawDeposit()` and `withdraw()`. While the function `withdrawDeposit()` is designed to be used by the depositor themselves, the function `withdraw()` is designed to be used by anyone who has a signature from the dep...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Customers cannot be `topUp()`ed a second time ### Description _Submitted by IllIllI_ [CompoundHandler.sol#L71](https://github.com/code-423n4/2022-04-backd/blob/c856714a50437cb33240a5964b63687c9876275b/backd/contracts/actions/topup/handlers/CompoundHandler.sol#L71) [CompoundHandler.sol#L120](https://github.co...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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-10 updatePeriod() distributes the same amount of emissions regardless of the time passed from the last distribution ### Description **Description:** The function `updatePeriod()` distributes new rewards when it’s called more than one week after the last distribution. However, if a distribution only ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
overflow
true
false
## High: Deposit allows for stealing underlying tokens from TruefiProvider, IdleProvider, YearnProvider, BetaProvider, CompoundProvider and AaveProvider balances ### Description TruefiProvider, IdleProvider, YearnProvider deposit() accept both underlying and yield bearing tokens from user and allow for stealing all un...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: Faulty Escrow config will lock up reward tokens in Staking contract ### Description ### Impact When a Vault owner creates/adds a reward token to the Staking contract with faulty escrow config parameters, the reward tokens sent to the Staking contract will forever be locked up. This can happen since there 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...
solodit_api
medium
oracle
true
false
Source: https://github.com/sherlock-audit/2023-06-tokemak-judging/issues/604 ## Found by xiaoming90 The price returned by the oracle is not adequately verified, leading to incorrect pricing being accepted. ## Vulnerability Detail As per the [example](https://github.com/tellor-io/tellor-caller-liquity/blob/3ed91e4...
Sherlock
5
Tokemak
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
token
true
false
## Gas: 3S-LENFT-N23 Trading/SwapRouter.sol: Replace line to reduce gas an improve readability ### Description The current implementation of the SwapRouter, function swap() has the following statement: ```solidity // If the price difference + sell price is greater than the buy price, return the difference to the user...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Empty `revert()` statement ### Description During the security assessment, an empty `revert()` statement was found to be missing an error message. This was found on `NFTPoolFactory.sol`: ``` if ( borpaMaster == address(0) || borpa == address(0) || xBorpa == address(0) || cdtToken == address(0) || g...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Re-entrant Modifier [To be checked by the team] ### Description **Update** Marked as "Fixed" by the client. Addressed in: `df23927a8888bc70d3f6431ff4efc34f135e48da`, `95dea2abdd7cf637d5a3335c21bdeac8ec75b832`. The client provided the following explanation: > Commit `df239` added `nonReentrantGuard`...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Factory.sol : Issue with arbitrary data as signature in signature based call and deploy methods. ### Description In Factory contract, deploy and call methods are using the signature based approach for deployment. This is not safe when we look at the way the signature is comes from user. ### Impact 1. Signa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Locked Funds Due to Invalid Metadata ### Description ## Jetton::OP::TRANSFER_NOTIFICATION Opcode The `Jetton::OP::TRANSFER_NOTIFICATION` opcode is triggered when a jetton (token) transfer notification is received. When receiving a `Jetton::OP::TRANSFER_NOTIFICATION` with an invalid `$md` (where `$md` is neith...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Weak Seed Generation Process ### Description The current seed generation process in the **generateKey** function potentially uses a weak source of entropy, which could compromise the security of the generated keys. ``` func generateKey(i int) (string, []byte) { if mnemonic := env("SEED"+strconv.Itoa(i), "")...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
false
false
## Low: Wrong allowances can be abused by the owner ### Description The function `call()` allows transferring tokens and NFTs that have an allowance set to the pair. Normally, allowances should be given to the router, but they could be accidentally given to the pair. Although `call()` is protected by `onlyOwner`, 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
signature
true
false
## Low: TRST-L-1 CoW Swap orders are seen as filled although they are cancelled ### Description **Description:** CoW Swap orders prepared by DCAStrategy can be cancelled using the following function. Order status is viewed by `isOrderFullyFilled()`: An issue arises from the fact invalidateOrder on GPv2Settlement 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: [01] No domain check for `\( x \le 0 \)` ### Description ### Issue The function `ln()` does not verify whether the input represents a non‐negative number. Mathematically, `\(\ln(x)\)` is undefined for `\(x \le 0\)`. ### Risk * A zero or negative packedFloat could lead to unpredictable or meaningless results...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [13] Potential DoS in message routing logic due to a single invalid message ### Description https://github.com/code-423n4/2024-08-axelar-network/blob/69c4f2c3fcefb1b8eb2129af9c3685a44ae5b6fe/axelar-amplifier/contracts/gateway/src/contract/execute.rs#L32-L48 The current implementation of `route_outgoing_messa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: MISSING REENTRANCY GUARD ### Description To protect against cross-function re-entrancy attacks, it may be necessary to use a mutex. By using this lock, an attacker can no longer exploit the withdrawal function with a recursive call. OpenZeppelin has its own mutex implementation called `ReentrancyGuard` which p...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
liquidation
false
false
## High: `AbstractVault` May Not Have Enough Funds for Lenders to Remove Liquidity ### Description **Update** The team has suggested two potential strategies for incentivizing borrowers to pay back their loans. The first is a mechanism implemented within the code to only allow a position to be open for `1` year after ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Enhanced invariant check in `PoolMath` contract ### Description A security concern has been identified in the [`_getRateAnchor`](https://github.com/Napier-Lab/v1-pool/blob/e77d408da81f0bbc96fd71ac710c6cf3a9338ef3/src/libs/PoolMath.sol#L219) function within `PoolMath`. Currently, the function includes a `requ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: price spikes cause the selected operator to be vulnerable to front-running and be slashed ### Description In the `HolographOperator`contract, gas price spikes expose the selected operator to frontrunning and slashing vulnerabilities. The current code includes: ``` require(gasPrice >= tx.gasprice, "HOLOGRAPH:...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
logic
true
false
## Medium: Incorrect Liquidity Calculation ### Description ## Issue with `get_borrow_rate` The issue in `get_borrow_rate` may result in miscalculated utilization ratios and lower interest rates for borrowers than intended. The function currently calculates `total_liquidity` by adding the `reserve_amount` (unborrowed ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
logic
true
false
## Medium: Calling `Position._marketSell` function compares `fill_amt` that includes fee to `min_fill_amount` that does not include fee ### Description Calling the following `Position._marketSell` function calls `rubiconMarket.sellAllAmount(ERC20(_asset), _payAmount, ERC20(_quote), _minFill)`, where `_minFill` does no...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
dos
true
false
## Medium: First `bond` caller could cause DoS ### Description The first `bond` caller could cause DoS by providing a dust amount of token if they provide `_amount` that is enough to make `_tokensMinted` but cause the rest of `_transferAmt` to be 0. ```solidity function _bond(address _token, uint256 _amount, uint25...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: No message in “require” statements. ### Description **Description** StakingB_1.sol Line 546 StakingB.sol Lines 80, 95, 97, 99, 102, 103, 115, 117 To hold the exception error messages must be added. **Recommendation**: Add an error message to each exception.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: It is possible to process a non-existing array element or skip an array element ### Description At the line https://github.com/Grandthrax/yearnV2-generic-lender-strat/blob/979ef2f0e5da39ca59a5907c37ba2064fcd6be82/contracts/Strategy.sol#L424 is working with the elements of the `_newPositions` array in a loop. ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## High: ERC721Checkpointable: delegateBySig allows the user to vote to address 0, which causes the user to permanently lose his vote and cannot transfer his NFT. ### Description _Submitted by cccz, also found by berndartmueller, bin2chen, csanuragjain, IEatBabyCarrots, jayphbee, KIntern&#95;NA, Lambda, and zzzitron_ ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The Lowest contributor of the top contributor's list can be removed unfairly ### Description When a new deposit is made the list of top contributors is updated in the `_updateTopContributors` function. If the list is full (33 contributors), the lowest contributor is searched. If the contribution of the curren...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: reconcile() creates deposits out of thin air ### Description A call to `reconcile()` with non-zero `maxApprovedGasSpend` increases surplus and deposit. Assuming `maxApprovedGasSpend` fits within the bonded balance of the current solver, this will later on be _credited to the solver. However, there is no regis...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Don't add duplicate `documentHash` to `DocumentManager::DocumentStorage::_docHashes` when overwriting via `_setDocument` as this causes panic revert when calling `_removeDocument` ### Description **Description:** `DocumentManager::_setDocument` intentionally allows overwriting but when overwriting it adds 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
signature
false
false
## Low: delegateBySig can use malleable signatures ### Description The function `delegateBySig` uses `ecrecover` but does not check for the value of the signature. This oversight may allow the use of other signatures with higher numerical values that map to the same signature. Additionally, since the code employs nonc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
logic
false
false
## Low: Insecure Assumptions in Input Parsing: Multi Layer Splitting on Delimiter Based Data Field ### Description **Update** Marked as "Fixed" by the client. Addressed in: `a1694d38d25937d73a1d507bad4166bf7944467b`. The client provided the following explanation: > Add secure transaction ID parsing with regex validat...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
dos
true
false
## Medium: Unsafe downcasting in issue(...) can be exploited to cause permanent DoS ### Description The `amtRToken` is a user supplied parameter in the `issue(uint256 amtRToken)` function ```sol uint192 amtBaskets = uint192( totalSupply() > 0 ? mulDiv256(basketsNeeded, amtRToken, totalSupply()) : amtRToken ); ``` The...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: MBasisRedemptionVaultWithSwapper does not update mBasis daily limit or allowance when conducting mBasis->mTBill swap. ### Description MBasisRedemptionVaultWithSwapper does not update mBasis daily limit or allowance when conducting mBasis->mTBill swap. ### Impact mBasis daily limit and token allowance 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
access-control
false
false
## Low: Missing Validation Zero address validation ### Description **Severity** : Low **Status**: Resolved **Description**: The setManager function in the PairInfos contract allows the gov address to set a new manager address. However, this function does not include a check to ensure that the new manager address is...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: CLPool.initialize implementation initializer could be re-initialized ### Description Pools are deployed as proxies via the OZ Clones library, and their associated implementations require an initializer as a replacement for a constructor. Just as a constructor, this should only be callable once, ideally on depl...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
## Medium: The Referrer Receives the Fees Even If the Position Execution Fails ### Description If a user is accepting a referrer to have fee discounts, it might not be the best for them due to some conditions. The referrer fee is taken every time from the referee whenever the referee has a position interaction. File:...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User deposits can be blocked ### Description Report type: Smart Contract Target: https://testnet.snowtrace.io/address/0x2cAa1315bd676FbecABFC3195000c642f503f1C9 Impacts: - Griefing (e.g. no profit motive for an attacker, but damage to the users or the protocol) ## Description ## Brief/Intro Currently 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
token
true
false
## Low: Outdated references to implementation details in `ERC20Referrer` should be replaced ### Description **Description:** `ERC20Referrer` makes multiple references to balances being stored as `uint232`, with the upper 24 bits of the storage slot used to store the lock flag and referrer; however, this is outdated 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
low
oracle
false
false
## Low: ChainlinkARBOracle.consult will revert phase id was increased for chainlink aggregator ### Description ChainlinkARBOracle.consult will revert phase id was increased for chainlink aggregator, because wrong round will be requested instead of previous one. ### Impact Call will revert as price will not be validat...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Compound liquidity computation uses outdated cached borrowIndex ### Description The `_isLiquidatable` function iterates over all user-entered markets and calls `_getUserLiquidityDataForAsset(poolToken)` followed by `_getUserBorrowBalanceInOf(poolToken)`. However, it only updates the indexes of markets that ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
storage
true
false
## Medium: Too much fee charged when Seaport is partially filled ### Description When a user fulfills an order using SeaportProxy, fees are charged in the `\_handleFees` function based on orders.price. According to the Seaport documentation, Seaport allows partial fulfillment of orders, which results in too much fee...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Accounting Losses Can Be Frontrun By Redemptions ### Description Daily accounting updates can be blocked by a user frontrunning the request and initiating a withdrawal, resulting in the `doAccounting()` call reverting. Users can also utilise this strategy to avoid daily losses if they are sustained by the syst...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
DOS
true
false
Source: https://github.com/sherlock-audit/2022-09-notional-judging/issues/66 ## Found by xiaoming90 ## Summary Malicious users can lock up all the leverage vaults offered by Notional causing denial-of-service by bypassing the BPT threshold and subseqently trigger an emergency settlement against the vaults. ## Vul...
Sherlock
5
Notional
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: The `Claim.amount` field can be omitted ### Description An optimization opportunity is identified in the `WithdrawalQueue._withdrawalQueue` function. Currently, the function utilizes `claimData.amount`, which is redundant as its value is always equivalent to the difference between `claims_[id].accumulated` 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...
solodit_api
high
token
true
false
**Description:** The `receive` fallback function in `CasimirManager` increases `tip` balance if the sender is not the `DelayedWithdrawalRouter`. The implicit assumption here is that all withdrawals, full or partial, are routed via the `DelayedWithdrawalRouter`. While this assumption is true incase of partial withdrawal...
Cyfrin
3
Casimir
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
false
## Security Analysis Report ## Severity **Medium Risk** ## Context `GClaimManager.sol#L36-75` ## Situation The function `join()` of `GClaimManager.sol` pulls target to backfill for previous `collect()` calls. However, if `collect()` hasn’t been called for a long time (or not called at all), the user might not have e...
Spearbit
5
Sense
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Discrepancy In Interest Accrual ### Description ## Lending Pool State Information Inconsistency In `lending_pool`, certain functions that provide state information about the pool (such as `pool_supply`, `current_utilization`, and `borrow_rate_bps`) do not consistently accrue interest before returning the upda...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No check on newTimestamp value from _priceFeeder ### Description Within the `updatePrice` function in the [`PeriodicPriceBucket` contract](https://github.com/mcdexio/mai-fund-protocol/blob/98af0d1d7e9872ba2b5e734e2a43c161ef635608/contracts/oracle/PeriodicPriceBucket.sol), the values of [`newPrice` and `newT...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Avoid unnecessary storage updates ### Description Avoid updating storage when the value hasn't changed. If the old value is equal to the new value, not re-storing the value will avoid a `SSTORE` operation (costing 2900 gas), potentially at the expense of a `SLOAD` operation (2100 gas) or a `WARMACCESS` operati...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unsafe calls to optional ERC20 functions ### Description `decimals()`, `name()` and `symbol()` are optional parts of the ERC20 specification, so there are tokens that do not implement them. It's not safe to cast arbitrary token addresses in order to call these functions. If `IERC20Metadata` is to be relied on,...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
other
true
false
## High: Attacker can cause losses to others by partially closing their position at an unfavorable price ### Description In our new perp order flow, we verify whether the leverage is valid using `check_client_leverage_from`. However, this check is only executed if any of the following conditions are true: ```rust curr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
oracle
false
false
## High: Insufficient Validation On Oracle Prices Could Lead to Stale Outputs ### Description **Severity**: High **Status**: Acknowledged **Description** The PushOracle contract allows for the setting of prices for base / quote pairs by permissioned entities via the setPrice and setPrices functions however, there ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
front-running
false
false
## Medium: Sudden Price Change Can Enable MEV Exploit ### Description In the [`Oval` contract](https://github.com/UMAprotocol/oev-contracts/blob/0f2c18660fc342ced7c7177577432f7d06481684/src/OevShare.sol), if the [`unlockLatestValue` function](https://github.com/UMAprotocol/oev-contracts/blob/0f2c18660fc342ced7c7177577...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Caching variables can result in gas savings ### Description In the `PayrollManager::executePayroll` method, you can improve efficiency by caching the `to.length` value in a variable. This change will prevent the value from being called three times at the start of the method and again multiple times within one ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: In-flight transfers by the relayer can be reverted when setMaxRoutersPerTransfer is called beforehand by a lower number ### Description ## Security Assessment Report ## Severity: Low Risk ### Context: - RoutersFacet.sol#L338 - BridgeFacet.sol#L586 ### Description: For in-flight transfers where an approved s...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: It is not possible to add only 1 asset to the vault. ### Description **Severity**: Medium **Status**: Resolved **Description** The `addNewAsset()` function within the `VaultFacet.sol` smart contract is used to set compartment percentages to assets. The total sums of percentages should always hold to be ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
storage
false
false
## Medium: Inconsistent behavior between ecrecover2 and ecrecover [sample] ### Description The `ecrecover2` function of the `ECDSA` contract invokes the `ecrecover` precompile but [ignores the return value](https://github.com/eth-infinitism/account-abstraction/blob/8832d6e04b9f4f706f612261c6e46b3f1745d61a/contracts/sa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Small Deposits Can Increase Cost of `batchRelease()` Function ### Description **Update** Marked as "Fixed" by the client. Addressed in: `f51d133`. **File(s) affected:**`CampTimelockEscrowNativeOFT.sol` **Description:** This escrow bridge relies on a queue to manage deposits. All new deposits are appended ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Broad Approval ### Description **Update** Marked as "Mitigated" by the client. Addressed in: `759a583d19d950687f0b396c608f5896b051a35e`. The client provided the following explanation: > Added validation for ERC721 tokens to require only its allowance, not for all owned tokens from this collection. Unfortunate...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `quorum` and `threshold` not checked ### Description Constructor, `updateQuorum()` and `updateThreshold()`: `quorum` and `threshold` should be <= 100%. A value corresponding to 100% should be added as a constant: https://github.com/MetaLex-Tech/borg-core/blob/9074503d37cfa1d777ef16f6c88b84c98b4f54eb/src/implan...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improve documentation ### Description Documentation of the `collect()` function states: Note that the highlighted text is no longer relevant, now that the operator is decentralized. It should be omitted.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `diamondCut` is not protected in case of governor's key leakage ### Description When the governor proposes a diamondCut, governor must wait for `upgradeNoticePeriod` to be passed, or security council members have to approve the proposal to bypass the notice period, so that the governor can execute the propo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Permissions can drain approvals given to certain paymasters ### Description The Smart Wallet Permissions system requires all user operations to utilize an allowlisted paymaster. This is because without this requirement, a permission could arbitrarily use the Smart Wallet’s ETH for gas fees, which would increa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Buying out corrupts the slope of a vault, reducing rewards of LPs ### Description After a buyout, the slope of a vault won't be increased. As a result, liquidity providers will lose reward for providing liquidity to borrowers and the borrower will not pay interest for the lien that was bought out. ### 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
medium
dos
true
false
## Medium: stakerTierHistory is an unbound array that can be extended such that a user's funds are permamently lost ### Description In LayerEdgeStaking.sol, an stakerTierHistory is used for each user to track their tier history in a boundless array. This array is iterated through every time a user does any action with...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Updates to pooldepositDatatotalAmount and loancollateralUsed During Repayment with Collateral ### Description > This report is intended to be submitted under my team account "A2Security" but I reached the report submission rate limit on the last day. Please count this report as though it were from "...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Event on `cloneDeterministic` Deployment ### Description This issue has been identified within the `_getOrCreateP2pYieldProxy` function of the `P2pYieldProxyFactory` contract. The `cloneDeterministic` method from OpenZeppelin `Clones` library is used to deploy new proxy instances without emitting 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
overflow
true
false
## Low: Overly Broad Unchecked Math Blocks in EntryPoint Contract ### Description The EntryPoint contract contains multiple functions where entire function bodies are wrapped in unchecked blocks, rather than limiting these blocks to specific arithmetic operations that require them. This pattern is observed in critical...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
oracle
true
false
## Gas: `BalancerV2LPOracle.sol`: Tighly pack storage variables ### Description I suggest going from (see `@audit` tags): to Which would save 1 storage slot.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect or Misleading Information in Error String ### Description Error strings in require statements play a crucial role in providing feedback to users and developers as they aid in debugging and help address errors effectively. When such error strings contain mistakes or misleading information, both develo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Refactoring Optimistic Execution Invariants ### Description ## Optimistic Execution Considerations There are a number of tricky invariants which, while safe now, may result in breaking things depending on how projects use the cosmos-sdk. ## Issues 1. If `Commit` is called without preceding `FinalizeBlock` 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
high
other
true
false
## High: Improper Enqueue Implementation in Queue ### Description ## Queue::enqueue Function Issue In the `queue::enqueue` function, there is an issue when inserting a new node. Attempting this after removing nodes will cause a new node to be created, but referenced incorrectly. This happens because the index of the ...
0