Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
Oracle-OAM-Padding-Oracle-CVE-2018-2879-Exploit — Padding oracle 漏洞利用工具,针对 Oracle Access Manager(CVE-2018-2879),可在渗透测试期间解密加密 Cookie,并对任意明文进行加密以实现身份验证绕过。 | Kitploit
工具/GitHubGitHub/mostafasoliman/oracle-oam-padding-oracle-cve-2018-2879-exploit
Payload生成漏洞分析漏洞利用Web应用程序漏洞利用Web安全密码学渗透测试身份验证

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
GitHub
mostafasoliman/oracle-oam-padding-oracle-cve-2018-2879-exploit

Oracle-OAM-Padding-Oracle-CVE-2018-2879-Exploit

Padding oracle 漏洞利用工具,针对 Oracle Access Manager(CVE-2018-2879),可在渗透测试期间解密加密 Cookie,并对任意明文进行加密以实现身份验证绕过。

查看仓库
117145年前尚未审核

Oracle-OAM-Padding-Oracle-CVE-2018-2879-Exploit

简介

此漏洞利用工具是在针对 Oracle OAM 11.1.2.3.0 的渗透测试活动中开发的。它基于 sec-consult 的技术描述编写:

root@kitploit:~
https://www.sec-consult.com/en/blog/2018/05/oracle-access-managers-identity-crisis/

依赖要求

该漏洞利用工具依赖于 python-paddingoracle,可从此处下载:

root@kitploit:~
https://github.com/mwielgoszewski/python-paddingoracle

漏洞利用原理

root@kitploit:~
# python oracle-oam-exploit.py -h

#######    #    #     #    #######
#     #   # #   ##   ##    #       #    # #####  #       ####  # #####
#     #  #   #  # # # #    #        #  #  #    # #      #    # #   #
#     # #     # #  #  #    #####     ##   #    # #      #    # #   #
#     # ####### #     #    #         ##   #####  #      #    # #   #
#     # #     # #     #    #        #  #  #      #      #    # #   #
####### #     # #     #    ####### #    # #      ######  ####  #   #
Oracle Padding Oracle
                                coded by: Mostafa Soliman

usage: oracle-oam-exploit.py [-h] [-e ENCRYPT] [-d DECRYPT] [-v] URL

positional arguments:
  URL                   Target resource URL

optional arguments:
  -h, --help            show this help message and exit
  -e ENCRYPT, --encrypt ENCRYPT
                        Encrypt plain text data
  -d DECRYPT, --decrypt DECRYPT
                        Decrypt base64 encode cipher text
  -v, --verb            Show decrypt block info

该漏洞利用工具接收需要 Oracle OAM 认证的资源 URL,并执行以下步骤:

  1. 找出会导致新增 padding 块的正确长度
  2. 暴力破解将来加密和解密时使用的正确前缀(magic block)

渗透测试人员可以使用 -d 参数指定任何希望解密的加密值(encquery、encreplay、cookie)。

渗透测试人员可以使用 -e 参数指定任何希望加密的明文值。

构造伪造 cookie

通过逆向 Oracle OAM SDK,我们可以看到 cookie 由以下结构组成:

root@kitploit:~
Salt= ACL= AuthId= Ip= TCT= SessionId= userId= validate=BASE64Encode(MD5(Salt+AuthId+Ip+ACL+TCT+SessionId))

因此,要构造 cookie,请使用 -d 参数获取一个有效的明文 cookie,修改后,再使用 -e 参数重新加密。

解密 cookie 的示例

Alt text Alt text

下载工具