首页> 外文会议>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等广泛使用的语言而言,甚至很少有方法可以通过上下文敏感的编码防止注入攻击,并且这些方法与语言相关联。因此,本文的目的是从无内容语法中派生上下文敏感的编码器,以便为所有无内容语言提供恶意制作的输入数据的正确解调。呈现的解决方案将编码器定义集成到无背景语法中,并为(UN)解析期间使用的上下文敏感的编码器和解码器提供一个生成器。这种解调过程导致输入数据既不影响文档结构也不会改变其预期的语义的文档。通过在语言定义期间定义编码,使用该语言的开发人员提供了一个干净的接口,用于以这种语言编写的写作和阅读文档,而无需关心安全相关的编码。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号