Omniscia Tangible Audit

OnSaleTracker Static Analysis Findings

OnSaleTracker Static Analysis Findings

OST-01S: Inexistent Sanitization of Input Address

Description:

The linked function accepts an address argument yet does not properly sanitize it.

Impact:

The presence of zero-value addresses, especially in constructor implementations, can cause the contract to be permanently inoperable. These checks are advised as zero-value inputs are a common side-effect of off-chain software related bugs.

Example:

contracts/OnSaleTracker.sol
143function setMarketplace(address _marketplace) external onlyFactoryOwner {
144 marketplace = _marketplace;
145}

Recommendation:

We advise some basic sanitization to be put in place by ensuring that the address specified is non-zero.

Alleviation (2ad448279d9e8e4b6edd94bcd2eb22129b6f7357):

The input _marketplace address argument of the OnSaleTracker::setMarketplace function is adequately sanitized as non-zero in the latest in-scope revision of the codebase, addressing this exhibit.