POJIA破甲
地图 / url.parse() hostname spoofing via javascript: URIs

url.parse() hostname spoofing via javascript: URIs

跨站脚本 / XSS(通用) / #395845

厂商
Node.js
严重程度
低危 · CVSS 6.1
赏金
—
弱点
XSS(通用)
研究员
@bayotop
披露日期
2020-01-15
资产
https://github.com/nodejs/node
CVE
—

该报告还没有中文解读。

原文摘录

摘自原文(2269 字符中的一小部分)
Using [url.parse()](https://nodejs.org/api/url.html#url_url_parse_urlstring_parsequerystring_slashesdenotehost) in security sensitive checks is dangerous as an arbitrary hostname can be spoofed via `javascript:` URIs.
原文中的代码
$ node -e 'console.log(require("url").parse("javAscript:alert(1);a=\[email protected]\x27"))'
Url {
  protocol: 'javascript:',
  slashes: null,
  auth: 'alert(1);a=\'',
  host: 'white-listed.com',
  port: null,
  hostname: 'white-listed.com',
  hash: null,
  search: null,
  query: null, …

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

时间线

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

同类报告

[Grab Android/iOS] Insecure deeplink leads to sensitive information disclosureGrab · 2019-03-15XSS vulnerable parameter in a location hashSlack · 2019-10-16[accounts.reddit.com] Redirect parameter allows for XSSReddit · 2023-05-18 · $5,000yelp.com XSS ATO (via login keylogger, link Google account)Yelp · 2023-08-15XSS At "pages.et.uber.com"Uber · 2016-08-19XSS at jamfpro.shopifycloud.comShopify · 2023-02-02 · $9,400