Detectbox Audit Reports
Payant Security Audit Report
Overview

OVERVIEW

Project Summary

Payant is a platform that facilitates seamless invoicing, payment, and fund withdrawal processes for clients and contractor. It employs smart contracts to automate these processes while ensuring security, transparency, and trust through blockchain technology.

Audit Summary

A time-boxed independent security assessment of the Payant Protocol contract was done by Samrat Gupta ( @Sm4rty_ ), Rohan Jha (@rohan16___) and Team DetectBox with a focus on the security aspects of the application's implementation. We performed the security assessment based on the agreed scope, following our approach and methodology. Based on our scope and our performed activities, our security assessment revealed 2 High and 3 Low severity issues. Additionally, 4 Informational suggestion was also made which, if resolved appropriately, may improve the quality of the Project’s Smart contract.

Audit Timeline: 16th August’23 - 24th August’23

Website: https://www.payant.io/ (opens in a new tab)

Vulnerability Summary

Findings Summary

SeverityNumber of Issue
High2 issue
Low3 issue
Informational4 issue

Audit Scope

The code under review is composed of 922 nLOC in the Solidity language. It also includes 354 nLOC of scripts written in the Rain language.

FileTotal LinesnSLOCComplex. Score
contracts/flow/basic/Flow.sol765432
contracts/factory/CloneFactory.sol342316
contracts/flow/erc721/FlowERC721.sol294226130
contracts/interpreter/shared/RainterpreterExpressionDeployer.s348191100
contracts/interpreter/shared/RainterpreterStore.soI582720
contracts/interpreter/shared/Rainterpreter.sol1096936
contracts/interpreter/ops/context/OpContext.sol47215
contracts/interpreter/ops/context/OpContextColumnHash.sol53227
contracts/interpreter/ops/error/OpEnsure.sol43275
contracts/interpreter/ops/evm/OpTimestamp.sol29143
contracts/interpreter/ops/math/logic/OpEqualTo.sol382111
contracts/interpreter/ops/math/Iogic/OpAny.soI523517
contracts/interpreter/ops/math/logic/OpEvery.sol513417
contracts/interpreter/ops/math/logic/OpGreaterThan.sol362111
contracts/interpreter/ops/math/logic/OpLessThan.sol362111
contracts/interpreter/ops/math/logic/OplsZero.sol36219
contracts/interpreter/ops/store/OpSet.sol45307
contracts/interpreter/ops/store/OpGet.sol663813
Total1451895450

RainScripts :

FileTotal LinesnSLOC
addDeliverables.template.rain3830
approveDeliverables.template.rain4031
cancel.template.rain4028
cancelMediation.template.rain3727
clientWithdraw.template.rain4937
contractorWithdraw.template.rain4536
feedbackDeliverables.template.rain4032
mediationClientWithdraw.template.rain4434
mediationContractorWithdraw.template.rain4434
mediationResult.template.rain4534
startMediation.template.rain4031
Total462354

Auditors Involved:

Lead Auditor -

Samrat Gupta - https://app.detectbox.io/profile/sm4rty (opens in a new tab) Rohan Jha - https://app.detectbox.io/profile/Rohan16 (opens in a new tab)

Detect Warden

33Audits - https://app.detectbox.io/profile/33audits (opens in a new tab)