Lucene search

K
osvGoogleOSV:GO-2021-0239
HistoryFeb 17, 2022 - 5:33 p.m.

Improper sanitization when resolving values from DNS in net

2022-02-1717:33:35
Google
osv.dev
24
improper sanitization
dns resolution
html injection
rfc 1035
lookup functions
resolver type
arbitrary values
lookuptxt

AI Score

7.7

Confidence

High

EPSS

0.01

Percentile

83.8%

The LookupCNAME, LookupSRV, LookupMX, LookupNS, and LookupAddr functions and their respective methods on the Resolver type may return arbitrary values retrieved from DNS which do not follow the established RFC 1035 rules for domain names. If these names are used without further sanitization, for instance unsafely included in HTML, they may allow for injection of unexpected content. Note that LookupTXT may still return arbitrary values that could require sanitization before further use.