Prevent PossibleNSIISlog. DLLRemoteBufferOverflowAttack attacks

Source: Internet
Author: User
Prevent PossibleNSIISlog. DLLRemoteBufferOverflowAttack attacks-Linux general technology-Linux technology and application information. For more information, see the following. Average number of repeated attacks per month
The server I use is LINUX 5 server 64BIT.
How can I prevent others from using this attack?
------------------------------------------
I found it in Baidu but did not discuss how to prevent it.
Buffer Overflow Attack
Buffer overflow is a means of system attacks. By writing content that exceeds its length to the buffer zone of the program, the buffer overflow is caused and the stack of the program is damaged, turn the program to execute other commands to attack the program. According to statistics, attacks by buffer overflow account for more than 80% of the total number of system attacks. The reason for buffer overflow is that the system program does not detect user input parameters, that is, whether the length of the variable meets the requirements.
Example:
Example1.c
Void function (char * str) {buffer [16];
Strcpy (buffer, str );
}
The strcpy () above will directly copy the content in str to the buffer. In this way, as long as the str length is greater than 16, it will cause buffer overflow and program errors. Standard functions such as strcpy () include strcat (), sprintf (), vsprintf (), gets (), scanf (), and getc () in the loop (), fgetc (), getchat (), etc.
Of course, if you fill in anything in the buffer, it will only cause a "Segmentation fault" segment error, rather than attack. The most common method is to execute a shell through a buffer overflow of a special program, and execute advanced commands through shell permissions. If this special program is root and has suid permission, the attacker can obtain a shell with root permission after the attack is successful, and then he can do whatever he wants on the system.
A program is generally divided into program segments, data segments, and stacks in the memory. The program section contains the machine code and read-only data of the program. The data segment contains static data in the program. Dynamic data is stored through stacks.
----------------------------------------------
Can patches be installed on linux systems? For example, patches are updated online every month like windows.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.