POJIA破甲
地图 / Improper handling of untypical characters in domain names

Improper handling of untypical characters in domain names

内存破坏 / Improper Null Termination / #1178337

厂商
Node.js
严重程度
中危 · CVSS 7.5
赏金
—
弱点
Improper Null Termination
研究员
@philippjeitner
披露日期
2021-09-10
资产
https://github.com/nodejs/node
CVE
CVE-2021-22931

该报告还没有中文解读。

原文摘录

摘自原文(8551 字符中的一小部分)
Missing input validation of host names returned by Domain Name Servers in node's `dns` library can lead to output of wrong hostnames (leading to Domain Hijacking) and injection vulnerabilities in applications using the library (leading to Remote Code Execution, XSS, Applications crashes, etc.).
原文中的代码
const dns = require('dns');

if (process.argv[2] == "-x") {
	var host = process.argv[3];

	dns.reverse(host, (err, result) => {
		
		if (result){
			for (var i = 0; i < result.length; i++)
			{
				console.log("node".padEnd(8), "reverse".padEnd(16), host.padEnd(30), "-".padEnd(80), "-".padEnd(10), …

默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 Node.js 所有。

时间线

  • 报告提交
  • 公开披露
阅读 HackerOne 原文 ↗作者 @philippjeitner · 版权归作者与 Node.js 所有

同类报告

HackerOne SAML signup domain enforcement bypass results in unauthorized access to HackerOne PullRequest organizationHackerOne · 2024-02-04Unauthenticated user can upload an attachment to the last updated report draftHackerOne · 2018-10-09Improper input validation On Exported deep-link handler crashes `FileDisplayActivity` on crafted external URL — Denial-of-ServiceNextcloud · 2026-05-01mbedTLS private-key blob null-termination asymmetry in lib/vtls/mbedtls.c (mbed_load_privkey)curl · 2026-05-07Cache poisoning using NULL bytes and long URLsGreenhouse.io · 2018-09-16Null byte Injection in https://████/U.S. Dept Of Defense · 2020-05-14