Notice: Undefined variable: contentRead in /var/www/www-root/data/www/knizh.ru/funcs.php on line 681

Notice: Undefined variable: row in /var/www/www-root/data/www/knizh.ru/funcs.php on line 719

Notice: Trying to access array offset on value of type null in /var/www/www-root/data/www/knizh.ru/funcs.php on line 719

19 �������� ������, ���������� ������������ �������� ������ �����

CVE�1999�0042

������ �� �������� ������: ������������� ������ � ���������� �������� IMAP � POP �������������� ������������. ��� �� ������ ����� �������� ��������������� � ��������� CERT �� ������� ���1997�09. ������������ ���������� �� ����� �������������� ��� ������� � ��������, ����������� ��������� Post Office Protocol (POP) � Internet Message Access Protocol (IMAP). ��������� � ��� ���������� ������� � ���, ��� ������ ����������� ����� �� ��� ���������� �� ���������� ����������, ������� �������� ����� ���������� ����� ������������ root. ��� ������������ ��������� ��� ���� �������� ����� ������.

����������� ���������, ��������� ��� ������ �������� ������ ����� �������, ���������� ����������� ������� � ��������� SLMail 2.5 ������������ Seattle Labs, � ��� ������� ����� �� �������� www.winnetmag.com/Article/ArticleID/9223/ 9223.html.

CVE�2000�0389 � CVE�2000�0392

�� CVE�2000�0389: ������������� ������ � ������� krb_rd_req � Kerberos ������ 4 � 5 ��������� ���������� ���������� �������� ���������� root�.

�� CVE�2000�0390: ������������� ������ � ������� krb425_conv_principal � Kerberos 5 ��������� ���������� ���������� �������� ���������� root�.

�� CVE�2000�0391: ������������� ������ � ��������� krshd, �������� � ������ Kerberos 5, ��������� ���������� ���������� �������� ���������� root�.

�� CVE�2000�0392: ������������� ������ � ��������� krshd, �������� � ������ Kerberos 5, ��������� ���������� ���������� �������� ���������� root�.

��� ������ � ���������� ������� Kerberos ������������ ��� ��������������� � ��������� CERT ���2000�06 �� ������ www.cert.org/advisories/CA�2000�06.html. ���� �������� ������ ������� ��� ��������� ��� � �������� ��������� � ������������� ������� ������� ������ �� �������� (strcat), ����� � ��� �������� ������ � 2000 ����.

CVE�2002�0842, CVE�2003�0095, CAN�2003�0096

�� CVE�2002�0842:

������ ��� ������ � ��������� ������� � ����� ����������� ������� mod_dav, ����������� ��� ���������������� ��������� � ������ ����� (��������, Oracle9i Application Server 9.0.2), ��������� ���������� ���������� ��������� ������������ ���, ����������� � URI, ��� �������� ������ ���������� ����� �502 BadGateway�. � ���������� ������� dav_lookup_uri() � ����� mod_dav.c ���������� ������������� ��������� ������, ������� ����� ������������ ��� ������ ap_log_rerror().

�� CVE�2003�0095:

������������ ������ � ��������� ORACLE.EXE ��� Oracle Database Server 9i, 8i, 8.1.7 � 8.0.6 ��������� ���������� ���������� ��������� ������������ ���, ����� ��� ����� ������� ��� ������������. ������� ����� ��������������� �� ���������� ����������, �������������� ����������� ��������������, ��� � ������������������ �� ������� LOADPSP.

�� CAN�2003�0096:

�������������� ������ ������������ ������ � Oracle 9i Database Release 2, Release 1, 8i, 8.1.7 � 8.0.6 ��������� ���������� ���������� ��������� ������������ ���, (1) ����� ������� ������ �������������� � �������� ��������� ������� TO_TIMESTAMP_TZ, (2) ����� ������� �������� �������� ����� � �������� ��������� ������� TZ_OFFSET � (3) ����� ������� ������ � �������� ��������� DIRECTORY ������� BFILENAME.

��� ������ ��������������� � ��������� CERT ���2003�05 �� ������ www.cert.org/advisories/CA�2003�05.html. �� � � ����� ������ � ��������� ����� �������� �� ������ ������������ �� �������� Next Generation Security Software Ltd. ������� �������, ��� �� ����� ��������� ���� ���������� ����������������, ���� �� ���� ������� �� ��������.

CAN�2003�0352

�� �������� � CVE:

