百度空间 | 百度首页 
 
查看文章
 
关于Http Parameter Pollution
2009-05-20 09:52
据harry的小道消息说,他几个月前就看到这篇paper了。#_#

黑哥前几天拿到了,给我们看了下,确实挺有意思,也可以算作是一种新的攻击类型。

因为今天wisec(作者)的演讲已经出来了,所以就可以在blog上写写了。

以下摘自作者blog:http://www.wisec.it/sectou.php?id=4a129d3c810ec

On May 14th @ 2009OWASP Appsec Poland, me & Luca Carettoni presented a new attack category called Http Parameter Pollution (HPP).

HPP attacks can be defined as the feasibility to override or add HTTP GET/POST parameters by injecting query string delimiters.
It affects a building block of all web technologies thus server-side and client-side attacks exist.
Exploiting HPP vulnerabilities, it may be possible to:

  • Override existing hardcoded HTTP parameters.
  • Modify the application behaviors.
  • Access and, potentially exploit, uncontrollable variables.
  • Bypass input validation checkpoints and WAFs rules.

Just to whet your appetite, I can anticipate that by researching for real world HPP vulnerabilities, we found issues on some Google Search Appliance front-end scripts, Ask.com, Yahoo! Mail Classic and several other products.

You can download the slides of the talk here (pdf) or browse it on Slideshare .

简单来说,就是提交两个相同的参数,不同的服务器会有不同的处理。

比如提交 /?a=fvck&a=svck

那么在有的webserver和语言中,会只取第一个。

在别的环境的中,比如.net环境中,会变成 a=fvck,svck

这在绕过一些逻辑判断的时候,会非常有用。

作者把成果可以整理为一张表:

我个人倒是觉得,比较好的做法是返回一个数组

比如GAE(Google App Engine)里有个方法就是 get(),会返回相同参数名的第一个参数值,还有方法是get_all(),会返回所有的相同参数的值,为一个list

虽然paper中有提到利用此绕过IE 8 的XSS filter,不过后来证实是YY的。

类别:象牙塔 | 添加到搜藏 | 浏览() | 评论 (1)
 
最近读者:
 
网友评论:
1
2009-05-20 11:25 | 回复
比如提交 /?a=fvck&a=svck

在别的环境的中,比如.net环境中,会变成 a=fvck,svck
不知道在.net中用url处理过的&(%26)连接符能绕过吗?

对了,这是不是又是关于xss方面的呀?
如果绕过了是不是就能针对某个脚本语言。比如说是.net吧如果绕过了&就能利用。
菜鸟一只,一直关注网络安全,没什么技术的人。
 
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
验证码: 请点击后输入四位验证码,字母不区分大小写
      

     

©2009 Baidu