首页> 外国专利> Static detection of context-sensitive cross-site scripting vulnerabilities

Static detection of context-sensitive cross-site scripting vulnerabilities

机译:静态检测上下文相关的跨站点脚本漏洞

摘要

A method for statically analyzing a web application program may include obtaining a control flow graph for the web application program. Each control flow graph node may correspond to a statement in the web application program. The method may further include obtaining a sanitizer sequence including one or more sanitizers followed by an output statement, obtaining a placeholder corresponding to the sanitizer sequence, and generating control flow paths including an output node that corresponds to the output statement. The method may further include generating documents for each control flow path. Each document may include a sanitized value corresponding to the output statement. The method may further include inserting the placeholder into each document at a location of the sanitized value, and reporting a potential cross-site scripting flaw when the sanitizer sequence is insufficient for the output context sequence of the sanitized value.
机译:用于静态分析Web应用程序的方法可以包括获得Web应用程序的控制流程图。每个控制流程图节点可以对应于Web应用程序中的一条语句。该方法可以进一步包括:获得包括一个或多个消毒剂的消毒剂序​​列,其后是输出语句;获得与该消毒剂序列相对应的占位符;以及生成包括与该输出语句相对应的输出节点的控制流路径。该方法可以进一步包括为每个控制流路径生成文档。每个文档可以包括对应于输出语句的净化值。该方法可以进一步包括将占位符插入到每个文档中经过清理的值的位置,并且当清理器序列不足以用于清理后的值的输出上下文序列时,报告潜在的跨站点脚本缺陷。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号