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

Blaze Apps 1.4.0.051909 Cross Site Scripting / SQL Injection

Blaze Apps 1.4.0.051909 Cross Site Scripting / SQL Injection
Posted May 25, 2010
Authored by AmnPardaz Security Research Team | Site bugreport.ir

Blaze Apps versions 1.4.0.051909 and below suffer from cross site scripting and remote SQL injection vulnerabilities.

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

Blaze Apps 1.4.0.051909 Cross Site Scripting / SQL Injection

Change Mirror Download


##########################www.BugReport.ir##############################
##########
#
# AmnPardaz Security Research Team
#
# Title: Blaze Apps Multiple Vulnerabilities
# Vendor: http://blazeapps.codeplex.com
# Vulnerable Version: 1.4.0.051909 (and prior versions)
# Exploitation: Remote with browser
# Fix: N/A
########################################################################
###########

####################
- Description:
####################

Blaze Apps is a ASP .NET 2 Content Management System. It uses VB and
C# as backend languages
and uses Microsoft SQL Server as its DBMS.

####################
- Vulnerability:
####################

+--> MS SQL Server 2005 SQL Injection
+--/-- 1>
There is an SQL Injection vulenarability in the site search module.
The code can be find in "<SRC_DIR>/BlazeApps/Usercontrols/Search.ascx" file.
Submitting search criteria will cause subroutine "uxSubmitButton_Click"
in the file "<SRC_DIR>/BlazeApps/Usercontrols/Search.ascx.vb" to be
executed.
Then it will use "uxSearchTextBox" input element value (POST Variable) and
the "tagname" input value (POST Variable) without escaping, in a query.
The exact place of injection bug is at lines 67 and 69.

NOTE: In query creating phase, all security notes are maintained. In the
file
"<SRC_DIR>/BlazeApps.Library/Search/PageSearch.cs" at lines 20 and 30 the
query parameters are all escaped in a prepared sql statement.
But (only) in the search module, the where clause is created manually before
reaching the DB utility code!!!
+--/-- 2>
In the "<SRC_DIR>/BlazeApps/App_Code/BlazeKBSVC.vb" file at lines 19 and 37
the "SearchString" function parameter is not escaped before using in
the query.
Again the bug is (only) from the high level logic code and the
underlying db utility
escape everything correctly.

+--> Stored XSS Vulnerablity
The post page of the site's forum save posts without any check on the input.
In file "<SRC_DIR>/BlazeApps/Usercontrols/Forum/addpost.ascx.vb" line 121
the "uxAddPostTextbox" input value is not sanitiezd.

####################
- Exploits/PoCs:
####################

+--> Exploiting SQL Injection Vulnerablites:
You can use "aa' OR **** OR 'a'='1" injection vector for exploiting
above bugs (replacing
the **** with a desired query). For exp. "aa' OR 1=1 OR '1'='1" will
show everything
in the search response page.
This vulenarability can be used for extracting admin password by
Blind SQL Injection.
Using "aa' OR @Condition OR 'a'='1" as the injection vector, the
result page for the search
will be empty if @Condition be false and will show all links if
@Condition be true.
So we can replace @Condition with a query like
EXISTS (SELECT * FROM blazedb.dbo.aspnet_Membership WHERE
(LEN(Password) < 32) AND UserId=??)
and then brout force on the length and then on each character of the
password (Of course
we need first extract the user id from username by another query like
above and then fill ?? with
the user id of the admin which is the same process).

+--> Exploiting The Stored XSS Vulnerablity:
It can be exploited by posting a vector like "" to the forum.
(see "<SRC_DIR>/BlazeApps/Usercontrols/Forum/addpost.ascx.vb")

####################
- Solution:
####################

Edit the source code to ensure that inputs are properly sanitized for
SQL injection.
For the XSS you should whitelist the input messages.

####################
- Original Advisory:
####################

http://www.bugreport.ir/index_66.htm

####################
- Credit:
####################
AmnPardaz Security Research & Penetration Testing Group
Contact: admin[4t}bugreport{d0t]ir
www.BugReport.ir
www.AmnPardaz.com

--
ExploitDB - @11 uR h0l3s @r3 b3l0ng t0 uS! (tm)



Login or Register to add favorites

File Archive:

September 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close