[UNIX] Admin Access Vulnerability in P-News (Records Injection)

From: SecuriTeam (support_at_securiteam.com)
Date: 05/26/03

  • Next message: SecuriTeam: "[NT] Buffer Overflow in AnalogX Proxy (Long URL)"
    To: list@securiteam.com
    Date: 26 May 2003 18:04:48 +0200
    
    

    The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
    - - promotion

    In the US?

    Contact Beyond Security at our new California office
    housewarming rates on automated network vulnerability
    scanning. We also welcome ISPs and other resellers!

    Please contact us at: 323-882-8286 or ussales@beyondsecurity.com
    - - - - - - - - -

      Admin Access Vulnerability in P-News (Records Injection)
    ------------------------------------------------------------------------

    SUMMARY

    A vulnerability in <http://www.ppopn.net/> P-News allows users with
    'Member' privileges to gain elevated privileges by inserting an additional
    record into the user database.

    DETAILS

    Vulnerable systems:
     * P-News version 1.6

    It is possible to gain administrative access if you possess a 'Member'
    account due to a flaw in the 'p-news.php' file. The vulnerability allows
    you to inject an entire arbitrary account, including all the fields, into
    the 'Name' field, which will push all the restricting details to the far
    end of the data string, not allowing them to be included in the login
    process.

    Below is an example of a normal database:
    Admin|-|21232f297a57a5a743894a0e4a801fc3|-|0|-|p-news-admin@ppopn.net|-|
    Peter|-|179ad45c6ce2cb97cf1029e212046e81|-|2|-|peter@aol.com|-|

    Notice the '0' denotes an 'admin' account, and the '2' denotes a 'member'
    account.

    Exploit:
    Putting the following string:
    Peter|-|21232f297a57a5a743894a0e4a801fc3|-|0|-|none@nowhere.com|-|

    Into the 'Name' field in the edit account information section will give
    the malicious user administrative privileges. The database then looks
    like:

    Admin|-|21232f297a57a5a743894a0e4a801fc3|-|0|-|p-news-admin@ppopn.net|-|
    Peter|-|21232f297a57a5a743894a0e4a801fc3|-|0|-|none@nowhere.com|-||-|179ad45c6ce2cb97cf1029e212046e81|-|2|-|peter@aol.com|-|

    ADDITIONAL INFORMATION

    The information has been provided by <mailto:peter4020@hotmail.com> Peter
    Winter-Smith.

    ========================================

    This bulletin is sent to members of the SecuriTeam mailing list.
    To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com
    In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com

    ====================
    ====================

    DISCLAIMER:
    The information in this bulletin is provided "AS IS" without warranty of any kind.
    In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.


  • Next message: SecuriTeam: "[NT] Buffer Overflow in AnalogX Proxy (Long URL)"

    Relevant Pages

    • [NT] SQL Server 2000 Buffer Overflows and SQL Injection Vulnerabilities
      ... allow maintenance and other operations to be performed on a SQL Server, ... fixed database role can run this command. ... Buffer Overrun Vulnerability in Database Consistency Checkers: ... privileges, and only should be granted to trusted users. ...
      (Securiteam)
    • Firebird/Interbase heritage and problems
      ... Worst database I ever used. ... "This vulnerability was not introduced by unauthorized modifications to ... The back door account password can not be changed ... trojan horses and programs which can be used to gain root (system) ...
      (borland.public.delphi.non-technical)
    • Re: creating a new database with mysqldb
      ... account and A database for that account. ... that user account would have been set so that only that database is ... The account would have full privileges within that database, ...
      (comp.lang.python)
    • Re: complicated parsing from the file
      ... This vulnerability could not be checked by the program, ... Using a privileged account to perform routine functions makes the ... privileges. ... Administrators will be properly trained. ...
      (perl.beginners)
    • Create database link from inside a stored procedure
      ... Hi there - if an Oracle account that has privileges to create a database ...
      (comp.databases.oracle.server)