Lookup for vulnerabilities affecting packages.

Vulnerability_idVCID-y7cp-qam4-pkdn
Summary
Integer Overflow or Wraparound
Ethereum Name Service (ENS) is a distributed, open, and extensible naming system based on the Ethereum blockchain. According to the documentation, controllers are allowed to register new domains and extend the expiry of existing domains, but they cannot change the ownership or reduce the expiration time of existing domains. However, a preliminary analysis suggests that an attacker-controlled controller may be able to reduce the expiration time of existing domains due to an integer overflow in the renew function. The vulnerability resides `@ensdomains/ens-contracts` prior to version 0.0.22.

If successfully exploited, this vulnerability would enable attackers to force the expiration of any ENS record, ultimately allowing them to claim the affected domains for themselves. Currently, it would require a malicious DAO to exploit it. Nevertheless, any vulnerability present in the controllers could potentially render this issue exploitable in the future. An additional concern is the possibility of renewal discounts. Should ENS decide to implement a system that offers unlimited .eth domains for a fixed fee in the future, the vulnerability could become exploitable by any user due to the reduced attack cost.

Version 0.0.22 contains a patch for this issue. As long as registration cost remains linear or superlinear based on registration duration, or limited to a reasonable maximum (eg, 1 million years), this vulnerability could only be exploited by a malicious DAO. The interim workaround is thus to take no action.
Aliases
0
alias CVE-2023-38698
1
alias GHSA-rrxv-q8m4-wch3
Fixed_packages
0
url pkg:npm/%40ensdomains/ens-contracts@0.0.22
purl pkg:npm/%40ensdomains/ens-contracts@0.0.22
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/%2540ensdomains/ens-contracts@0.0.22
Affected_packages
0
url pkg:npm/%40ensdomains/ens-contracts@0.0.21
purl pkg:npm/%40ensdomains/ens-contracts@0.0.21
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-y7cp-qam4-pkdn
resource_url http://public2.vulnerablecode.io/packages/pkg:npm/%2540ensdomains/ens-contracts@0.0.21
References
0
reference_url https://github.com/ensdomains/ens-contracts/blob/master/contracts/ethregistrar/BaseRegistrarImplementation.sol#L171
reference_id
reference_type
scores
url https://github.com/ensdomains/ens-contracts/blob/master/contracts/ethregistrar/BaseRegistrarImplementation.sol#L171
1
reference_url https://github.com/ensdomains/ens-contracts/commit/e6b136e979084de3761c125142620304173990ca
reference_id
reference_type
scores
url https://github.com/ensdomains/ens-contracts/commit/e6b136e979084de3761c125142620304173990ca
2
reference_url https://nvd.nist.gov/vuln/detail/CVE-2023-38698
reference_id CVE-2023-38698
reference_type
scores
url https://nvd.nist.gov/vuln/detail/CVE-2023-38698
3
reference_url https://github.com/advisories/GHSA-rrxv-q8m4-wch3
reference_id GHSA-rrxv-q8m4-wch3
reference_type
scores
url https://github.com/advisories/GHSA-rrxv-q8m4-wch3
4
reference_url https://github.com/ensdomains/ens-contracts/security/advisories/GHSA-rrxv-q8m4-wch3
reference_id GHSA-rrxv-q8m4-wch3
reference_type
scores
url https://github.com/ensdomains/ens-contracts/security/advisories/GHSA-rrxv-q8m4-wch3
Weaknesses
0
cwe_id 1035
name OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities
description Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017.
1
cwe_id 190
name Integer Overflow or Wraparound
description The product performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control.
2
cwe_id 78
name Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
description The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
3
cwe_id 937
name OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities
description Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013.
Exploits
Severity_range_scorenull
Exploitabilitynull
Weighted_severitynull
Risk_scorenull
Resource_urlhttp://public2.vulnerablecode.io/vulnerabilities/VCID-y7cp-qam4-pkdn