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: Epoch Index Validation in `deposit` Function
### Description
This issue has been identified in the `deposit` function of the `Prestaking` contract.
The function does not validate whether the provided `epochIndex` exists before using it.
### Recommendation
We recommend adding a validation check to ensure 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 | other | false | false | ## Medium: Insufficient Contract Pausability
### Description
**Update**
The Blex team acknowledged the issue and provided the following explanation:
> In `MarketValid` we have already added the "allowopen" and "allowclose" switches to achieve similar functionality.
**File(s) affected:**`./contracts/market/MarketRout... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Input Validation
### Description
**Update**
Marked as "Fixed" by the client. Given that the `XVSStore` was left unmodified, we have marked the issue as "Mitigated". Addressed in: `9048e507043aac4c488220401da1bfb61434a449`. The client provided the following explanation:
> We have added the following va... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | access-control | false | false | ## High: Inconsistent namespace separation
### Description
When a new namespace is created, its identifier [is the hash of its name](https://github.com/dojoengine/dojo/blob/e1a349b2c4b1a836156e769a46f8fe3c87ae553f/crates/dojo-core/src/world/world_contract.cairo#L592). However, when registering or updating a model, 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 | initialization | false | false | ## Medium: Incorrect Implementation of Upgradability Design
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `9377a450ce5d5c01e91233ae306fe14c44c7728a`.
**File(s) affected:**`SynFuturesStakingVault.sol`
**Description:** The upgradability mechanism is currently not implemented correctly:
* ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Explicitly Check Remaining Accounts
### Description
## Process Withdraw Queue Instruction
In the `process_withdraw_queue` instruction, `TokenAccounts` are fetched and deserialized from `remaining_accounts[0]`. Remaining accounts are not validated by Anchor and must be used carefully.
The `TokenAccount` is de... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: NatSpec is missing
### Description
NatSpec is missing for the following functions , constructor and modifier:
```solidity
10 results
contracts/Pool.sol:
70: function _transfer(address from, address to, uint256 amount) private {
79: function balanceOf(address user) public view returns (uint256) {
83: ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No need to set false at `emergency` variable in HolyPaladinToken.sol
### Description
### Target codebase
[HolyPaladinToken.sol#L103](https://github.com/code-423n4/2022-03-paladin/blob/9c26ec8556298fb1dc3cf71f471aadad3a5c74a0/contracts/HolyPaladinToken.sol#L103)
### Potential improvements
The default value o... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Wrong calculation of solvency after request to close and after close position
### Description
`isSolventAfterClosePosition` and `isSolventAfterRequestToClosePosition` do not account for the extra profit that the user would get from closing the position.
### Impact
In a situation where the difference betwee... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | medium | token | true | true | ## Medium: Using fee-on-transfer tokens to fund distribution proposals creates under-funded proposals which causes claiming rewards to revert
### Description
`DistributionProposal::execute()` [L67](https://github.com/dexe-network/DeXe-Protocol/tree/f2fe12eeac0c4c63ac39670912640dc91d94bda5/contracts/gov/proposals/Distr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | flash-loan | false | false | ## Medium: Flashloan Protection Bypass Through Debt Increase and Account Closure Within The Same Block
### Description
It is possible to bypass the flashloan attack protection. While the existing flashloan attack protection mechanism prevents users from opening and closing credit accounts within the same transaction (... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Theft of unassigned earnings from a fixed pool
### Description
An attacker can borrow a dust amount from a fixed pool to round down the fee to zero, repeating this thousands of times the attacker will get a big fixed loan with 0 fees. If that loan is repaid early, the amount repaid will be lower than the 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 | low | initialization | true | false | ## Low: Max Dao Manager Length in The Code Does Not Match The Definition in The Documentation
### Description
In `LeapDaoManager.addDaoManager()`, the required length should be less than or equal to five, but the `push` operation is after the `require` statement, which means the maximum length can be 5+1=6. This is 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 | access-control | false | false | ## Low: Project dependencies contain vulnerabilities
### Description
Although dependency scans did not identify a direct threat to the project under review, `yarn audit` identified dependencies with known vulnerabilities. Due to the sensitivity of the deployment code and its environment, it is important to ensure 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 | dos | true | false | ## High: FEE COLLECTOR VAULT CHECK MISSING CAN LEAD TO DOS IN PHOTONMSG
### Description
The `Initialize` statement of the `gorples-bridge` program allows the initialization of the bridge config account. This requires two parameters: `bridge_router_address` and `min_bridge_amount`.
*initialize.rs*
```
pub struct Init... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `abi.encode()` is less efficient than `abi.encodePacked()`
### Description
*There are 2 instances of this issue:* | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | false | false | ## Medium: Trading will not work on Ethereum if USDT is used
### Description
Traders will not be able to:
1. Initiate a market order
2. Add margin
3. Add to position
4. initiate limit order
If USDT is set as the margin asset and protocol is deployed on Ethereum.
(Note: this issue was submitted after consulting ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unrestricted changes to token settings allow artists to alter critical features
### Description
The [`updateArtSettings`](https://github.com/code-423n4/2024-08-phi/blob/8c0985f7a10b231f916a51af5d506dd6b0c54120/src/PhiFactory.sol#L215) function in the PhiFactory contract allows artists to modify several key se... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Malicious user can double-unlock his locked funds Severity: High
### Description
**Description:**
Currently unlock function checks whether pending transfer of the nonce does exist or not, after its success, the callback function increases balance and remove transfer.
In Near, main call and callback handler ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use of transfer() and transferFrom()
### Description
TermRepoLocker uses `transfer()` and `transferFrom()` functions. Some ERC20 tokens don’t return a value in their `transfer` and `transferFrom()` functions. If there are no checks performed on the returned value (or if there is a value returned), the function... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Wrong errors are used for reverts
### Description
There are checks that revert with wrong errors
### Impact
This can lead to user confusion as they won't receive the accurate revert reason. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Production Builds Allow Development and Localhost Origins; Snap Does Not Enforce Transport Security
### Description
The snaps RPC access is restricted to certain origins only. However, there is no logic that disables development/test domains from origin checks in production builds.
This means, that, any l... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Code quality issues.
### Description
**Description**
The code quality of the project is bad. The code is not well structured and the code is not well commented. Functions are overly complex and the code is not modular. The code itself is very hard to read, not self-explanatory, and hard to maintain.
**Recomm... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: BlockhashRegistry - Structure of provided blockheaders should be validated ✓ Fixed
### Description
`getParentAndBlockhash` takes an rlp-encoded blockheader blob, extracts the parent parent hash and returns both the parent hash and the calculated blockhash of the provided data. The method is used to add bloc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## High: Potential Insufficient Balance for Sponsorship
### Description
The purpose of the [`validateMetaTxList` function of `core/txpool/txpool.go`](https://github.com/mantlenetworkio/op-geth/blob/4d05b2cd9a2b8096680eb9b2e87e473a44a43922/core/txpool/txpool.go#L1480) is to check if the sponsor has enough balance to 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: Retroactive Parameter Updates Cause Unfair Reward Distribution
### Description
Changing `rewardRatePerSecond` or `burnBonusBps` immediately affects accrual for the entire unclaimed interval, applying new parameters retroactively to past time. Rewards are computed at claim time using current values without 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 | dos | true | false | ## Low: Hardcoded `MERKLE_ROOT` will make the contract unusable
### Description
Hardcoded `MERKLE_ROOT` will make the contract unusable
### Impact
DoS | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | true | false | ## Low: The `StakingVault` Does Not Support Fee-On-Transfer Tokens (or Weird Tokens)
### Description
The `StakingVault` does not support fee-on-transfer tokens because the `stake()` function records the amount specified as an argument in `_userStakeInfo[user]`, rather than the actual amount of tokens received.
This 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 | reentrancy | true | false | ## High: Yield, Swivel, Element, APWine and Sense lend() are subject to reentracy resulting in Illuminate PT over-mint
### Description
Lender's lend() versions for Yield, Swivel, Element, APWine and Sense use balance difference for the net result calculation, i.e. how much Illuminate PTs to mint for the caller, and 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 | low | initialization | false | false | ## Low: PC should be constrained to zero initially
### Description
## Severity: Low Risk
## Context:
zkevm-proverjs:main.pil
## Description:
The PC values (for the main state machine as well as the storage state machine) are constrained only through the plookup and the constraint that encodes control-flow. There 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 | medium | dos | false | false | ## Medium: `CollectionShutdown::execute()` doesn't ensure that all locked NFTs are sold
### Description
_No response_
### Impact
NFTs that should be sold are locked in the procotol, which leads to an indirect loss of funds to collection tokens holders.
### Recommendation
In [CollectionShutdown::execute()](https://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 | initialization | true | false | ## Low: Initialize function does not use the initializer modifier
### Description
Without the modifier, the function may be called multiple times, overwriting prior initializations. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: UPDATE REWARDS MAY CAUSE A DENIAL OF SERVICE BETWEEN YEARS
### Description
During the calculation of the difference of months between reward's updates, changes of years are not taken into consideration. Since `lastRewardTimestamp` can be a high month's value, after a new year the month's counter starts 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... | cyfrin_structured | critical | token | true | true | ## Critical: `MembershipERC1155` profit tokens can be drained due to missing `lastProfit` synchronization when minting and claiming profit
### Description
When [`MembershipERC1155:claimProfit`](https://github.com/OneWpOrg/audit-2024-10-oneworld/blob/416630e46ea6f0e9bd9bdd0aea6a48119d0b515a/contracts/dao/tokens/Members... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unreachable condition in HMXLib.getSubAccount()
### Description
The condition `if (_subAccountId > 255)` within the `getSubAccount()` function is always false because the variable `_subAccountId` is of type `uint8` (which can never exceed the value 255).
### Recommendation
Remove this condition check and the ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | high | logic-error | true | true | ## High: Queued transfers can become stuck on the source chain if Transceiver instructions are encoded in the incorrect order
### Description
In the case of multiple Transceivers, the current logic expects that a sender encodes Transceiver instructions in order of increasing Transceiver registration index, as validate... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The owner of a `LSP0ERC725Account` can become the owner again after renouncing ownership
### Description
The `renounceOwnership()` function allows the owner of a `LSP0ERC725Account` to renounce ownership through a two-step process. When `renounceOwnership()` is first called, `_renounceOwnershipStartedAt` 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... | solodit_api | high | token | false | true | ## Severity: Critical Risk
## Context
*PerpetualYieldToken.sol#L53*
## Description
The `transfer` and `transferFrom` functions operate on cached balance values. When transferring tokens to oneself, the decreased balance is overwritten by an increased balance, which makes it possible to mint PYT tokens for free.
Cons... | Spearbit | 5 | Timeless |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of explicit return statements
### Description
Several functions in the codebase have implicit return statements ([`checkBeneficiary`](https://github.com/OpenBazaar/smart-contracts/blob/c4f02cdd41cb85d28bba637a01f20a8ee8bb04bd/contracts/escrow/Escrow_v1_0.sol#L212), [`calculateRedeemScriptHash`](https://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 | true | false | ## Low: Numeric values having to do with time should use time units for readability
### Description
There are [units](https://docs.soliditylang.org/en/latest/units-and-global-variables.html#time-units) for seconds, minutes, hours, days, and weeks, and since they're defined, they should be used
*There are 5 instances ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | critical | access-control | true | true | ## Critical: Attacker can destroy user voting power by setting `ERC721Power::totalPower` and all existing NFTs `currentPower` to 0
### Description
Attacker can destroy user voting power by setting `ERC721Power::totalPower` & all existing nfts' `currentPower` to 0 via a permission-less attack contract by exploiting a d... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | false | false | ## Low: The tier id can potentially surpass 16 bits leading to token id collisions
### Description
[L-03] The tier id can potentially surpass 16 bits leading to token id collisions
The token id is composed of the given tier id _tierId and the number of the token _tokenNumber in the tier. The tier id is limited to 16 b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | reentrancy | true | false | ## Medium: attacker can perform malicious transactions in the safe because reentrancy is not implemented correctly in the checkTransaction() and checkAfterExecution() function in HSG
### Description
to prevent reentrancy during the safe's `execTransaction()` function call code use `_guardEntries` and increase it in 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 | rounding | true | false | ## Low: _peek does not work for tokens with > 18 decimals
### Description
## Handle
cmichel
## Vulnerability details
The `CTokenMultiOracle._peek/_get` function does the following computation on unsigned integers which reverts when `source.decimals > 18`:
## Recommended Mitigation Steps
Instead, perform this `pr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: Improve Safety Checks On Admin-Only Instructions
### Description
## Security Audit Findings
Various admin-gated instructions to configure the protocol do not perform adequate validation on the parameters supplied, potentially resulting in future vulnerabilities. While this may not pose an immediate security r... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: MirrorConnector cannot be changed once set
### Description
For chains other than Polygon, it is allowed to change the mirror connector any number of times. For the Polygon chain, the `_setMirrorConnector` is overridden.
1. Let's take the `PolygonHubConnector` contract as an example:
```solidity
function _... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | token | true | false | ## Gas: Cache IERC20(address)
### Description
Cache variable IERC20(address) when used more than once in the same function to save gas.
```solidity
267: IERC20(loan.loanToken).transfer(feeReceiver, fees);
269: IERC20(loan.loanToken).transfer(msg.sender, debt - fees);
317: IERC20(loan.loanToken).transferFrom(
323... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Liquidity providers unable to remove liquidity when the pool is in deficit state
### Description
_Submitted by kyliek_
[LiquidityProviders.sol#L388](https://github.com/code-423n4/2022-03-biconomy/blob/04751283f85c9fc94fb644ff2b489ec339cd9ffc/contracts/hyphen/LiquidityProviders.sol#L388)
[LiquidityProviders... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Code Optimizations
### Description
## Code Optimization Recommendations
1. Combine the `WithdrawMarginAccountCpiTAmm` and `WithdrawMarginAccountCpiTcomp` instructions to simplify the code, as their only differences are the seeds and discriminator checks.
2. In the compressed-NFT standard within `buy::process... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Duplicated code between `LibChop` and `LibUnripe`
### Description
Duplicate versions of [`LibUnripe::_getPenalizedUnderlying`](https://github.com/BeanstalkFarms/Beanstalk/blob/dfb418d185cd93eef08168ccaffe9de86bc1f062/protocol/contracts/libraries/LibUnripe.sol#L143-L151) and [`LibUnripe::isUnripe`](https://gith... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Misleading Documentation
### Description
Some of the comments communicate incorrect or misleading information. For instance:
* In the bootloader, the [`TX_OPERATOR_L2_BLOCK_INFO_SLOTS` constant](https://github.com/matter-labs/system-contracts/blob/44c4f989a305c0f1511e6ebf83da08adb8979325/bootloader/bootloade... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unchecked burnFrom return value
### Description
While recapitalizing the Beanstalk protocol, Bean and LP tokens that existed before the 2022 governance hack are represented as unripe tokens. Ripening is the process of burning unripe tokens in exchange for a pro rata share of the underlying assets generated dur... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: optimization using `vote_.yea`
### Description
At line https://github.com/lidofinance/aragon-apps/blob/7e5cd1961697a1bc514bfebdeab08a296e51d700/apps/voting/contracts/Voting.sol#L433-L440 it is possible to save gas by reading `vote_.yea` into a memory variable.
### Recommendation
For example:
```solidity
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 | other | false | false | ## High: Investors can steal tokens from other investors since `StandardToken::transferFrom` never checks spending approvals
### Description
**Description:** Investors can steal tokens from other investors since `StandardToken::transferFrom` never checks spending approvals.
**Proof of Concept:** Add PoC to `test/dsto... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Refactor checks involving constants first followed by that include state variables to save gas.
### Description
Checks that involve constants should come before checks that involve state variables, function calls, and calculations. By doing these checks first, the function is able to revert before wasting a Gc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong init code hash
### Description
An init code hash is used to calculate the address of UniswapV2 pair contract. But the init code hash is not same as the latest UniswapV2 repository.
### Proof of Concept
UniswapV2Library.pairFor uses the following value as the init code hash of UniswapV2Pair.
hex"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 | other | false | false | ## Low: No Event Is Emitted When Invoking a Route Through the socketGateway Fallback Function
### Description
When a route is invoked through `executeRoute`, or `executeRoutes` functions, a `SocketRouteExecuted` event is emitted. However, a route can also be executed by invoking the fallback function of the `socketGat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: An attacker with more available funds can counter an honest rootClaim defender
### Description
An attacker (challenger) with more funds available than an honest rootClaim defender can win the Game with the status `CHALLENGER.WINS` even if the rootClaim provided by the honest defender is correct. The attacke... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `_disableBridgeAdapters()` and `_updateReceiverBridgeAdapters()` skip unfound bridge adapters
### Description
Unfound bridge adapters are just skipped if they were not found during removal in `CrossChainForwarder._disableBridgeAdapters()` and `CrossChainReceiver._updateReceiverBridgeAdapters()`. It makes it mo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: External call is fed the wrong `QuorumObjKind` Parameter
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
GatewayRouterFacet.sol - In `execBottomUpMsgBatch` function, the kind argument for `distributeRewardToRelayers` (i.e. in the encodeCall) should be `QuoromObjKind.BottomUpMsgB... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `require()` should be used instead of `assert()`
### Description
Prior to solidity version 0.8.0, hitting an assert consumes the **remainder of the transaction's available gas** rather than returning it, as `require()`/`revert()` do. `assert()` should be avoided even past solidity version 0.8.0 as its [documen... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Store validation and execution hooks in different linked lists
### Description
A hook can be a validation hook, an execution hook, or both. `runValidationHooks()` and `runExecutionHooks()` iterate through a linked list storing hooks to find validation and execution hooks respectively. Storing validation and ex... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: INCOMPATIBILITY WITH TOKENS NOT FOLLOWING THE STANDARDS
### Description
It was identified that the `Saferoot` contract may not be compatible with tokens that do not follow the ERC standards if these tokens do not implement the functions (e.g., `getApproved`, `safeTransferFrom`) that the `Saferoot` contract use... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | true | false | ## Medium: `LockingMultiRewards` contract on Blast does not configure gas yield nor token yield mode.
### Description
The Abracadabra team configures gas yield for all contracts in the Blast L2 except for the `LockingMultiRewards` contract. Therefore, gas yields accrued on the `LockingMultiRewards` staking contract si... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | Pre/Post Balance | true | false | Source: https://github.com/sherlock-audit/2022-09-notional-judging/issues/110
## Found by
0x52, lemonmon, hansfriese
## Summary
`TradingUtils._executeTrade()` doesn't check `preTradeBalance` properly.
## Vulnerability Detail
`TradingUtils._executeTrade()` doesn't check `preTradeBalance` properly.
```solidity
func... | 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 | true | false | ## Low: Insufficient error handling
### Description
_Acknowledged_
In the `SpinLottery` contract, if there are insufficient prizes available, the `_claimPrize` function will revert with the error `NoPrizesAvailable`.
This error can be caught in the try-catch block during the prize distribution process, but it leads... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | signature | true | false | ## Context
(No context files were provided by the reviewer)
## Description
Owners using smart contract wallets (account abstraction) are facing a blocking issue when trying to sign transactions on the Council Safe. This is due to the use of incorrect validation logic for smart contract wallet signatures as defined in ... | Cantina | 5 | OP Labs |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | token | false | true | ## High: YearnVault.sol#pull() will most certainly fail
### Description
## Handle
WatchPug
## Vulnerability details
https://github.com/code-423n4/2021-12-mellow/blob/6679e2dd118b33481ee81ad013ece4ea723327b5/mellow-vaults/test_brownie/contracts/YearnVault.sol#L84-L101
The actual token withdrew from `yToken.withdr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The`_dstToken`Should Be Early Rejected and Not Be USDs Address
### Description
**Update**
**Quantstamp:** The Sperax team understood main issue and provided an explanation of acknowledgment.
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> This is not possi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 parameter validations in
### Description
[L-01] Missing parameter validations in SpeedBumpPriceGate#addGate
Callers of addGate can create price gates with a zero price floor (allowing users to claim free tokens), and zero priceIncreaseDenominator (causing price calculation to revert with a divide by ze... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | initializer modifier | true | false | #### Description
In the contracts implement Openzeppelin’s UUPS model, uninitialized implementation contract can be taken over by an attacker with `initialize` function, it’s recommended to invoke the `_disableInitializers` function in the constructor to prevent the implementation contract from being used by the atta... | ConsenSys | 4 | LEEQUID - Staking |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: FRONT-RUNNING USERS IS POSSIBLE BY THE PROTOCOL TO OBTAIN A HIGHER FEE
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
The performanceFee variable is a key variable to calculate the fee obtained by the protocol. This variable can be changed by calling the `updatePerformanceFee... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Attacker can inflict losses to other Superpool user's during a bad debt liquidation depending on the deposit/withdraw queue order
### Description
Attacker can inflict losses to other Superpool user's during a bad debt liquidation depending on the deposit/withdraw queue order
### Impact
Attacker can inflict... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: useLoan doesn't allow liqudator to specifiy maximum price
### Description
useLoan doesn't allow the liquidator to specify a max price they are will to pay for the collateral they are liquidating. On the surface this doesn't seem like an issue because the price is always decreasing due to the dutch auction. ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Morpho is not correctly handling the asset price in _getAssetPrice when isInEMode == true but priceSource isaddres(0)
### Description
The current implementation of `_getAssetPrice` returns the asset's price based on the value of `isInEMode`.
```solidity
function _getAssetPrice(address underlying, IAaveOracle... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | token | false | true | ## High: On-chain slippage calculation using exchange rate derived from `pool.slot0` can be easily manipulated
### Description
[On-chain slippage calculation](https://dacian.me/defi-slippage-attacks#heading-on-chain-slippage-calculation-can-be-manipulated) using price from [`pool.slot0` can be easily manipulated](http... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unclaimed or front-runnable proxy implementations
### Description
Various smart contracts in the system require initialization functions to be called. The point when these calls happen is up to the deploying address. Deployment and initialization in one transaction are typically safe, but it can potentially... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `borrow` must `accrueInterest` first
### Description
_Submitted by cmichel_
The `UToken.borrow` function first checks the borrowed balance and the old credit limit *before* accruing the actual interest on the market:
Thus the borrowed balance of the user does not include the latest interest as it uses the ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: Missing SSL Pinning
### Description
## SSL Pinning in Mobile Applications
SSL pinning is a security measure used by mobile applications to ensure secure communication with the intended server and prevent Man-in-the-Middle (MITM) attacks. However, the mobile application currently does not implement SSL pinning... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Treating of BLOCK_TIME as permanent will cause serious economic flaws in the oracle when block times change
### Description
Pumps receive the chain BLOCK_TIME in the constructor. In every update, it is used to calculate the `blocksPassed` variable, which determines what is the maximum change in price (done ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No votes are still valid after the ragequit/ragekick Won't Fix
### Description
Shareholders can vote for the upcoming proposals 2 weeks before they can be executed. If they ragequit or get ragekicked, their votes are still considered valid. And while the LAO does not allow anyone to ragequit before the las... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TransactionManager - Relayer may use user’s cancel after expiry signature to steal user’s funds by colluding with a router Acknowledged
### Description
Users that are willing to have a lower trust dependency on a relayer should have the ability to opt-in **only** for the service that allows the relayer 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 | initialization | false | false | ## Low: Inefficient initalization in UUPS proxy
### Description
This issue has been identified within the dummy [initialize](https://github.com/longgammalabs/hanji-contracts/blob/70b15ec4d9e7578248141604503843716a67d875/src/HanjiLOB.sol#L225) function of the `HanjiLOB` contract.
The current implementation follows th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Auction tokens will be lost forever when auction ends without bids
### Description
The `FjordAuctionFactory.sol` contract is used to create new auctions, and it also transfers the auction tokens to the new auction. If someone ends the auction, all auction tokens are sent back to the owner. The owner of 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 | token | false | false | ## Low: Unchecked Returned Values
### Description
**Update**
Fixed; the recommendation was implemented.
**File(s) affected:**`LyLevel.sol`, `LevelMaster.sol`
**Description:** Multiple functions call `transfer()` without checking that the function returned `true`. This could lead to false calculations in case the `tr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 nested if statements instead of `&&`
### Description
If the "if" statement has a logical "AND" and is not followed by an "else" statement, it can be replaced with 2 if statements.
https://github.com/code-423n4/2023-06-lukso/tree/main/contracts/LSP0ERC725Account/LSP0ERC725AccountCore.sol#L801
https://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 | medium | dos | true | false | ## Medium: [M-01]
### Description
### Impact
DOS when using `addPriorityStakers` with two consecutive addresses badly ordered `(address a2 Assessment: Low/Medium
>
> We will instead check `isPriorityStaker[staker]` and revert if true - thanks.
**Dravee (warden) commented:**
> Hey there @vince0656,
>
> Just curious... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lock period can be avoided with other ERC777 functions.
### Description
**Description**
Expo.sol. Contract overrides transfer functions, such as transfer(), send(), burn() in order to check lock period. However, there are few ERC777 standard functions which are not overridden and thus, can be used to avoid l... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Remove useless function `ComplianceServiceRegulated::adjustTransferCounts`
### Description
**Description:** The function `ComplianceServiceRegulated::adjustTransferCounts` is useless as it always just calls `adjustTotalInvestorsCounts` with its two parameters; remove it and simply call `adjustTotalInvestorsCou... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | other | true | false | ## Low: Dust rewards can become permanently locked | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Sandwich attack to steal all ERC-20 tokens in the Fees contract
### Description
The `Fees::sellProfits()` lacks slippage protection, resulting in being attacked by a sandwich attack to drain all locked ERC-20 tokens.
### Impact
An attacker can drain all ERC-20 tokens (e.g., USDC, DAI, CRV, etc.) locked in th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Consider introduce mint / redeem timelock to further mitigate cross-asset arbitrage
### Description
Severity: Low Risk
Context: HoneyFactory.sol
Description: Protocol is aware that in case when there are multiple asset, user can mint honey with asset A and
redeem asset B.
An user can always enter with one asse... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | other | true | false | Source: https://github.com/sherlock-audit/2023-02-bond-judging/issues/60
## Found by
whitehat
## Summary
The createMarket transaction lack of expiration timestamp check
## Vulnerability Detail
Let us look into the heavily forked Uniswap V2 contract addLiquidity function implementation
https://github.com/Uniswap... | Sherlock | 4 | Bond Protocol Update |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Errors in async code leave the program in an inconsistent state
### Description
Most of the AlephBFT code is executed asynchronously through a hierarchy of tasks. While AlephBFT does not enforce the use of a specific async runtime, the most popular choice is the Tokio runtime, also used in AlephBFT tests.
Wh... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | false | false | ## Low: Reduced range of PotData values on L2
### Description
The `PotData` struct, that the `DSROracle` uses, has different types than the pot data on ETH. This is most important for the `chi()` variable defined as a `uint120` on L2 instead of a `uint256`. With an initial value of `RAY = 1e27`, the `uint120` type 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 | other | false | false | ## Low: Lack of a terminal state
### Description
The state machine lacks a terminal state (i.e., a state that marks a “successful flow” or a state that is “the output” of the state machine). Intuitively, this terminal state should be the one in which an edge is confirmed. However, the closest state in the current iter... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 the length of arrays in loops
### Description
The solidity compiler will always read the length of the array during each iteration. That is,
1.if it is a storage array, this is an extra sload operation (**100 additional extra gas (EIP-2929 2) for each iteration except for the first**),
2.if it is a memo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Protocol and Broker are overpaid in the event of a canceled stream
### Description
When the stream is created, both the broker fee and the protocol fee are immediately paid in full. This means that when a stream is canceled, both fees have been paid in full by the sender. This does not seem ideal for any si... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: `currentStakeLimit` depletes faster in some adapters, due to actual amount spent less than the input `stakeAmount`
### Description
Source: https://github.com/sherlock-audit/2024-05-napier-update-judging/issues/8
## Found by
Varun\_05, blutorque
## Summary
## Vulnerability Detail
In the `BaseLSTAdapterUpg... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Core lacks entry points for tzip-7 admin-only operations
### Description
The core needs to be able to mint and burn wXTZ tokens. This requires the core to hold the tzip-7 contract “admin” address. It also makes the core the only sender capable of invoking certain admin-only operations on the tzip-7 contract. H... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.