本文主要介绍代码注入攻击的一种特殊类型:XPath盲注。
The focus of this article is a specific type of code injection attack: the Blind XPath injection.
这些预防方法中,多数也可以类似地应用于预防其他类型的代码注入攻击。
Not surprisingly most of these preventative methods are the same methods you can and should use to prevent other typical code injection attacks.
当用户能够把HTML代码注入到您的web页面中时,就是出现了xss漏洞。
An XSS vulnerability occurs when a user has the ability to inject HTML code into your Web pages.
我们已经知道攻击者是如何将代码注入应用程序的,接下来再看看一些常见攻击所带来的影响。
Now that you know how attackers get their code into applications, look at the implications of some common attacks.
要防止XPath注入和其他形式的代码注入,应该检查所有从Web服务器传到后端服务的数据。
To protect against both XPath injection and other forms of code injection, you should check all data passed from your Web server to your backend services.
通过使用IronPython脚本,开发者可以将代码注入到运行着的应用中以增加他们想要的任何特性。
With IronPython scripts, developers can inject code into running applications to add whatever features they see as missing.
当mashup中的某些部分是出于恶意目的编写的(或者被攻击了),它可以将恶意代码注入到应用程序中。
When some part of the mashup is written under malicious intent (or has been hacked), it can inject malicious code into the application.
SQL盲注攻击是一种为人熟知的代码注入攻击形式,但是也有很多其他形式,有些尚未得到很好的记载和了解。
Blind SQL injection attacks are a well know and recognized form of code injection attack, but there are many other forms, some not so well documented or understood.
AjaxChat还具有安全性,能够防止代码注入、SQL注入、跨站点脚本攻击、会话偷窃以及其他攻击。
Ajax Chat has security in mind to prevent code injections, SQL injections, cross-site scripting, session stealing, and other attacks.
例如,攻击者可能会通过堆栈溢出(stackcorruption)将代码注入进程,从而执行攻击者选定的代码。
For example, attackers could be trying to inject code into the process via stack corruption, resulting in the ability to execute code of the attacker's choice.
最恶劣的注入攻击形式也许是代码注入——将新代码置入正在运行的进程的内存空间,随后指示正在运行的进程执行这些代码。
Perhaps the most malicious form of injection attack is code injection—placing new code into the memory space of the running process and then directing the running process to execute it.
注入代码的目的通常是绕过或修改程序的最初目标功能。
The purpose of the injected code is typically to bypass or modify the originally intended functionality of the program.
这意味着我们无法将该实体管理器注入调用代码。
This means we cannot inject the entity manager into calling code.
这种方式通过修改已经编译的EXE或DLL注入必要的代码段。
This involves modifying the compiled EXE or DLL to inject the necessary code fragments.
该设置决定了是否在JPAManagerBean代码中使用资源注入。
This setting determines whether to use resource injection in the JPA Manager Bean code.
在这个方法中,我们可以在调用原方法之前或之后注入自己的代码。
In this method, custom code can be injected before or after invoking the original methods.
接下来,将看到构造函数注入的示例,以及Geronimo的部署计划定义容器注入代码的方式。
Next, you see an example of constructor injection and how Geronimo's deployment plans define how the container injects code.
利用系统没有对其输入进行强制执行或检查的假设向计算机系统中引入(或“注入”)代码的技术。
A technique to introduce (or "inject") code into a computer program or system by taking advantage of the unenforced and unchecked assumptions the system makes about its inputs.
为了让替换生效,工具在正在运行的内核映像中添加新的函数对象代码,然后在每个现有函数的开头注入一个跳转,从而调用函数的新实现。
To effect the substitution, the tool amends a running kernel image with the new functions' object code and injects a jump at the head of each existing function to call its new counterpart.
第8章涉及面向方面的编程(AOP)在依赖注入中的应用,如何用AOP节省样板代码,如何减少错误的风险。
Chapter 8 deals with aspect oriented programming (AOP) as it applies to dependency injection, how it aims to save on boilerplate code, and reduce the risk of errors.
Spring的IOC实现使用依赖性注入有效地将控制从应用程序代码 “反转”到 Spring 容器。
Spring's IOC implementation uses dependency injection to effectively "invert control" from your application code to the Spring container.
当您将引用作为Bean的属性的值时,实际上就是在调用依赖项注入,并且无需编写某一类粘合代码来将组件绑定在一起。
When you put references as the value of a bean's property, you are really calling the dependency injection without having to write some sort of glue code to tie components together.
清单2中的初始化代码是一个类的一部分,它使用setter注入进行DI。
The initialization code in Listing 2 is part of a class that uses setter injection for DI.
幸运的是,RationalPerformance Tester有另一个称为定制代码的特性,该特性允许用户开发其自己的将数据注入到web页面请求中的程序。
Fortunately, Rational Performance Tester has another feature called Custom Code, which allows users to develop their own routines for injecting data into a Web page request.
第十一章在系统级别讨论了简洁代码,如依赖注入和面向方面编程技术。
Chapter 11 talks about clean code in the context of system-level techniques such as Dependency Injection and Aspect-Oriented Programming.
使用DI,可以通过配置容器或在代码中实现注入,让容器注入适合的客户类。
With DI, you can allow the container to inject the appropriate customer class either by configuring the container or implementing the injection in the code.
代码作为配置:类似于驱动依赖注入框架的XML文件。
Code as Configuration: These are things such as an XML file that drives a dependency injection framework.
毫无疑问,这些setter是框架所需的样板代码,如果不使用构造器注入也能避免这一点岂不美哉?
Again, these setters are framework induced boilerplate code. Wouldn’t it be nice if they could be avoided without the need to use Constructor injection everywhere?
同样的技术使得微软可发现注入其产品的恶意代码。
The same techniques allow Microsoft to find malicious code that may have been injected in its products.
更关键的是,您可以轻松地注入模拟对象来替代真正的Speaker实现,并且无需影响其他的代码基就可以进行测试。
More to the point, you could easily inject a mock object instead of a real Speaker implementation, and you could do a test without affecting the rest of your code base.
应用推荐