Re: phpBB 2.0.8a and lower - IP spoofing vulnerability

From: BlueRaven (blue_at_ravenconsulting.it)
Date: 04/28/04

  • Next message: Slackware Security Team: "[slackware-security] kernel security updates (SSA:2004-119-01)"
    Date: Wed, 28 Apr 2004 11:03:26 +0200
    To: bugtraq@securityfocus.com
    
    

    On Wed, Apr 21, 2004 at 09:10:55AM +0800, Xin LI wrote:

    Hi Xin, I think there's an error in your patch:

    > - if ( !$db->sql_query($sql) )
    > + if ( $user_id != ANONYMOUS && !$db->sql_query($sql) )

    This does NOT prevent execution of the query, only effects output of the
    message:

    > {
    > message_die(CRITICAL_ERROR, 'Error creating new session', '', __LINE__, __FILE__, $sql);
    > }

    I think it should read as follows:

                 if ( $user_id != ANONYMOUS ) {
                    if ( !$db->sql_query($sql) {
                       message_die(CRITICAL_ERROR, 'Error creating new session', '', __LINE__, __FILE__, $sql);
                    }
                 }

    I'm not great PHP programmer, though, so please correct me if I'm wrong.
    Cheers! :-)

    -- 
    #include <best/regards.h>
    BlueRaven
    Did you know that if you play a Windows 2000 CD backwards, you will hear
    the voice of Satan? That's nothing!
    If you play it forward, it'll install Windows 2000.
    

  • Next message: Slackware Security Team: "[slackware-security] kernel security updates (SSA:2004-119-01)"

    Relevant Pages

    • Re: ASP.NET Interface to SQL Server
      ... To that effect, however, the only real way for her to do this is to play ... I can create a demo database for her on the server, ... type a query into, and a gridview object will be more than enough for the ... just install Sql Server Express with its Management Studio on her machine ...
      (microsoft.public.inetserver.asp.db)
    • Re: whats wrong with this sql statment? (uses "SELECT-IN")
      ... I'm gonna have to play with this a bit... ... Then save this query and join it to your table on the Last_Name, First_Name, ... When I try to execute, i get an error message similiar to: ... REALLY a duplicate, and I don't want to see either record. ...
      (microsoft.public.access.queries)
    • Re: Monday-Sunday Date Range
      ... You've overthought the play, as ... As far as scheduling the query to run every sunday at 1:30am, ... Agent can help. ...
      (microsoft.public.access.queries)
    • Re: access tables
      ... You might play ... around with UNION queries to see if you can get the data you want in one ... query. ... Rick B ...
      (microsoft.public.access.queries)
    • Re: C#, .Net and Mono
      ... for the answers to three quesstions: ... Would you play a roguelike written in C#? ... I would first have to install windows, ... DarkGod comes from | Do not meddle in the affairs of wizards ...
      (rec.games.roguelike.development)