[UNIX] Community Link Pro Command Execution (login.cgi)

From: SecuriTeam (support_at_securiteam.com)
Date: 11/10/05

  • Next message: SecuriTeam: "[UNIX] Apache Tomcat DoS"
    To: list@securiteam.com
    Date: 10 Nov 2005 14:50:27 +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

    The SecuriTeam alerts list - Free, Accurate, Independent.

    Get your security news from a reliable source.

    - - - - - - - - -

      Community Link Pro Command Execution (login.cgi)


    Login.cgi is "a login script written in Perl by Community Link Pro Web
    Editor that allows to a remote user to login in his own personal page".

    Community Link Pro Web Editor has been found to be vulnerable to remote
    code execution due lack of sanitation of 'file' parameter.


    Vulnerable Code:
    foreach (<FILE2>) {

    The above code doesn't properly open the file for reading, this allows a
    remote attacker to cause the program to open commands which it will
    execute. The vulnerability can be exploited by simply passing commands as
    the $file parameter, for example:

    Proof of concept:
    command=simple&do=edit&password=&file=|uname -a; id|



    The information has been provided by <mailto:mozako@mybox.it> mozako.
    The original article can be found at:


    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


    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: "[UNIX] Apache Tomcat DoS"