
Thực nghiệm CVE-2021-44790

Exploitation objective: Exploit the Buffer Overflow vulnerability to carry out DoS on the target.
B1: On the victim machine:
**Apache24/bin** để tiến hành chạy **httpd.exe.**
B2: On the attacker machine:


Initial connection reset error:
The first part of the log shows ConnectionResetError104
an issue occurred with the specific error number
, which means "Connection reset by peer". This usually happens when the remote server ("peer") receives your connection request but then abruptly closes the connection.
The Urllib3 library and the request:
The script appears to be using requestsurllib3
library, thus relying on it
to create the HTTP connection.
The urllib3
library is trying to open a connection and make a request but fails due to the connection being reset.
Exception handling in the library:
Both urllib3requestsurllib3
are
catching and re-raising exceptions. The lib
rary is trying to increase the number of retries for the request, indicating that it may be configured to retry on failure, but eventually gives up after exhausting the retries.
Final connection error in the request:
The final exception is raised by requestsConnectionError
library raises, that is the file
. This is a generic exception raised when a connection to the server cannot be made, which can happen if the server resets the connection.


B3: On the victim machine:
[Wed Nov 29 15:11:58.320403 2023] [mpm_winnt:notice] [pid 6224:tid 732] AH00428: Parent: child process 7220 exited with status 3221225477 -- Restarting.3221225477. This may be an error caused by invalid memory access or a similar error. Apache then attempts to restart the process.
httpd.exe, which is the executable file of the Apache HTTP server. The failing module name is MSVCR110.dll11.0.51106.1 The exception code is 0xc0000005, which usually indicates an access violation error. This means the program tried to read or write to a memory location it should not have, which is a common cause of application crashes.
Configure httpd.conf :
Edit the path

Launch the Lua module

Add Handler for the Lua module

Content of test.lua and path:
