Lucene search
+L

Potential risk of using swappedAmount in case of swap error

🗓️ 23 Jun 2023 00:00:00Reported by Code4renaType 
code423n4
 code423n4
🔗 github.com👁 18 Views

Potential risk of using swappedAmount in case of swap error. When swap operation fails, swappedAmount is written to and used to calculate conversion amount, trusting a zero value. However, variables returned in error states should not be trusted and should be overwritten to prevent potential future changes

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

11 Aug 2023 00:00Current
6.9Medium risk
Vulners AI Score6.9
18