Skip to content

CVE-2017-1000486: Add dockerfile for script + update related documentation #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions Primefaces - CVE-2017-1000486/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM rockylinux:8

RUN mkdir /app
WORKDIR /app

COPY primefaces_CVE-2017-1000486_fd.py .
COPY requirements.txt .

# python2 must be installed before python2-devel otherwise,
# when 'dnf remove' python2-devel, python2 is also removed
RUN dnf install -y python2 python2-pip \
&& dnf install -y gcc python2-devel redhat-rpm-config \
&& python2 -m pip install -r requirements.txt && rm requirements.txt \
&& dnf autoremove -y gcc python2-devel redhat-rpm-config && dnf clean all -y

USER root

ENTRYPOINT ["python2", "/app/primefaces_CVE-2017-1000486_fd.py"]

CMD ["-h"]

18 changes: 17 additions & 1 deletion Primefaces - CVE-2017-1000486/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,22 @@ Execute *whoami* command on target WebSphere application server, extracting 10 c

python.exe primefaces_CVE-2017-1000486_fd.py -pt "/javax.faces.resource/main/css/showcase.css.xhtml" -c whoami -w 1 -ln 10 http://localhost:8080/showcase-5.2

**Docker**

Build image

git clone https://github.com/federicodotta/Exploit.git
cd 'Exploit/Primefaces - CVE-2017-1000486'
docker build -t primefaces_CVE-2017-1000486 .

Execute **primefaces_CVE-2017-1000486_fd.py** with docker

docker run --rm -it primefaces_CVE-2017-1000486 [params...]

**Requirements**

Due to `paddingoracle` module, **primefaces_CVE-2017-1000486_fd.py** is limited to Python 2.

**Disclaimer:**

This software has been created purely for the authorized penetration testing and red teaming activies, and is not intended to be used to attack systems except where explicitly authorized. Project maintainers are not responsible or liable for misuse of the software. Use responsibly.
This software has been created purely for the authorized penetration testing and red teaming activies, and is not intended to be used to attack systems except where explicitly authorized. Project maintainers are not responsible or liable for misuse of the software. Use responsibly.
6 changes: 6 additions & 0 deletions Primefaces - CVE-2017-1000486/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# paddingoracle only support python2
paddingoracle
requests
# Dependency fo crypto library. Typical call: Crypto.*
# Only support python <= "3.3"
pycrypto