首页> 外文会议>IEEE Security and Privacy Workshops >Towards More Security in Data Exchange: Defining Unparsers with Context-Sensitive Encoders for Context-Free Grammars
【24h】

Towards More Security in Data Exchange: Defining Unparsers with Context-Sensitive Encoders for Context-Free Grammars

机译:在数据交换中实现更高的安全性:使用上下文敏感编码器定义无解析器,以实现上下文无关文法

获取原文

摘要

To exchange complex data structures in distributed systems, documents written in context-free languages are exchanged among communicating parties. Unparsing these documents correctly is as important as parsing them correctly because errors during unparsing result in injection vulnerabilities such as cross-site scripting (XSS) and SQL injection. Injection attacks are not limited to the web world. Every program that uses input to produce documents in a context-free language may be vulnerable to this class of attack. Even for widely used languages such as HTML and JavaScript, there are few approaches that prevent injection attacks by context-sensitive encoding, and those approaches are tied to the language. Therefore, the aim of this paper is to derive context-sensitive encoder from context-free grammars to provide correct unparsing of maliciously crafted input data for all context-free languages. The presented solution integrates encoder definition into context-free grammars and provides a generator for context-sensitive encoders and decoders that are used during (un)parsing. This unparsing process results in documents where the input data does neither influence the structure of the document nor change their intended semantics. By defining encoding during language definition, developers who use the language are provided with a clean interface for writing and reading documents written in that language, without the need to care about security-relevant encoding.
机译:为了在分布式系统中交换复杂的数据结构,在通信方之间交换以上下文无关的语言编写的文档。正确解析这些文档与正确解析它们同样重要,因为在解析过程中的错误会导致注入漏洞,例如跨站点脚本(XSS)和SQL注入。注入攻击不仅限于网络世界。每个使用输入以无上下文语言生成文档的程序都可能容易受到此类攻击。即使对于诸如HTML和JavaScript之类的广泛使用的语言,也很少有方法可以通过上下文相关的编码来防止注入攻击,并且这些方法都与该语言紧密相关。因此,本文的目的是从无上下文语法中派生上下文敏感编码器,以为所有无上下文语言提供对恶意制作的输入数据的正确解析。提出的解决方案将编码器定义集成到上下文无关的语法中,并为在(非)解析过程中使用的上下文敏感的编码器和解码器提供了生成器。这种无法解析的过程会导致文档中的输入数据既不会影响文档的结构,也不会更改其预期的语义。通过在语言定义期间定义编码,可以为使用该语言的开发人员提供一个干净的接口,用于编写和读取以该语言编写的文档,而无需考虑与安全性相关的编码。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号