首页> 外国专利> Protection against third party JavaScript vulnerabilities

Protection against third party JavaScript vulnerabilities

机译:防范第三方JavaScript漏洞

摘要

Embodiments protect against security vulnerabilities arising from 3rd party JavaScript code. A browser receives from a server, a document including a first JavaScript. The browser in turn references a list stored in a database to recognize the first JavaScript as originating from other than the server. This recognition process may involve obtaining a stacktrace. The browser then references a second JavaScript in order to instrument a document object model (DOM) feature (e.g., global API, DOM element-attached API, DOM node property) to sanitize the first JavaScript. For instrumenting a global API, this may comprise overwriting a global reference in the first JavaScript with a replacement reference to a sanitization function. For instrumenting the DOM element-attached API or the DOM node property, the instrumenting may comprise altering a prototype of the DOM node element. The browser causes the DOM feature to sanitize the first JavaScript, and passes a sanitized JavaScript for execution.
机译:实施例防止由3 rd 方JavaScript代码引起的安全漏洞。浏览器从服务器接收包括第一JavaScript的文档。浏览器依次引用存储在数据库中的列表,以将第一个JavaScript识别为源自服务器之外的其他JavaScript。此识别过程可能涉及获取堆栈跟踪。然后,浏览器引用第二个JavaScript,以便检测文档对象模型(DOM)功能(例如,全局API,附加DOM元素的API,DOM节点属性)以清理第一个JavaScript。为了检测全局API,这可以包括用对卫生处理功能的替换引用覆盖第一JavaScript中的全局引用。为了检测附有DOM元素的API或DOM节点属性,检测可包括改变DOM节点元素的原型。浏览器使DOM功能清理第一个JavaScript,并传递经过清理的JavaScript以执行。

著录项

  • 公开/公告号US10789360B2

    专利类型

  • 公开/公告日2020-09-29

    原文格式PDF

  • 申请/专利权人 SAP SE;

    申请/专利号US201815880398

  • 发明设计人 MARTIN JOHNS;

    申请日2018-01-25

  • 分类号G06F21/56;H04L29/06;G06F21/54;G06F16/93;G06F21/51;G06F16/10;

  • 国家 US

  • 入库时间 2022-08-21 11:29:26

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号