������������ ������ � ����� ���������� DCOM, ������������ � ������� RPC, ����������� � Microsoft Windows NT 4.0,2000, �� � Server 2003, ��������� ���������� ���������� ��������� ������������ ���, ����������� ������������ ���������. ���� ������� ��������������� ����� Blaster/MSblast/LovSAN and Nachi/Welchia.

��� ������������ ��������� ���, ��� ������� � �������� ��������������� ���� ������ �������������� ������, ��� �������� �� ����� ���������� ������������ � ���� ��������. ������������ ����� � ����, ��������������� ����������� ������������ ������ ����� ��������� ����� ����������� �����. �� ����� ������� ��� ��� ������� ������� �������������� ���������� ����������, ���� ��������� �� ������ ��� ���� �������� ��������� �������������. ��������� ��� ��������, ��� ������������ � Windows 2003 ��������� ����� ����������� ����� � ������ �� ������������ ������ ��������� ����������.

��������� �� ���� �������� ����� ��������� �� ��������� www.cert.org/ advisories/CA�2003�23.html � www.microsoft.com/technet/security/bulletin/MS03�039.asp.

���������� �����

���� � ���������� ����� ������������ ������ ����� � �������. �� ������� ��������� �������� �������� ���� ������, � ����� ��� �������, ����������� ��������� ����� �� ���. ����������, ��� ����� �������� ���� ���������.

������ ������� ������� ������ �� ��������

��� ������� �� ������ �������� ������������ ������� ���� strcpy, strcat � sprintf �� ��������� �� ���������. ������ ����� ������� ����������� ���������. ������ � ����, ��� ��������� ������ ��������� ������� �� ��������� ��������� ������ �������, � ����� ����, ��� ������� ���������� ����� ���������� ���������� ��������������� ������������. � ����� 3 �� �������, ��� ���������� �� ��� ������ ����������� � �����������, ��� ����� �� ����������. �� ����� ���������� ����� �������� ������� strsafe, Safe CRT (���������� ������� ���������� ��� �), ������� ������ � ������ Microsoft Visual Studio (� ����� ����� ������ ������ ��������� ANSI C/C++), � ������� strlcat/strlcpy ��� *nix. ��������� �������� �� ��, ��� ������ ������� ������������ ����� ������ � ��������. ��������� ������� �����������, ��� ������ ����� ����������� �����, �� ����������� ������ ������� �� ��������� ����� �������� �� ����. ���� ������ ���������� Microsoft Office �� ������ ������������ ������� ������ �� �������� � Office 2003 �������, ��� ����������� �������� (����� ����� ������ � ������� �� ���� �����������) ����� ���, ��� ��� ����� ����� ������ ����� ������ ��� �� �������������.

������� �� ����������� ������

��� ���� ������� ������������ ������ � ��� �������������� ������. ���������� � ����� 3 � ������������ ����� ����� � ������� � ����� ���� ��� �����, ��� ��� ���������� ������� ������ ������������ �������������� ����������.

��������� ����� � ������ � ��������

������������ �������� � � ������, ����� ����������� ����������� ������� ������ �� ����� � �� �������������� ����� �� ������� ������� ����� ������� � ����. ��� ���� �� ����� ������� ��� ����������� ������; �� �������, ��� ����� ������ ����������� ������ �� � ��� ������, ��� ���� ��������.

����������� �������� � ����� �++, � �� �

��� ����������� ������� ������ ����������� і�������, �� ����� ������� �� ����� ������������ ����������� ����, �������� ���� ��������� ���������� �� ������������ �++. �� ������ ������ ������������ ���� �������������� ������������������ STL������������. ������ �������� �������� ����� ����������� ��� � �������������� STL, ��, ��� ������, ��������� ������ ����������� (RTFM � Read The Fine Manual) ����� �������� � ����, �������� �� ������������. �������� �������� ������������������ ������ ���� � ������� � ������������� ��������� ������� std::string ��� std::wstring.

����������� STL������������� ������ ����������� ��������

��� �������������� �������� ��������� � � STL������������, �������� vector, �� �������� ����������� ��� � ���, ��� �� ��� ���������� ������ vector::iterator ������������ ����� �� ������� ����������. ��������� � ��������� ���� ����� ������, � ����� ��������, ��� STL ������������ �������� ��������� ����������� ����, �� ������ � ����, ��� ��� ��� �� �� �������.

����������� ������������� �������

