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

Added module plus encoder for CVE-2012-2329 #487

Merged
merged 3 commits into from Jun 16, 2012
Merged

Added module plus encoder for CVE-2012-2329 #487

merged 3 commits into from Jun 16, 2012

Conversation

jvazquez-r7
Copy link
Contributor

Added module for CVE-2012-2329 PHP CGI apache_request_headers Buffer Overflow.

Tested with PHP-5.4.2 (thread safe version) from windows.php.net and Apache 2.2.22 from Apache Lounge (http://www.apachelounge.com/).

Still no DEP bypass available. Searching for a reliable stackpivot.

This module has needed his own encoder because of the specific badchar "0x5f" (underscore) which makes it incompatible with the available "avoid tolower" encoders in msf.

@wchen-r7
Copy link
Contributor

I already reviewed and tested the exploit. However, I'm not entirely confident with the encoder, so I'd like to ask HD or James to review that.

@jvazquez-r7
Copy link
Contributor Author

first feedback from egypt: nops can be prepended in the encoder to avoid invalid lengths. In this way other people can use it without worrying of length. On the other hand, metadata could be used in the exploit module avoiding manually encoding in exploi()!

I'll do the change tomorrow morning (my timezone :)). ==> Done!

Waiting for HD or someone else feedabck. I really would like someone more checking it!


print_status("Sending request to #{datastore['RHOST']}:#{datastore['RPORT']}")

uri = target_uri.path
Copy link
Contributor

Choose a reason for hiding this comment

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

why not just uri = target_uri.to_s ?

@jvazquez-r7
Copy link
Contributor Author

thanks jlee-r7 for review! changes added in a8a4594

@wchen-r7 wchen-r7 merged commit a8a4594 into rapid7:master Jun 16, 2012
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

3 participants