Re: SQL injection in Persianblog

From: nummish (nummish_at_gmail.com)
Date: 08/17/05

  • Next message: cedric_at_securityfocus.com: "SQL injection in mediabox404 v1.2"
    Date: Tue, 16 Aug 2005 18:31:33 -0400
    To: alireza hassani <trueend5@yahoo.com>
    
    

    I fail to see how this is a SQL injection of any kind, unless of
    course you only intend to inject numbers into the database records..

    The CInt calls force typecasting, preventing non-integers from being
    processed further.

    The next error you post indicates no records are being returned, I
    assume the same would happen with a negative number.

    Are any of these actually injectable against? Or is it really just an
    application that doesn't fail gracefully?

    On 8/16/05, alireza hassani <trueend5@yahoo.com> wrote:
    > This is the KAPDA.ir 's advisory
    > (Powered by PersianHacker.NET)
    >
    >
    > Discussion:
    >
    > PersianBlog.com is the Weblog service for Persian
    > users.
    > Over 75 per cent of Persian-language content on the
    > Internet belonged to Persianblog with 63,000 number of
    > blogs.
    > Website: http://www.persianblog.com
    > ----------------------------------------------------------------
    > vulnerability:
    > Several scripts do not properly validate user-supplied
    > input. A remote user can create specially crafted
    > parameter values that will execute SQL commands on the
    > underlying database.
    > ----------------------------------------------------------------
    > Description:
    >
    > http://www.xxxxxxxblog.com/userslist.asp?page=2'&catid=16
    > Error :
    >
    > Microsoft VBScript runtime error '800a000d'
    > Type mismatch: 'Cint'
    > /userslist.asp, line 213
    > http://www.xxxxxxxblog.com/userslist.asp?page=255555&catid=5
    > Error :
    >
    > Microsoft VBScript runtime error '800a0006'
    > Overflow: 'Cint'
    > /userslist.asp, line 213
    >
    > CInt is a Visual Basic function, There is no programs
    > or modules or anything failing. Just that single ASP
    > script, that someone specifically passes wrong
    > arguments to, fails.
    > and the next one is not a buffer overflow or anything
    > of that nature,When the multiple numbers go through
    > the CInt conversion the conversion fails because the
    > number sent is bigger than Long can store. Once again,
    > there is no exploit or vulnerability here.
    > but playing with catid parameter gives us something
    > new.
    > http://www.xxxxxxxblog.com/userslist.asp?page=2&catid=16000
    > Error :
    >
    > ADODB.Field error '800a0bcd'
    > Either BOF or EOF is True, or the current record has
    > been deleted. Requested operation requires a current
    > record.
    > /userslist.asp, line 221
    > http://www.xxxxxxxblog.com/userslist.asp?page=2&catid=16000&catid=
    > Error :
    >
    > Microsoft OLE DB Provider for SQL Server error
    > '80040e14'
    > Line 1: Incorrect syntax near ','.
    > /userslist.asp, line 220
    >
    > We are not going to discuss about this issue in
    > detaills anymore, because
    > There is not any vendor-supplied solution at the time
    > of this entry.
    > -----------------------------------------------------------------
    > Impact:
    > A remote user can execute SQL commands on the
    > underlying database.
    > solution:
    > Currently we are not aware of any vendor-supplied
    > patches for this issue
    > -----------------------------------------------------------------
    > This vulnerabilty has been found and released by
    > trueend5
    > Kapda - Security Science Researchers Insitute of Iran
    > http://www.KAPDA.ir
    > (PersianHacker.NET)
    >
    >
    > __________________________________________________
    > Do You Yahoo!?
    > Tired of spam? Yahoo! Mail has the best spam protection around
    > http://mail.yahoo.com
    >

    -- 
    Bigger 1:23
    This address if for mailing list traffic only. 
    Please direct non-list correspondence to 0x90.org
    

  • Next message: cedric_at_securityfocus.com: "SQL injection in mediabox404 v1.2"

    Relevant Pages

    • Re: Is there a way around a Type Mismatch Error?
      ... CInt on the text could fail for several reasons. ... CStr is a bit more tolerant, although it will fail if the field contains null. ... >>to SQL view to modify the ON statement. ...
      (microsoft.public.access.queries)
    • SQL 2008 Mirroring - failover looses owner
      ... I have successfully configured mirroring in SQL 2008. ... SMSS I edit the properties of the database, ... fail back, same thing, the owner is missing. ...
      (comp.databases.ms-sqlserver)
    • SELECT FOR UPDATE problem
      ... (Fail all if any step fails) ... the "commit" inside the method, ... database, and THEN a commit my sub_project table ... my $sql = qq( ...
      (perl.dbi.users)
    • Fixed
      ... I also found this article that gives the proper way to move system dbs in sql 2008: ... The model exists where the master states it exists. ... This is the error log prior to detaching the model database. ...
      (microsoft.public.sqlserver.server)
    • Re: CREATE AGGREGATE failed because type Concatenate does not conform to UDAGG specification due to
      ... Go to the Database tab and click on the browse button next to the connection string. ... In the New Database Reference dialog, enter the details for the database where you want to deploy the assembly and create the user defined aggregate. ... I'm trying to do some CLR integration with sql server 2005. ...
      (microsoft.public.sqlserver.programming)