dloop Art Registry Smart Contract

QuantstampFiles named in the report

Quantstamp reviewed dloop Art Registry Smart Contract on 26 May 2020: 8 findings, 0 critical; 5 marked fixed, 3 acknowledged.

No open critical findings
Open the reportOpen dloop Art Registry Smart Contract’s security record

Report hosted on certificate.quantstamp.com.

Trustblock does not review code.

Findings8

Statuses are the security firm’s own, from its report.

SeverityOpenAcknowledgedFixed
Critical000
High000
Medium001
Low034
MediumMissing input validationFixed

Input validation is missing in multiple places (line numbers are for the commit `42be24b`): 1. `DLoopArtwork.sol`, `L22`: The `artworkId` parameter is not checked to be greater than zero, and this violates the requirement: `The artwork id must always be a positive integer`. **Fixed** in `2ccd432`. 1. `DLoopArtwork.sol`, `L25` and `L72`: `dataType` is not currently validated, and therefore, it can be any `bytes32` value. However, `0x0` is used as a special value in the check on `L43` in `DloopMintable.sol`, which suggests that `dataType` should be checked to differ from `0x0` in `DLoopArtwork.sol`. **Fixed** in `2ccd432`. 1. `DloopAdmin.sol`, `L30`: `addAdmin(address account)` should check that `account` is a non-zero address. **Fixed** in `2ccd432`. 1. `DLoopArtwork.sol`: `L26` and `L73`: the `data` parameter is not validated. It could be an empty array, which means it will not contain any hashes. Also, it could be a really long array that may potentially lead to risks of exceeding block gas limits. It is **strongly recommended** to enforce a minimum and a maximum length or, if known, an exact format. Similarly, validation of `data` is missing in `DloopMintable.sol` on `L44` and `L53`. **Fixed** in `2ccd432`. 1. `DloopManagedToken.sol`, `L14`: `_setManaged(...)` does not check if the `tokenId` exists. While in the usage contexts token existence seems to be the case, it is still recommended to add a check into the `_setManaged(...)` method itself. **Fixed** in `2ccd432`.

LowManaged tokens are transferable independently from mintersFixed

When tokens are managed, minters can move tokens on behalf of a regular user, and it is expected. However, in the current implementation, the regular user is also able to move their managed tokens to a new holder, independently from minters (without authorization from minters). Those tokens remain managed after a transfer is complete, but the new token holder may be unaware of the fact that their tokens are still managed, and therefore, the tokens could be taken away from them by the minters. The specification does not seem to be very clear with regards to this subject. The Google doc says "the platform can move the token internally between managed user accounts". The PDF on Dropbox, while stating that managed tokens are "Only dloop ecosystem controlled / internal tokens", also states that "Technically, the user is able to transfer the tokens too".

LowMissing assertions on the output valuesFixed

The `splitTokenId(...)` method, `L42-44` (commit `42be24b `): after the bitwise shifts, it is suggested to check if the resulting `artworkId`, `editionNumber`, and `artistProofNumber` are still valid and meet the criteria that were originally imposed in `createTokenId(...)`.

LowPotential denial-of-service or misleading behaviourFixed

It is currently possible for an admin to remove all minters using the `removeMinter(...)` method. If no active minters are present, the `onlyMinter` modifier reverts for any Ethereum address, and therefore, the `mintEdition(...)` and `addEditionData(...)` methods are going to revert. Consider the case when the minter role is enabled (`_minterRoleEnabled` is set to `true`) but there are no active minters. This case could be misleading to both regular users and admins, because when the minter role is enabled, there could be a false expectation that there is at least one active minter. However, there is currently no easy way for admins or users to verify if there are any active minters: `_minterMap` is a map that cannot be traversed, and there is no variable storing the number of minters. So, users would need to know the actual minter address or iterate over past blocks to find `MinterAdded` events.

LowUnlocked PragmaFixed

Every Solidity file specifies in the header a version number of the format `pragma solidity (^)0.5.*`. The caret (`^`) before the version number implies an unlocked pragma, meaning that the compiler will use the specified version _and above_, hence the term "unlocked".

Contracts in scope

No deployed address is recorded for this audit.

The report names a repository or files. Open the report to see its scope.

Repository and files the report names (10)

  • contracts/DloopGovernance.sol
  • contracts/DloopMintable.sol
  • contracts/Migrations.sol
  • contracts/DloopToken.sol
  • contracts/DloopAdmin.sol
  • contracts/DloopWithdraw.sol
  • contracts/DloopManagedToken.sol
  • contracts/DloopArtwork.sol
  • contracts/CustomERC721Metadata.sol
  • contracts/DloopUtil.sol

Part of dloop Art Registry Smart Contract’s security record

dloop Art Registry Smart Contract
Audits1 audit by 1 firmLast audit May 2020, by Quantstamp.
Critical findingsNo open critical findingsIn 1 report.
Open dloop Art Registry Smart Contract’s security record

Security firm

Quantstamp

236 projects reviewed · 332 reports · latest Oct 2026

See Quantstamp’s audits

Something wrong on this page? A missing report, a wrong date, a finding that was fixed since. Tell us and we check it against its source.

Tell us