prompt listlengths 2 2 | source stringclasses 3
values | severity stringclasses 5
values | category stringclasses 186
values | has_code bool 2
classes | has_poc bool 2
classes | reference_response stringlengths 23 5k | firm stringclasses 26
values | quality_score float64 0 5 | protocol stringclasses 398
values |
|---|---|---|---|---|---|---|---|---|---|
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | true | false | ## High: If cross positions use the same margin token as collateral and close without liability, then fee accounting will be completely wrong
### Description
Cross positions can use different assets or the same asset as the position's margin asset. If the assets are the same, the entire loss, including the fees, will ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Not using the named return variables anywhere in the function is confusing
### Description
Consider changing the variable to be an unnamed one
*There are 8 instances of this issue:*
https://github.com/code-423n4/2022-08-nounsdao/blob/45411325ec14c6d747b999a40367d3c5109b5a89/contracts/governance/NounsDAOLogic... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | true | false | ## Low: CamelotRelayer.read() will revert for newly created pools
### Description
In CamelotRelayer.sol, `getResultWithValidity()` will get the price of the token by calling `DataStorageLibrary.consult` and giving a `QUOTE_PERIOD`
This `QUOTE_PERIOD` is the TWAP period that the protocol intends to use to prevent pri... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Validating The Return Value Of Static Call
### Description
## Audit Findings: Staticcall and Decimals Fetching
In `registerAsset` and `requireAssetAmountValidForTokenBridge`, `staticcall` obtains the number of decimal places for a specific asset by calling `decimals` on a provided asset. However, `staticcall`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Error messages from remote JSON RPC interfaces are re�lected to users
### Description
Error messages parsed from JSON RPC messages are displayed to the user. This is potentially dangerous. If the local network is compromised, then attackers may be able to send misleading error messages to the wallet. This 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 | low | liquidation | true | false | ## Low: Collateral not returned if there is a disagreement
### Description
When the negotition is failed, the beneficiary can call `negotiationFailed` function to returns the collateral back. The function has the `onlyBeneficiary` modifier, which means only the beneficiary can call this function. However, if the benef... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Enforcing Constraints On TierParams
### Description
## TierValidator.sol: Validate Function Overview
In `TierValidator.sol`, the `validate` function is used to check if the provided tier parameters satisfy certain constraints. This function currently checks if the `tier.supply` value is greater than 0.
## Re... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential gas limit issues
### Description
**Description:**
The research()function has multiple for loops that could cause gas limits to be exceeded if the reward structure is too complex.
**Recommendations:**
A potential fix could be to limit the maximum number of rewards that can be added to a token iden... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fee on Transfer Token Will Break accounting
### Description
`mint()/deposit()` is using `amount` for transfering and accounting. But fee on transfer token could break the accounting, since the actual token received will be less than amount. As a result, `sharePrice` will have some small error each time.
``... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Insufficient event generation
### Description
Multiple operations do not emit events. As a result, it will be difficult to review the contracts’ behavior for correctness once they have been deployed. Events generated during contract execution aid in monitoring, baselining of behavior, and detection of suspicio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
### Description
## Optimizing Blockchain Instructions
Most instructions utilize the canonical bump, which introduces the overhead of interacting with the blockchain to obtain the canonical bump value. This results in increased computations and higher gas consumption.
## Remediation
Utilize 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 | true | false | ## Low: The RoleAssigned event in LlamaPolicy emits the currentRoleSupply instead of the quantity
### Description
During the audit, the client discovered an issue that affects their off-chain infrastructure. The `RoleAssigned` event in LlamaPolicy emits the `currentRoleSupply` instead of the `quantity`. From an off-ch... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Some ERC20 tokens should need to approve(0) first
### Description
Some tokens (like USDT) do not work when changing the allowance from an existing non-zero allowance value. They must first be approved by zero and then the actual allowance must be approved.
When using one of these unsupported tokens, all tran... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Access Control Check
### Description
## Resource Signer Function in common_config.move
In `common_config.move`, the `resource_signer` function is utilized to obtain the signer from the signer capability that is stored in the resource based on the provided seed. This function is employed by other modules to g... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | true | false | ## High: Lenders and borrowers can not claim liquidation token after NFT collateral auction sold
### Description
The incorrect logic in function `veNFTAerodrome::getDataByReceipt()` will cause the lenders and borrowers unable to claim liquidation token after the NFT auction sold
### Impact
- Loss of liquidation for 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 | other | true | false | ## Medium: Vault and diamond assigned to the same address
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
`vault` and `diamondAddress` within `LpToken.sol` are being assigned to the same address using the `setDiamondAddress` function. These addresses are used for important logic like mod... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Fee Claim Execution
### Description
## Fee Processing Update
In deposit and withdraw, `process_fee_claim` is performed after updating `ssl_pool.total_liquidity_deposits`. Thus, the fee calculation would be based on the previous state of `total_liquidity_deposits`. This may result in inaccuracies, as the fee 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: Incomplete Custom Fee Configuration
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `aaae380ab0496b0123a9686d3a834d026ae2495f`. The client provided the following explanation:
> We now revert on preferred fee setup if custom fee isn't already set.
**Update**
The `setPreferredFeeType... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Initial value check is missing in Set Functions
### Description
Checking whether the current value and the new value are the same should be added. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 `Ownable2StepUpgradeable` instead of ` OwnableUpgradeable ` contract
### Description
[FixedPrice.sol#L10](https://github.com/code-423n4/2022-12-escher/blob/main/src/minters/FixedPrice.sol#L10)
[LPDA.sol#L10](https://github.com/code-423n4/2022-12-escher/blob/main/src/minters/LPDA.sol#L10)
[OpenEdition.sol... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | true | true | ## High: Initialization of DyadXPv2 is impossible
### Description
`DyadXPv2.initialize()` loops across the supply of `DNFT`:
```solidity
for (uint256 i = 0; i DyadXPv2
vm.prank(xp_owner);
UUPSUpgradeable xp_proxy = UUPSUpgradeable(payable(0xeF443646E52d1C28bd757F570D18F4Db30dB70F4));
xp_proxy.upgradeToAndCall(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 | other | false | false | ## Low: Unused functions in the library
### Description
**Description**
Library BitOpMapPool.sol contains functions setPkgDtTknPool() and setPkgDtWhiteList() which
are not used within the project. In case if it is native and not external library, consider
removing the unused functions.
**Recommendation**:
Remove un... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | false | false | ## Low: Maximum gRPC message size of MaxInt32 (2GB) set in beacon-chain/server may lead to DoS
### Description
The Prysm 3.2.2 release changed the maximum gRPC message size in the beacon-chain/server program to a value of 2GB (figure 10.1). This may allow an attacker who can send requests to this server to cause a 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 | high | reentrancy | true | false | ## High: 1. Cross-function reentrancy leading to double delegation
### Description
**Severity:** Critical
**Path:** ERC20Pods.sol#L116-L151
**Description:**
In the function `_beforeTokenTransfer` that is being overloaded to process
the delegations transfers for various pods, user pods are being read from
`_pods` 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... | solodit_api | high | Uniswap | false | false | Source: https://github.com/sherlock-audit/2023-02-blueberry-judging/issues/20
## Found by
carrot, obront, ctf\_sec, cergyk, banditx0x, psy4n0n, 0x52
## Summary
`IchiVault#getTotalAmounts` uses the `UniV3Pool.slot0` to determine the number of tokens it has in it's position. `slot0` is the most recent data point and... | Sherlock | 5 | Blueberry |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Project dependencies contain vulnerabilities
### Description
Although dependency scans did not identify a direct threat to the project under review, `npm` and `yarn audit` identified a dependency with a known vulnerability. Due to the sensitivity of the deployment code and its environment, it is important 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... | cyfrin_structured | low | integer-overflow | false | false | ## Low: Unchecked decrement results in integer underflow in `LibStrings::toString`
### Description
The implementation of [`LibStrings::toString`](https://github.com/BeanstalkFarms/Beanstalk/blob/c7a20e56a0a6659c09314a877b440198eff0cd81/protocol/contracts/libraries/LibStrings.sol#L16-L37) is intended to convert an unsi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Gauges Rewards Can Be Erroneously Deleted
### Description
Each voting period is supposed to last 1 week. There are two ways for anyone to update the system's period after this time has passed:
1. Call [one of the `distribute` functions of `VoterV3`](https://github.com/ThenafiBNB/THENA-Contracts/blob/2bb84cf... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: URL components not encoded
### Description
In a few places, URL addresses are constructed from arguments that have not been properly sanitized. This may result in broken functionality or be leveraged as a part of an attack.
```typescript
export async function executeEntityQuery(serverInfo: ConseilServerInfo, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Failure To Validate Locked Stake Initialization
### Description
## Documentation on finalize_locked_stake
In `finalize_locked_stake`, when `params.thread_id` is zero, it retrieves the first element of the `locked_stakes` vector via `iter_mut().find()`. Consequently, an empty slot from the `locked_stakes` 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 | high | overflow | true | false | ## High: Tokens with more than 18 decimal points will cause issues ✓ Fixed
### Description
It is assumed that the maximum number of decimals for each token is 18. However uncommon, but it is possible to have tokens with more than 18 decimals, as an Example [YAMv2](https://etherscan.io/token/0xaba8cac6866b83ae4eec97dd0... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Gas: Contract Can Be Deployed Without Funds.
### Description
The Escrow contract contains a vulnerability that allows users to bypass the fund check during deployment by providing a price of 0. The bug circumvents the intended behavior of verifying that funds have been deposited to the contract's address before ini... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [05] `setProtocolFee()` can be called multiple times to spam event emission
### Description
Function `setProtocolFee()` does not reset the pending value (`_pendingProtocolFee`). As the result, `setProtocolFee()` can be called infinite times. Even though the protocol fee cannot be changed, the event will be emi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack Of Slippage Protection For Sequencer
### Description
There is a lack of slippage protection in the function `sequenceBatches()`. Within the function `sequenceBatches()`, the trusted sequencer will be charged a fee of POL according to the following lines of code:
```solidity
// Pay collateral for every no... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Unused requirements
### Description
**Description**
This requirement is not used because in front of him is another requirement which does the
same work “checking that the user doesn’t try to withdraw more than he has.”. Also in your
contract impossible situation then the user withdraws the amount of staked 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 | oracle | false | false | ## Low: Missing Inheritance Reduces Consistency
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `6374a844a89c874887da7349a094b5f982daba95`.
**File(s) affected:**`contracts/oracles/SFrxETHOracle.sol`
**Description:** Since the `SFrxETHOracle` contract is going to be deployed as the main orac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Transferring ERC1155 tokens before applying parent return ops allowing reentrancy
### Description
**Details**
[MarketMaker.sol#L392-L397](https://github.com/SportsFI-UBet/ubet-contracts-v1/blob/7b61ff6631091056be51bf0bd88377560f6986f7/contracts/markets/MarketMaker.sol#L392-L397)
@> conditionalTokens.safeT... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Quadratic Voting Strategy Incompatible with Quorum Calculation in LucidGovernor
### Description
The `LucidGovernor` and `LucidGovernorTimelock` contracts are designed to work with different voting strategies, including `QuadraticVoteStrategy` and `QuadraticGitcoinPassportStrategy`. However, these quadratic vo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | false | false | ## Gas: Using `private` rather than `public` for constants, saves gas
### Description
If needed, the 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, and not adding another entry to the method ID table | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: When The Owner Uses `mintToWallet()`, `saleSupplyMinted` Is Not Incremented
### Description
The `mintToWallet()` function in `RunaAGI.sol` is used only by the owner to mint NFT to the wallet but in the for loop where NFTs are minted, it is forgotten to add a `saleSupplyMinted` update.
The function increase... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Proofs Based On beaconStateRoot Break After Electra Upgrade
### Description
The Electra upgrade increases the BeaconState tree height, breaking proofs that rely on the `beaconStateRoot`. In the BeaconChainProofs library, both validator field and balance container proofs rely on the `beaconStateRoot`, as shown... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: LiquidityMining can’t accept single ERC1155 tokens ✓ Fixed
### Description
The contract `LiquidityMining` is also defined as an `ERC1155Receiver`
**code/contracts/LiquidityMining.sol:L19**
```
contract LiquidityMining is ILiquidityMining, ERC1155Receiver, Ownable {
```
The [finalized EIP-1155 standard](h... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | false | false | ## Low: Erroneous comments
### Description
Inline comments in lines [24](https://github.com/compound-finance/open-oracle/blob/d0a0d0301bff08457d9dfc5861080d3124d079cd/contracts/Uniswap/UniswapAnchoredView.sol#L24) and [27](https://github.com/compound-finance/open-oracle/blob/d0a0d0301bff08457d9dfc5861080d3124d079cd/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 | low | initialization | false | false | ## Low: Missing _disableInitializers
### Description
The [`BitVMBridge` contract](https://github.com/fiamma-chain/bitvm-bridge-contracts/blob/935e2cbd1b5d1060439045b74ace6b2f506a25ad/src/BitVMBridge.sol#L10) is deployed behind a transparent proxy to enable upgrades and allow the proxy to initialize the contract by cal... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Risk of token theft due to unchecked type conversion
### Description
An attacker can steal funds from a pool using a function that fails to revert on unexpected input.
The `addSignedDelta` function is used by the `allocate`, `unallocate`, and `unstake` functions to alter the liquidity of a pool. These functi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [N‑11] Constant redefined elsewhere
### Description
Consider defining in only one contract so that values cannot become out of sync when only one location is updated. A [cheap way](https://medium.com/coinmonks/gas-cost-of-solidity-library-functions-dbe0cedd4678) to store constants in a single location is to cr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Input Parameter Constraints
### Description
## Managing Hero NFT Attributes in `arcade_champion`
In `arcade_champion`, the `mint_hero` function along with other update functions are utilized to manage the attributes of the Hero NFT, such as tier, star_rating, and level. Applying validation constraints on thes... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Malicious actor can win an auction unfavorably to the protocol by block stuffing
### Description
When the protocol bad debt is auctioned off with 10% incentive at the beginning, a user who gives the best bid wins. The auction ends when at least one account placed a bid, and the current block number is bigge... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Storage slot collision
### Description
There is a miscalculation in the storage layout allocation for the `PriceAggregatorStorage` struct, which leads to a potential storage slot collision with `OtcStorage`.
The key issue is with the bytes32[2] jobIds field. It's incorrectly calculated as taking up 64 bits, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Use a single file for all system-wide constants
### Description
There are many addresses and constants used in the system. It is recommended to put the most used ones in one file (for example constants.sol, use inheritance to access these values).
This will help with readability and easier maintenance for fut... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Volatility Fee Ratio Calculated from The Wrong Denominator
### Description
This issue has been identified within the `_updateMultiplierForToken` function of the `SelfPeggingAsset` contract.
The contract calculates the volatility ratio as follows:
```solidity
uint256 ratio = (diff * FEE_DENOMINATOR) / oldRate;... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Uninitialized dynamic array in getGroupMembers function leads to runtime error
### Description
The `getGroupMembers` function, implemented in the **GroupIPAssetRegistry** contract, is intended to retrieve a subset of IP addresses that are members of a specific group:
```
function getGroupMembers(
address gr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Rounding Errors In Quote Calculation
### Description
## Quote Calculation for Constant Product Curves
Quote calculation for Constant Product curves contains division, leading to potential rounding errors. Pools may suffer a marginal loss due to prices rounding down when selling NFTs.
## Code Snippet
Locatio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | false | ## Medium: Missing circuit breaker checks in `ethPerCvx()` for Chainlink's price feed
### Description
The `ethPerCvx()` function relies on a Chainlink oracle to fetch the CVX / ETH price:
[VotiumStrategyCore.sol#L158-L169](https://github.com/code-423n4/2023-09-asymmetry/blob/main/contracts/strategies/votium/VotiumStr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `GAME_ADMIN` can force checkpoint finishing
### Description
The `Beekeeper.setAdminMint` lets the `GAME_ADMIN` role increase the `adminMintAmount` variable even if the game is enabled. As mentioned in the protocol documentation about the Hibernation Games "If Honeycomb never sells out, then the OG Bong Bear 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 | medium | cross-chain | true | false | ## Medium: The `receive_cross_chain_msg` function has potential replay attack risks
### Description
### Impact
The `receive_cross_chain_msg` function does not check the execution status of cross-chain messages itself and relies entirely on the checks performed by the settlement contract. If the settlement contract 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 | true | false | ## Low: Protocol fee is not deducted
### Description
## Finding Report
## Context
Lottery.sol#L319-L323
## Finding Description
It seems that `protocolFee` is not deducted when `lpPoolTotal == 0`, which might not be expected.
## Impact Explanation
The protocol will lose the fees.
## Likelihood Explanation
The likel... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Excessive Authority Granted to Managers in the `ckr_btc.cairo` Contract Presents Significant Management Risks
### Description
In the `ckr_btc.cairo` contract, managers possess broad authority and can execute all functions except `upgrade()`. This level of access contrasts with typical Solidity practices, 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 | other | false | false | ## Low: Separate Upgrade Capability From Treasury Capability
### Description
## Coin.move Overview
In `coin.move`, TreasuryCap obtained after the creation of the currency has the capability to update the details of the coin. Adopting a distinct `UpgradeCap` exclusively for updating the coin details instead of relying... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 underscore prefix for non-external variables
### Description
This convention is suggested for non-external state variables (private or internal). [Documentation](https://docs.soliditylang.org/en/latest/style-guide.html#underscore-prefix-for-non-external-functions-and-variables)
*There are 36 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... | skyward_49k | high | front-running | false | false | ## High: Front-runnig the first deposit on stake yealds the whole WETH amount
### Description
By inserting a transaction between the deployment of [staking](https://github.com/Cyfrin/2023-07-beedle/blob/main/src/Staking.sol#L88) and depositing of the first amount of WETH you can steal this whole amount.
### Impact
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... | cyfrin_structured | medium | integer-overflow | true | true | ## Medium: Incorrect range validation in `quantAMMPackEight32` allows invalid values to be packed
### Description
The `ScalarQuantAMMBaseStorage::quantAMMPackEight32` function contains incorrect validation logic that fails to properly check minimum bounds for six out of eight input parameters. The require statement 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 | storage | false | false | ## Low: Unused Errors
### Description
`P2pYieldProxy` declares custom errors `P2pYieldProxy__ZeroSharesAmount` and `P2pYieldProxy__NotFactory`, yet no function ever reverts with them. Dead declarations bloat bytecode, increase deployment costs, and distract maintainers who must verify their relevance.
### Recommendat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Function `withdrawOtherToken()` Is Vulnerable to Double-Entry Tokens
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> ERC20 contracts with that type of infra are rare, we would like to support only regular token contracts.
**File(s) affected:... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | true | false | ## High: Numerators are off by one
### Description
`ClaimCore` constructor will set the numerators (`numeratorUsdc`, `numeratorUsdt`, `numeratorNative`) for computing the required donation amount to claim the ZRO token.
However, the numerators are off by a factor of 10 as the base10 exponent is incorrectly subtracted... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | front-running | false | false | ## Low: Lenders Can Claim NFT With Last-Second Full Loan Refinance
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> "We thought already about this and it's fine. All solutions are worse than existing state given they require defining a time window."
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Matured fCash positions not automatically redeemed in `NotionalTradeModule.initialize`
### Description
The function comments imply that matured fCash positions are redeemed within `NotionalTradeModule.initialize`. However, this redemption is not implemented in this function.
### Findings
[NotionalTradeModule... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No ability to invalidate nonce
### Description
When the user signs a new stop loss order he encodes the nonce that will be used with it. Nonces can be used in an unordered way and once the order is signed anyone can execute it on behalf of the signer, and there is no ability for the signer to invalidate the or... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Scores.sol: Incorrect computation of user's score when alpha is 1
### Description
The formula for a user's score depends on the `xvs` staked and the `capital`. One core variable in the calculation of a user's score is `alpha` which represents the weight for `xvs` and `capital`. It has been stated in the [do... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: Missing `__UUPSUpgradeable_init()` call in `AlgebraVaultFactory` initialization
### Description
_Acknowledged_
The `AlgebraVaultFactory.initialize()` function inherits from `UUPSUpgradeable` but does not call `__UUPSUpgradeable_init()` during initialization:
While `UUPSUpgradeable` in recent versions may no... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | token | false | false | ## Low: Emit missing events
### Description
Emit missing events:
* `DSToken::setFeature`, `setFeatures`, `setCap`
* `TrustService::addEntity`, `changeEntityOwner`, `addOperator`, `removeOperator`, `addResource`, `removeResource`
* `SecuritizeSwap::updateNavProvider` | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 custom errors instead of revert error strings
### Description
**Description:** Using custom errors instead of revert error strings to reduce deployment and runtime cost:
**Wormhole:**
Error strings have all been confirmed to be length < 32, this is sufficient for the purposes of this contract.
\clearpag... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [02]
### Description
This was mentioned in the Red4Sec audit (NFSC09), but it wasn't fixed here: OwnableProxyDelegation is Context, but still uses msg.sender, not \_msgSender(): | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | false | false | ## Medium: Unchecked assumption that trustee and token have the same owner
### Description
In the[`reclaimTokens`](https://github.com/OpenSTFoundation/SimpleTokenSale/blob/1a1e863441ba0149d7585203f5dbc6e800af00cf/contracts/Trustee.sol#L198) function, there is a token transfer to the `trustee`contract owner, but accord... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [G‑01] State variables only set in the constructor should be declared `immutable`
### Description
Avoids a Gsset (**20000 gas**) in the constructor, and replaces the first access in each transaction (Gcoldsload - **2100 gas**) and each access thereafter (Gwarmacces - **100 gas**) with a `PUSH32` (**3 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 | low | storage | true | false | ## Low: Remove TODO Check if bytes shift is necessary
### Description
In `LibBytes16::readBytes16`, the following line has a `TODO`:
Since two reserve elements' worth of data is stored in a single slot, the left shift is indeed needed. The following test shows how these are different:
**Beanstalk:** Fixed [here](h... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | false | false | ## Low: Unsafe ABI encoding
### Description
It is not an uncommon practice to use `abi.encodeWithSignature` or `abi.encodeWithSelector` to generate calldata for a low-level call. However, the first option is not safe from typographical errors, and the second option is not type-safe. The result is that both of these me... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Tempus lend method wrongly calculates amount of iPT tokens to mint
### Description
_Submitted by kenzo, also found by cccz, Metatron, unforgiven, and WatchPug_
The Tempus `lend` method calculates the amount of tokens to mint as `amountReturnedFromTempus - lenderBalanceOfMetaPrincipalToken`.
This seems wrong ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Absence of Pausable Mechanism for Emergency Control
### Description
The contract lacks a `Pausable` implementation, which means it cannot be temporarily halted in case of emergencies, such as security breaches, exploits, or unexpected behavior.
Without this safeguard, the contract remains fully operationa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect value emitted
### Description
## Severity: Low Risk
**Context:** LibSwap.sol#L76-L78
**Description:**
LibSwap.swap() emits the following:
It will be difficult to interpret the value emitted for `toAmount` as the observer won't know which of the two values has been emitted.
**Recommendation:** 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 | medium | other | true | false | ## Medium: Incorrect validation during checking liquidity spread
### Description
### Impact
Because of incorrect validation, it allows option buyers not to pay premium.
### Proof of Concept
When long leg is minted or short leg is burnt, the protocol checks liquidity spread by calculating `TotalLiquidity / NetLiquid... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: GovernanceProxy DOS via `updateDelay()`
### Description
If an admin mistakenly calls `updateDelay(someImportantFunction, SUPER_BIG_NUMBER)` in GovernanceProxy, restoring a lower delay for `someImportantFunction` becomes impossible. To execute `updateDelay(someImportantFunction, LOW_NUMBER)`, one would need ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Variable outside store
### Description
In contrast to most of the code base, the [last policy identifier](https://github.com/neptune-mutual-blue/protocol/blob/73fc82fbe0d1388867b7df669983fe42760daeb1/contracts/core/policy/Policy.sol#L32) is saved directly in the `Policy` contract. However, to maintain continui... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [07] Absorber removal request timelock leads to unnecessary disadvantages for users
### Description
If a user [requests](https://github.com/code-423n4/2024-01-opus/blob/4720e9481a4fb20f4ab4140f9cc391a23ede3817/src/core/absorber.cairo#L441-L465) to [remove](https://github.com/code-423n4/2024-01-opus/blob/4720e9... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Checks for Sequencer Uptime When Fetching Chainlink Prices
### Description
**Update**
Marked as "Fixed" by the Venus team. Addressed in: `5e2dcbf33e92fe0865134653f87779f06f563083`.
**File(s) affected:**`oracle/contracts/oracles/ChainlinkOracle.sol`
**Description:** The `ChainlinkOracle._getChainli... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | storage | true | false | ## Gas: Tightly pack storage variables/optimize the order of variable declaration
### Description
The EVM works with 32 byte words. Variables less than 32 bytes can be declared next to eachother in storage and this will pack the values together into a single 32 byte storage slot (if the values combined are <= 32 bytes... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Using `pool.slot0` can be easily manipulated
### Description
**Description:** `StrategyPassiveManagerUniswap::sqrtPrice` gets the current tick and the current price [using](https://github.com/beefyfinance/experiments/blob/14a313b76888581b05d42b6f7b6097c79f3e65c6/contracts/protocol/concliq/uniswap/StrategyPassi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `GolomToken.sol` doesn't contain a function to mint treasury tokens
### Description
[GolomToken.sol#L14-L73](https://github.com/code-423n4/2022-07-golom/blob/7bbb55fca61e6bae29e57133c1e45806cbb17aa4/contracts/governance/GolomToken.sol#L14-L73)
Potential downtime in GolomTrader
### Proof of Concept
GolomT... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: CONSIDER USING CALL INSTEAD OF TRANSFER IN THE CONTRACTS
### Description
The transfer function is not recommended for sending ETH due to its, 2300 gas unit limit. Instead, call can be used to circumvent the gas limit.
Code Location
-------------
```
Burn.sol::32 => msg.sender.transfer(remain);
CandidateH... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary ETH to WETH conversion during swap
### Description
**Description:** In the V3DexSwap contract, ETH is converted to WETH before processing the swap through the router as seen in the snippet below.
However, this is not required since the router supports direct ETH to Linea swaps. As we can observe ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Optimize names to save gas
### Description
`public`/`external` function names and `public` member variable names can be optimized to save gas. See [this](https://gist.github.com/IllIllI000/a5d8b486a8259f9f77891a919febd1a9) link for an example of how it works. In this report are the interfaces/abstract contract... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: Setter applied with no event emitted.
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
ERC20Distribution.sol - In the changeKYCApprover
it is noticed that events are emitted after calling the setter methods in this contract. Recommendation: Add event emitter which emit new ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | initialization | true | true | ## Lines of code
https://github.com/rabbitholegg/quest-protocol/blob/8c4c1f71221570b14a0479c216583342bd652d8d/contracts/RabbitHoleReceipt.sol#L58-L61
https://github.com/rabbitholegg/quest-protocol/blob/8c4c1f71221570b14a0479c216583342bd652d8d/contracts/RabbitHoleTickets.sol#L47-L50
## Vulnerability details
Both `Ra... | Code4rena | 5 | RabbitHole |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `VotingEscrow._burn` prevents approved spender from using `withdraw()`
### Description
Inside the `withdraw`, `merge`, and `split` operations, there is a check using `_isApprovedOrOwner`, which allows the `tokenId`'s spender or operator to perform those actions.
```solidity
function withdraw(uint _tokenI... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | cross-chain | false | false | ## High: Router Owner Could Steal All The Funds Within `SponsorVault`
### Description
_Submitted by xiaoming90_
[BridgeFacet.sol#L541](https://github.com/code-423n4/2022-06-connext/blob/4dd6149748b635f95460d4c3924c7e3fb6716967/contracts/contracts/core/connext/facets/BridgeFacet.sol#L541)
[SponsorVault.sol#L196](https... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | token | false | false | ## High: `LiquidityFreeLaunch` Contract Will Never Finalize a Free Launch Due to Incorrect Order of Operations for `isFinalized` and `factory.getPair()`
### Description
**Severity**: Critical
**Status**: Resolved
**Description**
The `LiquidityFreeLaunch` contract is responsible for handling the bootstrapping and sa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Rebalancing breaks and can corrupt the accounting if amountToProtocol or amountToChain turn negative
### Description
Derby operates with deltas, but doesn't check that resulting amounts to be allocated are positive.
This allows for possible griefing attack permanently corrupting protocol accounting.
### ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: XChain deposits with long payloadBody can be bricked and unreplayable on destination chain
### Description
When a payload is received via AMB on the destination chain, the content of the whole payload body is written to storage, which is very gas costly since it is a variable length data structure (bytes) and... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: [G‑05] State variables should be cached in stack variables rather than re-reading them from storage
### Description
The instances below point to the second+ access of a state variable within a function. Caching of a state variable replaces each Gwarmaccess (**100 gas**) with a much cheaper stack read. Other le... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: TRST-M-6 KeyManager ERC165 does not support LSP20
### Description
**Description:**
LSP6KeyManager supports LSP20 call verification. However, in `supportInterface()` it does not
return the LSP20 **interfaceId**.
As a result, clients which correctly check for support of LSP20 methods will not operate with ... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.