ANTICHAT.XYZ    VIDEO.ANTICHAT.XYZ    НОВЫЕ СООБЩЕНИЯ    ФОРУМ  
Баннер 1   Баннер 2
Antichat снова доступен.
Форум Antichat (Античат) возвращается и снова открыт для пользователей. Здесь обсуждаются безопасность, программирование, технологии и многое другое. Сообщество снова собирается вместе.
Новый адрес: forum.antichat.xyz
Вернуться   Форум АНТИЧАТ > Программирование > PHP, PERL, MySQL, JavaScript
   
 
 
Опции темы Поиск в этой теме Опции просмотра

Уязвимость в Php
  #1  
Старый 27.09.2006, 20:10
Аватар для ОТЕЦ
ОТЕЦ
Banned
Регистрация: 21.09.2006
Сообщений: 37
Провел на форуме:
51744

Репутация: -9
Отправить сообщение для ОТЕЦ с помощью ICQ
Exclamation Уязвимость в Php

Уязвимость связанная с некорректной обработкой функции mysql_error() при обработке результатов SQL-запросов, пишет uinc.ru. Используя эту уязвимость, вы можите передать подобной функции некорректные параметры и, в случае, если результаты передаются пользователю, можно вызвать CSS (Cross Site Scripting). Уязвимости подвержены версии PHP4 < 4.4.4 PHP5 < 5.1.6.
описание уязвимости:
mysql_error() can lead to Cross Site Scripting attacks
================================================== ======
Affected.scr..: PHP4 <= 4.4.4 PHP5 <= 5.1.6
Advisory.ID...: 11060920
Risk.level....: Low
Vendor.Status.: Unpatched
Src.download..: http://www.php.net/
Adv.link......: acid-root.new.fr/advisories/11060920.txt
================================================== ======


==[ OVERVIEW
============
PHP: Hypertext Preprocessor is an open source server side
programming language extensively used for web scripts and to
process data passed via the Common Gateway Interface from
HTML forms etc. PHP can be written as scripts that reside on
the server and may produce HTML output that downloads to the
web browser. Alternatively, PHP can be embedded within HTML
pages that are then saved with a .php file extension. The PHP
sections of the page are then parsed by the PHP engine on the
server and the PHP code stripped out before the page is
downloaded to the web browser. The name is a bit of a
programming joke (if there is sucha thing) since it's a
recursive acronym i.e. the P in PHP stands for PHP.


==[ DETAILS
===========
The goal of the mysql_error() function is to return the error
text from the last MySQL function. This function can lead to
Cross Site Scripting attacks. To conduct this attack, some
parameters are required. If an mysql function use a bad parameter
provided by the attacker and if the mysql_error() result is
returned to the user, this can be exploited to conduct Cross
Site Scripting attack. This can be useful if the attacker has
a restricted access to an mysql function.


==[ POC/EXPLOIT
===============
<?php //?db=<script>alert(666)</script>
$link = mysql_connect("localhost", "root", "");
mysql_select_db($db, $link);
echo mysql_errno($link) . ": " . mysql_error($link). "\n";
?>


==[ LINKS
=========
Mysql functions list.: http://www.php.net/manual/en/ref.mysql.php
Discussion on php.net: http://bugs.php.net/bug.php?id=38733


==[ SOLUTION
============
No response from PHP Team.


==[ TIMELINE
============
06. Sept. 2006 - Vendor contacted
20. Sept. 2006 - Public disclosure


==[ CONTACT
===========
Author: DarkFig
Web...: www.acid-root.new.fr
E-mail: gmdarkfig[*]gmail[*]com (fr/en)
 
Ответить с цитированием
 



Похожие темы
Тема Автор Раздел Ответов Последнее сообщение
Books PHP FRAGNATIC PHP, PERL, MySQL, JavaScript 186 21.02.2010 02:41
Books PSalm69 Избранное 248 27.10.2009 04:52
На PHP, как на "Новые ворота"... Mertvii-Listopad Чужие Статьи 7 18.09.2006 12:42
Безопасность в Php, Часть Iii k00p3r Чужие Статьи 0 11.07.2005 19:02
Защищаем Php. Шаг за шагом. k00p3r Чужие Статьи 0 13.06.2005 11:31



Здесь присутствуют: 1 (пользователей: 0 , гостей: 1)
 


Быстрый переход




ANTICHAT.XYZ