DNS Max Responses for DOS
Node.js dns.resolve4 returns no output for a domain with over 1300 A records; a commenter suggests this could be a DoS risk.
- Triaged in 4 days
- Fixed in 4 days
- Paid in 4 months
- Disclosed after 34 days
See Github (my issue): https://github.com/nodejs/node/issues/36063
When i try to fetch the A Dns records of following domain: ticbrasil.com.br I dont get any response. I think thats the case because there are over 1300 responses.
Version: v12.18.4, v14.15.0 Platform: 64-bit Windows 10 Pro & Enterprise
What steps will reproduce the bug? var dns = require('dns'); dns.resolve4('ticbrasil.com.br', function (err, addresses, family) { console.log(err); console.log(addresses); console.log(family); });
How often does it reproduce? Is there a required condition? It happends everytime
What is the expected behavior? https://pastebin.com/Tv53Na89
What do you see instead? Nothing/No output
Impact
mmomtchev commented 3 hours ago @mhdawson someone should contact Mitre or whoever you usually contact, this is a confirmed remote security vulnerability. If an attacker can trigger a DNS resolution for an address chosen by him, then it is exploitable for DoS. It is a very high-risk vulnerability. I don't think a remote access is possible, but this should probably be evaluated by an expert.
@jasnell
Member jasnell commented 2 hours ago We can look into this further but I have to point out: we have a defined process for properly reporting and investigating potential security vulnerabilities. As soon as this issue was suspected as being a security issue, that process should have been followed with investigation and fixes investigated in the private Node.js repo we use for that purpose, otherwise this ends up risking a zero-day for all Node.js users.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the DNS resolver in Node.js has a limit or buffer issue that prevents it from handling responses with a very large number of A records.
Impact
A commenter suggests an attacker could cause a denial of service by triggering DNS resolution for a domain with many A records.
What the attacker needed
Node.js application resolves attacker-controlled domain
How it was found
- Call the dns.resolve4 function with the domain ticbrasil.com.br.
- Observe that no output is produced (no error, no addresses).
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This report is about a bug in Node.js. When a program asks Node.js to look up the numeric addresses for a website name, Node.js normally returns a list. But if the website has a very long list of addresses (over 1300), Node.js returns nothing at all. A commenter suggests this could be a security risk.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.