�� ����� ���������� ���������� ����������� ��� ������� ���� �� ������ C/C++ �� ������� ��������� ������������, � ��� ����� Coverity, PREfast � Kloc�work. � ������� ������� �������� ��������� ������. � ������ Visual Studio .NET 2005 ������ ��������� PREfast � ��� ���� ���������� ������� ���� ��� ��������� Source code Annotation Language (SAL � ���� ������������� ��������� ������), ����������� ���������� ����� �������, ��� ������������ ������. ����� ����� ����������������� SAL �� �������. � ���������� ���� ��������� (�����������) �� ������, ��� ����������� ��������� data � count: ����� data ���������� count ������. �� ����������� �� ���� ������ �� ��������, �� ����� ������ ���� char * and a size_t.

void *DoStuff(char *data, size_t count) {

static char buf[32];

return memcpy(buf, data, count);

}

�� ������ ������, ��� �� �������� ������ ������� (���� �� �������, ��� �� ���������� ��������� �� ����������� �����, �� ���������� ��� ����). ������ ���� count ������ 32, �� ��������� ������������ ������. ���� �� ���� ��� ��� ����������� � ������� SAL, �� ���������� ��� �� �������� ��� ������:

void *DoStuff(__in_ecount(count) char *data, size_t count) {

static char buf[32];

return memcpy(buf, data, count);

}

����������� ��� ���, ��� ������ ���������� �/��� PREfast ����� � ������ ����� ���������� data � count.

�������������� �������� ����

�������������� �������� ���� � ��� ��� ����� ������������ � ����������. ����� ��� �������� ����������� ������������, �� � ������ �������� ��� ����� �� �����. ����� ��������, ��� ��� ���� �������� �������� �������������� ������ �� ������������ ������ �������, ������� �������� � ������������ ������, ���������� ������������, ������� ���������� ���������� ����� ����� ������ ���� ���������. ��� �� ���������� ��������� �������.

������ �����

������ ����� ������ �������� ������� ����� � ����� ��������� Stack�guard, ����� ��� ���� ���������� ����������� Microsoft � ������� ����� ����������� /GS. � ����� ������� �������� ���� �� ������� � ���, ��� � ���� ����� ���������� ����������� � ������� �������� ������������ ����� ��������. � ����� ����������� ����������� ��� ��������� ������������� ����� ����� ���������� ������� ����������. ����������� ����� ������� � ���, ��� �� ����� ����������� � ����� �� ������� ������������������, � ����� ����, ��������� ������� � ������ ����� �����. ������ ������ � ��� ��������� ProPolice, ��������� ��������� IBM ��� ���������� ����������� Gnu Compiler Collection (GCC). ����� ����������� ������� ������ �������� � ���� ������ �����.

������ ���������� � ����� � ����

��� ��������� ����������� ��������� ������ ������, �� ����� ��������� �� �������������. ��������� ���������� ������� ���������� ������������� � ��������� ��� �� ����. ��������, ��� ��������� � ������ Java � �#. ����� ����� ��������, ��� ���� ��������� ������ ��������� ���� ���������� ����� ������� ����� � ��������� � libc, ����� ��� ���������� ������������� ����� ����������� ����� ����������� �������, �� �� ������ ����� ������ �� �������� ������.

� ���������, ����������� ���������� �� ������� ����� �� ������������ ��� �����������, � ��������� �������� ������� �� ����������, ������������ ������� � ���� �� ���������� ������. ������� ������������ �� ������� ����� ������ � �������� �������� �� �����, �� ��� ����� ������� �������������� ���� ��������� � ���������, ��� ��� ����� ��������, ����� ���� � ���� �������� �� ����������. ��� ����� ����� ��������� �� �� ��� ���������� � ������������ �������, ������� ������������ ���������� ������. ��������, ���� ������� ���������� �������� Windows ��, �� ��������� ����� �� ������ � ����������� AMD Athlon 64 FX ��� ����������� Windows �� SP2. � Windows ��� ���������� ���������� Data Execution Protection (DEP � ������ �� ���������� ������), � ������ ������ ��� No eXecute (NX).

�� Windows Server 2003 SP1 ����� ������������ ��� �����������, ����� ��� ���������� ��� ��� Linux � OpenBSD.

������ �������

Writing Secure Code, Second Edition by Michael Howard and David C. LeBlanc (Microsoft Press, 2002), Chapter 5, �Public Enemy #1: Buffer Overruns�

�Defeating the Stack Based Buffer Overflow Prevention Mechanism of Microsoft Windows Server 2003� by David Litchfield: www.ngssoftware.com/papers/ defeating�w2k3�stack�protection.pdf

