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 | true | false | ## Low: BlockhashRegistry - Existing blockhashes can be overwritten ✓ Fixed
### Description
Last 256 blocks, that are available in the EVM environment, are stored in `BlockhashRegistry` by calling `snapshot()` or `saveBlockNumber(uint _blockNumber)` functions. Older blocks are recreated by calling `recreateBlockheader... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | initialization | true | false | ## Gas: Counting down in for statements is more gas efficient
### Description
Looping downwards in Solidity is more gas efficient due to how the EVM compares variables. In a 'for' loop that counts down, the end condition is usually to compare with zero, which is cheaper than comparing with another number. As such, res... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Circuit crashes when invalid blocks are generated by the operator
### Description
Users can force the operator to produce invalid blocks that will crash the circuits. To maintain strong security guarantees and high performance, DeGate requires that certain computations be performed from the `ethsnarks` circui... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The health of a ```ProtectedListing``` is incorrectly calculated if the ```tokenTaken``` has be changed through ```ProtectedListings::adjustPosition()```.
### Description
```ProtectedListings::adjustPosition()``` will change the ```tokenTaken``` but after this, ```ProtectedListings::getProtectedListingHealth(... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Attackers can force surge to never update the collateralization ratio
### Description
Certain parameter choices make it feasible to block updates to the collateralization ratio. Collaterization ratio updates are calculated as `uint change = timeDelta * _maxCollateralRatioMantissa / _collateralRatioRecovery... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | true | false | ## Medium: `AddToInTxTracker` doens't allow permissionless tx validation for Bitcoin chain, InTxTracker permissionless tx validation for Bitcoin chain will always fail
### Description
Permissionless tx validation for EVM and Bitcoin chain should be supported based on audit [doc](https://github.com/code-423n4/2023-11-z... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `adjustPosition` does not allow repaying stable in the decommissioning period
### Description
The `adjustPosition` function in `PositionController.sol` provides users with the flexibility of adjusting their positions by increasing or decreasing their collateral and/or stable. However, the function does not all... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: More efficient way of comparing two strings for equality in `CommonUtils::isEqualString`
### Description
More efficient way of comparing two strings for equality in `CommonUtils::isEqualString` [from](https://github.com/Vectorized/solady/blob/main/src/utils/g/LibString.sol#L858-L863) Solady:
```solidity
func... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Mixing different types of LP shares can lead to losses for Synth holders
### Description
_Submitted by hyh_
#### Impact
Users that mint Synths do not get pool shares, so exiting of normal LP can lead to their losses as no funds can be left for retrieval.
#### Proof of Concept
3 types of mint/burn: NFT, Fu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | true | false | ## Medium: DOS attack by delegating tokens at `MAX_DELEGATES = 1024`
### Description
Report type: Smart Contract
Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/VotingEscrow.sol
Impacts:
- Griefing (e.g. no profit motive for an attacker, but damage to the users or the protocol)
- Block stu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Incorrect Comment
### Description
## Issue Summary
In the `bit_math` module, the comment in `closest_non_zero_bit` is incorrect. It states that `MAX_U256` is returned if there is no closest bit; however, the hard-coded value equal to `MAX_U16` is returned from `closest_non_zero_bit` in the absence of a closes... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | access-control | true | true | ## Low: `StakingContract::slippage` can be outside of `minSlippage` or `maxSlippage`
### Description
When the BENQI admin sets the `slippage` state by calling [`StakingContract::setSlippage`](https://code.zeeve.net/zeeve-endeavors/benqi_smartcontract/-/blob/b63336201f50f9a67451bf5c7b32ddcc4a847ce2/contracts/staking.so... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | token | true | false | ## Low: `InvestorLockManager::createLockForInvestor`, `removeLockRecordForInvestor` should revert for invalid investor id
### Description
`InvestorLockManager::createLockForInvestor` should revert for invalid investor id:
```diff
function createLockForInvestor(string memory _investor, uint256 _valueLocked, uint256... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## High: Destruction of the EnsoWallet implementation contract
### Description
An attacker can make a direct call (not via proxy) to [EnsoWallet.initialize()](https://github.com/EnsoFinance/shortcuts-contracts/blob/4902e55608f975f73772310955444110b1cfc4fc/contracts/EnsoWallet.sol#L24) and execute the SELFDESTRUCT opco... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Mark variables as immutable
### Description
Some variables, like **vaultInfoAddress** and **AI**, are fixed at deployment-time. It would be best
to mark them as immutable, for code clarity as well as gas savings.
**Team response**
"Changed several variables to constant or immutable."
**Mitigation review:**
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use specific Solidity compiler version
### Description
**Severity**: Informational
**Status**: Acknowledged
**Description**
Audited contracts use the following floating pragma:
pragma solidity ^0.5.7;
It allows to compile contracts with various versions of the compiler and introduces the risk of using 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 | high | access-control | true | false | ## High: Cancel Instruction Works on Confirmed RFQ
### Description
## RFQ Cancellation
An RFQ can be cancelled by the taker even after the RFQ is confirmed. This enables the taker to confirm an order, settle the order using the Settle instruction and then cancel the RFQ using the Cancel instruction, which prevents 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 | liquidation | true | false | ## Medium: Attacker can frontrun to prevent vaults from being removed from the dNFT owner's position
### Description
When removing a vault from a dNFT position, the vault must have no assets for that dNFT.
However, since anyone can deposit into a dNFT, anyone can prevent a vault from being removed from a dNFT positi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Only curve pools with less than 129 tokens are supported by the router
### Description
In the `swapCurve` function, we have the following lines of code:
```solidity
int128 fromIndex = int8(stream.readUint8());
int128 toIndex = int8(stream.readUint8());
```
Here, `fromIndex` and `toIndex` are the indexes of t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Unnecessary Parameter Check
### Description
## Utility Function: transferToken
`transferToken` is a utility function for transferring tokens between user accounts within the floor account system. Internally, it invokes `withdrawToken`, facilitating token withdrawal from a user’s account. The process varies ba... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Duplicate `Collateral.Data` struct causes admin configuration conflict
### Description
`Collateral.Data` information is saved in two locations. Protocol access this information from both places but admin can update only one of them resulting in a DoS for admin rights.
### Impact
Key vault parameters are 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 | medium | other | true | false | ## Medium: Users can gas grief or completely block keepers from executing orders
### Description
When keepers cancel users' orders, the refund gas is sent back to the user. If the user has a fallback function that specifically reverts or consumes excessive gas, the keeper's transaction can fail or exhaust its gas, cau... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | false | false | ## Low: | For-Loop Increment
### Description
**Description**
Because the `user` array’s length is bound by `MAX_BULK_ASSIGNMENT`, there is no risk of overflow. To reduce bytecode, use an unchecked block in the loop to increment.
**Recommendation**
Implement the above suggestion.
**Resolution**
NFTR Team:
- The 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 | high | liquidation | true | true | ## High: Incorrect Credit Capacity Validation in `VaultRouterBranch.redeem` Enables Locked Collateral Drainage
### Description
The vault redemption process contains a critical logic error that improperly validates credit capacity changes, allowing liquidity providers to withdraw locked collateral reserves. The `VaultR... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | true | false | ## Low: [04] If an auction has no bidder, the NFT ownership should go back to the loan lenders instead of liquidator
### Description
If auction has no bidder, the liquidator can claim the NFT. The impact is severe:
- Lenders could suffer fund loss in some cases.
- The unfair mechanism will discourage future users.
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## Medium: Missing sanity check in `addCardBundlesToPacketPool`
### Description
In CardAllocationPool contract, we will generate one randomness via Chainlink VRF for the instant redeem. In initialize() function, we will initialize `callbackGasLimit` to 100_000. This gas limit is used for the Chainlink VRF callback gas... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Rewards will be permanently lost for ibToken with no deposits
### Description
**Details**
[BlueberryStaking.sol#L482-L485](https://github.com/Blueberryfi/blueberry-staking/blob/efaf7fc690e38914ba475d5ac61a4d0bd3f45c0d/src/BlueberryStaking.sol#L482-L485)
function rewardPerToken(address _ibToken) public 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 | token | false | false | ## Medium: Deflationary tokens are not supported
### Description
_Submitted by cmichel, also found by s1m0 and 0xRajeev_
There are ERC20 tokens that may make certain customizations to their ERC20 contracts.
One type of these tokens is deflationary tokens that charge a certain fee for every `transfer()` or `transferFr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Using private rather than public for constants saves gas
### Description
If needed, the value can be read from the verified contract source code. Savings are due to the compiler not having to create non-payable getter functions for deployment calldata, not having to store the bytes of the value outside of wher... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Check` before updating `bool` with same value
### Description
### Instance 1
Lack of a check could potentially result in unnecessary state changes and gas costs if the `_active` value passed to the function is the same as the current value stored in the `operators` mapping.
Adding a simple check to compare ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Deployments.sol uses the wrong address for UNIV2 router which causes all Uniswap V2 calls to fail
### Description
Deployments.sol accidentally uses the Uniswap V3 router address for UNIV2_ROUTER which causes all Uniswap V2 calls to fail
### Impact
Uniswap V2 is totally unusable
### Recommendation
Change U... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: If stop policy is replaced it’d brick the rental stop for older safes
### Description
The stop policy can be replaced via the kernel, if the old stop policy is disabled it'd be impossible to stop the rentals - since only the old stop policy has access to the safe.
As mitigation - either keep the old stop poli... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `NFTVault.showPosition()`: Help the optimizer by saving a storage variable's reference instead of repeatedly fetching it (`positions[_nftIndex]`)
### Description
To help the optimizer, declare a `storage` type variable and use it instead of repeatedly fetching the reference in a map or an array.
The effect 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 | true | false | ## Low: Init function call missing
### Description
**Severity**: Low
**Status**: Resolved
**Description**
__Pausable_init() is not called in the new version of PendleVoteManagerBaseUpg contract.
**Recommendation**:
It is advised to call the appropriate init function in the contract. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: `x += y` costs more gas than `x = x + y` for state variables
### Description
https://github.com/code-423n4/2023-01-popcorn/blob/d95fc31449c260901811196d617366d6352258cd/src/vault/adapter/abstracts/AdapterBase.sol#L158
https://github.com/code-423n4/2023-01-popcorn/blob/d95fc31449c260901811196d617366d6352258cd... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: No need to use `safeTransfer` since contracts are not allowed
### Description
The `depositStake` method disallows contract calling it (even though code is commented out, it says it will be uncommented out) so you never need to do use the ERC721 `_safeTransfer` functionality since it is always done to the initi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [13] Update incorrect comment on `set_emitter`
### Description
### Finding description and impact
`set_emitter` should set emitter and not pool factory.
### Recommended mitigation steps
Update comments.
--- | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | false | false | ## Medium: Protocol owner has control over swap fees earned
### Description
**Severity**
**Impact:**
High, as it can result in a loss of yield for LPs
**Likelihood:**
Low, as it requires a compromised or malicious owner
**Description**
In the Solidly V3 AMM the swap fees can be collected by an account that is give... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of Event Emission for Minting
### Description
**Severity**: Low
**Status**: Resolved
**Description**:
In HEU.sol mint() function does not emit a custom event indicating that new tokens have been minted. While the ERC20 standard emits a Transfer event for minting, adding a custom event would make it 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: Lack of Monotonicity Enforcement in Dutch Auction Rate Bumps
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> Noted. Same as [IFS-3](https://certificate.quantstamp.com/full/1-inch-fusion/46247b92-ba5f-4f49-a397-76f7867ff4a4/index.html#findings... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | upgrade | true | false | ## Low: Unnecessary external call in `YToken::_decimalsOffset` and `YTokenL2::_decimalsOffset`
### Description
In [`YToken::_decimalsOffset`](https://github.com/YieldFiLabs/contracts/blob/40caad6c60625d750cc5c3a5a7df92b96a93a2fb/contracts/core/tokens/YToken.sol#L314-L316) and [`YTokenL2::_decimalsOffset`](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 | other | false | false | ## Low: Remove X Forwarded Host
### Description
## Request Handling on help.easy.me
The website **help.easy.me** accepts requests with the `X-Forwarded-Host` HTTP header. When a request including `X-Forwarded-Host: google.com` is sent, an error page will be displayed, and the value of the `X-Forwarded-Host` header wi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: denial of service
### Description
_Submitted by danb, also found by cmichel, csanuragjain, hyh, kirk-baird, leastwood, Meta0xNull, minhquanym, Omik, robee, Ruhum, and throttle_
processWithdrawals can process limited amount in each call.
An attacker can push to withdrawals enormous amount of withdrawals 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 | true | false | ## Gas: Move owner checks to a modifier for gas efficant
### Description
It's better to use a modifier for simple owner checks for an easier inspection of functions. This is also more gas efficient as it does not control with external call.
**The part where ``owner`` is defined:**
https://github.com/code-423n4/2023... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | front-running | true | false | ## Low: Artifact mint frontrunning
### Description
## Overview of Artifacts in Monument
Artifacts are abstract entities defined in Monument’s codebase. An artifact has several attributes. For example, an artifact has a metadata attribute, which must be unique. When a user is minting an artifact, they must provide a u... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | reentrancy | false | false | ## Low: Checks-Effects-Interactions Pattern Violation
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> The external calls are to known contracts and here is the reason CEI pattern is violated:
>
>
> 1. Stabletoken.transferFrom(): in order to suppor... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | access-control | true | false | ## Gas: Functions guaranteed to revert when called by normal users can be marked `payable`
### Description
If a function modifier such as onlyOwner is used, the function will revert if a normal user tries to pay the function. Marking the function as payable will lower the gas cost for legitimate callers because the 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: `buyAndSwap1155WETH` Does Not Work As Intended
### Description
_Submitted by leastwood_
The `buyAndSwap1155WETH` function in `NFTXMarketplaceZap` aims to facilitate buying and swapping `ERC1155` tokens within a single transaction. The function expects to transfer `WETH` tokens from the `msg.sender` account... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | true | false | ## Low: Improve checks on the facets
### Description
In the facets, receiver/destination address and amount checks are missing.
- The `symbol` parameter is used to get the address of the token with the gateway’s `tokenAddresses` function. The `tokenAddresses` function obtains the token address via mapping. If the sym... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ABI Decode Might Produce Unexpected Reverts
### Description
Whenever the codebase executes `abi.decode` in the [`Cell`](https://github.com/tesseract-protocol/smart-contracts/blob/940fc6650d1f48b3b3d028640dffcc9203f8bd76/src/Cell.sol#L52) or [`YakSwapCell`](https://github.com/tesseract-protocol/smart-contrac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Spread calculation mismatch in `priceImpactFunction` and `getTradePriceImpact`
### Description
_Acknowledged_
`_priceImpactFunction` function calculates the spread as:
`
While `_getTradePriceImpact` does it slightly differently:
While they are supposed to serve the same purpose of calculating spreadFee, t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | false | false | ## Low: Non-Unique SMT Leaf Hash on Empty Value
### Description
**Update**
The team decided not to address the issue as it does not seem to impact any current contracts from both their and our perspectives. However, we would like to highlight this issue for future code changes and audits to check whether the `LibSMT.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 | oracle | false | false | ## Medium: Lack of simulation and fuzzing of leverage module invariants
### Description
The Umee system lacks comprehensive Cosmos SDK simulations and invariants for its x/oracle and x/leverage modules. More thorough use of the simulation feature would facilitate fuzz testing of the entire blockchain and help ensure t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | reentrancy | false | false | ## Low: Possible Reentrancy When Creating Loans
### Description
**Update**
The `emitLoanMany()` function has been removed in commit `cce2e1dc7468b5eb23ea4d0c7c57eca093eecde2`, so the issue no longer applies.
**File(s) affected:**`MultiSourceLoan.sol`
**Description:** The `emitLoan()` function is guarded by the `nonR... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## High: DoS on the `pump` function due to excessively low slippage tolerance
### Description
In the pump process, a fraction of the input tokens held by the ULTI contract are swapped for ULTI tokens. The system calculates the expected amount of ULTI tokens based on the TWAP and applies a slippage protection that caus... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | logic-error | true | false | ## Low: Incorrect Price Validation When Creating `NewInstrumentData` Struct during `NewInstrumentInstruction` instruction
### Description
The current validation logic when creating `NewInstrumentData` using `new` method during `NewInstrumentInstruction` instruction uses an exclusive upper bound when checking the price... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | true | false | ## High: POSITIONS CANNOT BE UNWOUND ALTHOUGH ENOUGH OUSD IS HELD
### Description
Once any user tries to unwind a position, one of the multiple steps performed is to redeem every `OUSD` available in the vault under that position and:
1. Check the `LVUSD` amount that was initially borrowed and has to be repaid in orde... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | true | false | ## Medium: Incorrect swap amount in CreditDelegationBranch::settleVaultsDebt improperly inflates the tokens to swap leading to DOS or/and oversettling vault debt
### Description
A bug in the CreditDelegationBranch::settlevaultsdeposit results in an incorrect calculation of the swap amount when the vault is in debt. 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 | initialization | true | false | ## Low: `RewardTimelock::executeRewardTransaction()` - L112: Incorrect comparison operator results in not being able to execute reward tx at the very last second of tx expiration timestamp.
### Description
Report type: Smart Contract
Target: https://github.com/immunefi-team/vaults/blob/main/src/RewardTimelock.sol
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 | token | false | false | ## Low: Avoid duplicated code
### Description
Duplicate code makes it harder to understand the code’s intention and thus, auditing the code correctly. It also increases the risk of introducing hidden bugs when modifying one of the copies of some code and not the others.
The logic of the contracts `Token`, `AbstractT... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Check assetId and depositor length on handleDeposit function
### Description
The function `handleDeposit` from the library `NordStateUpdateLib.sol` is called when invoked through a submit state action by the operator role, which means the proover. However, this function does not check that the deposited asset ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | token | false | false | ## High: Incorrect Token Synchronization
### Description
## Blockchain Token Exploit Overview
In systems where a blockchain’s native token also has an ERC20 representation, such as CELO on the Celo network, this setup may result in an unintended exploit due to how balances are updated when both native and ERC20 token... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: Ownership Can Be Renounced
### Description
**Update**
Acknowledged by the developers with:
> For L1MantleToken, renounceOwnership is not an expected behavior and will not be instantiated by the governance multisig. To prevent transferring ownership to a new owner address which is wrong or not controlled by 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 | false | false | ## Medium: Passing multiple ETH deposits in orders array will use the same `msg.value` many times
### Description
_Submitted by hyh, also found by jayjonah8_
#### Impact
Contract holdings can be emptied as malicious user will do deposit/withdraw to extract value. This is possible because after `transferInputTokens` 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 | storage | true | false | ## Low: DELEGATECALL can overwrite proxy storage variables
### Description
The owner can set the boolean flag `useDELEGATECALL`, which switches the proxy from using a `CALL` opcode to using a `DELEGATECALL` opcode. This design feature is added to allow potential future functionality.
The proxy contract uses three sto... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: else-if block in function updateValue() can be removed since newValue can never be less than oldValue
### Description
The else-if block below is present in the [updateValue()](https://github.com/code-423n4/2023-12-revolutionprotocol/blob/d42cc62b873a1b2b44f57310f9d4bbfdd875e8d6/packages/revolution/src/MaxHeap.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use public constant
### Description
**Description**
In order to decrease gas usage during the deployment and construction of the contracts,
consider moving the number of tokens to the public constant.
**Recommendation**:
Consider usage of public constant for the number of tokens to be minted. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Denial Of Service
### Description
## Griefing and DoS Attacks in the Borrow Module
There is a possibility of griefing or denial of service (DoS) attacks in the context of the borrow module. Specifically, the concern is that anyone can perform deposit and repay actions on behalf of an obligation owner since 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 | high | access-control | true | false | ## High: UNCHECKED BALANCE CHANGE COULD LEAD TO UNFAIR WITHDRAWALS
### Description
The `process_withdraw_rate` function in the **krp-staking-contracts/basset\_sei\_hub** contract is not validating that the value of `hub_balance` is greater than `prev_hub_balance`. As a consequence, some edge scenarios could lead to us... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | true | false | ## Low: `targetOf()` incorrectly uses `_token ! = _liquidationPair.tokenIn()`
### Description
Currently, `targetOf()` uses `_liquidationPair.tokenIn()` but the actual comparison in `liquidate()` is `_tokenIn ! = address(_prizePool.prizeToken())`. So it's `_prizePool.prizeToken()` that should be used instead. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary variables (`jlp_p`, `sol_p`).
### Description
**Description**
In the 'request_deposit function there are two variables introduced: 'jlp_p and 'sol_p` that are excessive.
File: strategy/programs/vaultka/src/lib.rs: 712,713
**Recommendation**
Change the declaration of initial 'jlp_price` and sol_p... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Wrong number of blocks per annum
### Description
The project will be deployed on Arbitrum, which has an average block time of `0.25 seconds` as seen [here](https://chainspect.app/chain/arbitrum). However, the `GMInterestRateModel` contract treats the interest rates assuming `1e6 blocks/annum`, which is wrong 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 | high | access-control | true | false | Source: https://github.com/sherlock-audit/2023-03-taurus-judging/issues/11
## Found by
roguereddwarf, cducrest-brainbot
## Summary
According to the Contest page and discussion with the sponsor, the role of a `keeper` is to perform liquidations and to swap yield token for `TAU` using the `SwapHandler.swapForTau` fun... | Sherlock | 5 | Taurus |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Install OpenZeppelin via NPM
### Description
The [`SafeMath`](https://github.com/PolymathNetwork/polymath-token-distribution/blob/672fabe081e8f90ea025252d92c2eb247d60010e/contracts/SafeMath.sol) and [`Ownable`](https://github.com/PolymathNetwork/polymath-token-distribution/blob/672fabe081e8f90ea025252d92c2eb24... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | false | false | ## Medium: Unsafe Use of DEFAULT_ADMIN_ROLE
### Description
The `AukiToken`, `BurnContract`, `RewardLiquidityPoolContract`, and `StakingContract` contracts have access control (or its upgradeable counterpart). The `DEFAULT_ADMIN_ROLE` role is given to the `msg.sender` when deploying the contract, which is the co-manag... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | true | true | ## Medium: Teller Cannot Be Removed From Callback Contract
### Description
If a vulnerable Teller is being exploited by an attacker, there is no way for the owner of the Callback Contract to remove the vulnerable Teller from their Callback Contract.
### Impact
In the event that a whitelisted Teller is found to be vul... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Dao.sol: Reserve emissions must be turned on for depositLPs and bonds
### Description
## Handle
hickuphh3
## Vulnerability details
### Impact
`depositLPForMember()` and `bond()` invokes `harvest()` if a user has existing LP deposits or bonded assets into the DAO. This is to prevent users from depositing m... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | token | true | false | ## Low: Balance check for yield claims in `PerpetualBond::_validate` can be easily bypassed
### Description
In [`PerpetualBond::_validate`](https://github.com/YieldFiLabs/contracts/blob/40caad6c60625d750cc5c3a5a7df92b96a93a2fb/contracts/core/PerpetualBond.sol#L312-L314), there's a check to ensure that users have a non... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: Transfer Ownership is 1-step and can lead to irrecoverable transfers
### Description
**Severity**: Low
**Status**: Resolved
**Description**
In PearlPointsCalculator.sol & StakingConfigurator.sol: The `transferOwnership()` function in contract allows the current admin to transfer his privileges to another ad... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## High: Possible blocking of the contract
### Description
At the line
https://github.com/lidofinance/lido-dao/blob/5b449b740cddfbef5c107505677e6a576e2c2b69/contracts/0.8.9/DepositSecurityModule.sol#L123
initializes the `owner` variable without checking the new value of the variable.
If the value of the variable 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 | token | true | false | ## Low: Delegation is not reset when transferring lock tokens
### Description
The GovNFT lock tokens include functionality to delegate voting power for ERC5805 compliant tokens which are held in the associated vault.
### Recommendation
According to ERC5805, it is possible to delegate to no one: "_Each user account (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 | access-control | false | false | ## Low: Malicious modification of_usdi or _oracleMaster would allow the removal of all user funds
### Description
VaultController has two functions `registerUSDi()` and `registerOracleMaster()` which allow modification of the key variables that the contract uses. Either of these functions, if ever used mistakenly or m... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: flan can’t be transferred unless the flan contract has flan balance greater than the amount we want to transfer
### Description
## Handle
CertoraInc
## Vulnerability details
## Flan.sol (`safeTransfer()` function)
The flan contract must have balance (and must have more flan then we want to transfer) 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 | high | other | false | false | ## High: ASA-2025-003: Groups module can halt chain when handling a malicious proposal
### Description
Source: https://github.com/sherlock-audit/2024-12-seda-protocol-judging/issues/271
## Found by
4n0nx, Boy2000, HarryBarz, x0lohaclohell
### Summary
## cosmos sdk recently publish a bug (https://github.com/cosmos... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Chat points manipulation by adding liquidity to custom pools via SVFHook contract
### Description
The `addLiquidity` function of the `SVFHook` contract is intended for users to increase their available chat points by depositing liquidity (WETH/SVF) into a Uniswap V4 pool. The function allows callers to specif... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Adding reward tokens to `twTap` could cause pending cross-chain claim rewards msg to be stuck
### Description
There is a check in the `TapTokenReceiver._claimTwpTapRewardsReceiver` to ensure the claimed types amount is equal to the token types amount of `sendParam`.
The process of cross-chain claim is 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 | other | false | false | ## Low: Upgradeability
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> Similar to [PRL-6](https://certificate.quantstamp.com/full/particle/3cd57a7b-681f-4f38-b0cd-9fd6f2f37a89/index.html#findings-qs6). This version of contract won't use TimeLockContr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Maturity
### Description
## Code Review Summary
## Issues Identified
1. **Incorrect Comments for Getter Function**
The comments for the getter function within `profile` incorrectly state that they perform an update operation instead of retrieving a value. For example, the comment for `watch_time` 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 | low | other | true | false | ## Low: Incorrect Whitelist Check
### Description
## Code Overview
The function `check_token_and_min_trade_amount` utilizes the return value of `find_token_and_min_trade_amount` when `require_check_token_white_list` is true. The `is_existed` variable indicates whether the token is present in the white list. If it 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: calcAsymmetricValueToken never used
### Description
## Handle
cmichel
## Vulnerability details
The `Utils.calcAsymmetricValueToken` function is not used.
## Impact
Unused code can hint at programming or architectural errors.
## Recommended Mitigation Steps
Use it or remove it.
### Impact
Unused code can... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | false | false | ## Low: Misleading inline documentation
### Description
There are instances of misleading or imprecise documentation throughout the codebase.
In particular, in [`OptimisticGovernor.sol`](https://github.com/UMAprotocol/protocol/blob/fca8e24275e928f7ddf660b5651eb93b87f70afb/packages/core/contracts/zodiac/OptimisticGov... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## Low: .withdraw breaks non-decreasing share price invariant
### Description
One of the main invariants is that LPs never lose value to a swap, deposit, or withdraw action.
This means that the share price `totalAssets() / totalSupply` does not decrease after any of these actions.
This invariant is currently broken ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Incorrect event emission when removing fees via the `PolygonStrategy::updateFee`
### Description
**Description:** Fee for a given index can be removed by passing `_feeBasisPoints = 0` for a given fee index.
Current logic is swapping the fee at the index with that of the last index in the `fees` array, and the... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | false | ## High: Wrong call order for `setTopPoolIdsWithWeights`, resulting in wrong distribution of rewards
### Description
Per the Sherlock rules:
> If the protocol team provides specific information in the README or CODE COMMENTS, that information stands above all judging rules.
The Masterchef contract allows people to 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: Use of HTTP requests without timeout
### Description
The Elixir off-chain code uses the Python requests library to send HTTP requests. By default, requests do not time out unless the timeout parameter is explicitly passed to the method for a request. This behavior may cause the program to hang indefinitely when ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: OR in `if`-condition can be rewritten to two single `if` conditions
### Description
Refactoring the `if`-condition in a way it won't be containing the `||` operator will save more gas.
This is a simple forge test, which demonstrates gas usage for both versions:
This suggests, that conditions should be rewri... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | overflow | true | false | ## Gas: Using `unchecked` blocks to save gas
### Description
Solidity version 0.8+ comes with implicit overflow and underflow checks on unsigned integers. When an overflow or an underflow isn’t possible (as an example, when a comparison is made before the arithmetic operation), some gas can be saved by using an `unche... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | reentrancy | false | false | ## Low: Sub-Optimal Reentrancy Protections
### Description
The functions `createMotion()` and `enactMotion()` are sub-optimal with regards to resilience against reentrancy attacks. They have no check to prevent reentrancy (e.g., a `noReentrancy` modifier based on a storage flag) and do not properly apply the Checks-Ef... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary Function
### Description
A non-utilized `request` function was identified in the `PushOracleReceiver` contract. The function is expected to dispatch an interchain message via a provided mailbox, but it isn't called or used anywhere else in the code. Having unused functions in the contract increases... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Vesting During Migration Mode
### Description
**Severity**: High
**Status**: Resolved
**Description**
The StHEU.sol vest() function does not check if migrationMode is enabled, allowing users to continue vesting stHEU tokens even when the contract is in migration mode.
A malicious user could vest stHEU tok... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.