�Non�stack Based Exploitation of Buffer Overrun Vulnerabilities on Windows NT/2000/�л by David Litchfield: www.ngssoftware.com/papers/non�stack�bo�windows.pdf

�Blind Exploitation of Stack Overflow Vulnerabilities� by Peter Winter�Smith: www.ngssoftware.com/papers/NISR.BlindExploitation.pdf

�Creating Arbitrary Shellcode In Unicode Expanded Strings: The 'Venetian' Exploit� by Chris Anley: www.ngssoftware.com/papers/unicodebo.pdf

�Smashing The Stack For Fun And Profit� by Alephl (Elias Levy): www.insecure.org/stf/smashstack.txt

�The Tao of Windows Buffer Overflow� by Dildog: www.cultdeadcow.com/ cDc_files/cDc�351/

Microsoft Security Bulletin MS04�011/Security Update for Microsoft Windows (835732): www.microsoft.com/technet/security/Bulletin/MS04�011 .mspx

Microsoft Application Compatibility Analyzer: www.microsoft.com/windows/ appcompatibility/analyzer.mspx

Using the Strsafe.h Functions: http://msdn.microsoft.com/library/en�us/winui/ winui/windowsuserinterface/resources/strings/usingstrsafefunctions.asp

More Secure Buffer Function Calls: AUTOMATICALLY!: http://blogs.msdn.com/michael_howard /archive/2005/2/3.aspx

Repel Attacks on Your Code with the Visual Studio 2005 Safe � and �++ Libraries: http://msdn.microsoft.com/msdnmag/issues/05/05/SafeCand � / default.aspx

�strlcpy and strlcat � Consistent, Safe, String Copy and Concatenation by Todd C. Miller and Theo de Raadt: www.usenix.org/events/usenix99/millert.html

GCC extension for protecting applications from stack�smashing attacks: www.trl. ibm.com/projects/security/ssp/

PaX: http://pax.grsecurity.net/

OpenBSD Security: www.openbsd.org/security.html

Static Source Code Analysis Tools for C: http://spinroot.com/static/

������

�������������

��������� ���������� ����� ������ � ������ �� ���� ������������� ���������� ������� ��� ������ �� �������� � ��������� ������.

����������� ������������� � ���������� ���������� ������, �������� ������ /GS � ���������� ProPolice.

���������� ��������� ������ �� ������������ ������ �� ������ ������������ �������, �������� DEP � ���.

�������, ����� ����� ������������ ���������, � ������������� �� ���������� �������.

�� �������������

�� �������, ��� ���������� � �� ��� ������� �� ���, ��� ����� ���� �������������� �������� ������.

�� ����������� ������������ ������� � ����� ����������.

����� ��������

�� ��������� ��������� ������ ����������� C/C++, ��������� ������������ �������� � ������������ ��� ����� ��������� ������.

� ����������� �������� ������������ ������� �� ������ ��������.

�� ������������� ����� � ������������ ������� �� ���������� �++ ������ ���������� �������������� ������� � ��� ������ �� ��������.

���� 2.

������, ��������� � ��������� �������

� ��� ������� ����

� ��������� ������� ������ ����� ����� ����, ����������� � ��������� ����. ���� �� ������ ��������� �� ��� ���� ������� ������� ������� (Lamagra Arga�mal) 23 ���� 2000 ���� (www.securityfocus.com/archive/1/66842). ������� ����� ������� ������� (Pascal Bouchareine) ��� ����� ����������� ��������� (www.securityfocus.eom/archive/l/70552). � ����� ������ ��������� ����� ������ (Mark Slemko) (www.securityfocus.com/archive/1 /10383) ���� ������� �������� �������� ������, �� � ����������� ���������� � ������ ���� �� ����.

��������: �� 12

������ ��������� ������ �����:

��������� ������������� ������������������ ����������� � ������������ ����� XX ����, ������� �������...
������� ���������� ������������ ��� ������������ � 2007 ����. ����� ����, ��� ���������� ��������� �...
����� ��������� ����������� �������� ������� �������, ����������� �����, �������, ���������, �������...
� ����� ������ �������������� � ��������� �������� ����� ��������� �������� ����� ���� � ���������� ...
����������� �������� ������ � ������������, ����� ������������� �������������� ������������, �������...
������ ��������, ������ ����������� ����������� ���������� ��������� � ����, ����� �������, ��������...