O’Reilly Securing Ajax Applications phần 7

Trình duyệt bây giờ là một công dân firstclass trong dòng chảy dữ liệu của ứng dụng, và chúng tôi phải bắt đầu suy nghĩ về nó một cách khác nhau. Mỗi trang đóng một vai trò quan trọng trong ứng dụng, và trong một số cách trang là ứng dụng. Vì vậy, chúng ta cần phải quan tâm nhiều hơn về những gì | The Threats The following are some common threats against web applications ranging from the most common and dangerous forms of cross-site scripting to more legacy vulnerabilities such as buffer overflows and other data handling issues. Cross-Site Scripting XSS Cross-site scripting XSS is a common form of web attack where malicious script or other code that is included in an HTTP response is involuntarily executed by the user s browser. These types of attacks can take almost any form and can be extremely dangerous. Often the attacks include sending private data such as cookies to an attacker. This can be done by redirecting the victim s browser to a web site controlled by the attacker. Usually identity theft is what the attackers are looking for here. Attackers steal session identifiers or a user s login credentials and impersonate that victim on legitimate sites. Web applications can be used as a mechanism to transport attacks to an end user s browser. Successful attacks can disclose session tokens spoof content or otherwise trick the victim into believing they are on a legitimate web site. After an attacker has navigational control of the victim s session the game is over. XSS comes in two basic flavors Reflected XSS Data is reflected immediately back to the browser from data injected on the URL or request the idea being an attacker formulates a link that includes the malicious script and the victim clicks that link -- Reflected XSS example -- myVar This JSP code can be exploited by assigning script to the value for myVar. Here s an example of how a script might get injected using a link on a web page a href http reflectedExample myVar script alert gotcha script Click. here for your free iPhone a Persisted XSS An attacker somehow manages to get her script stored on the server as in a database value and the victim views a pages that dynamically renders that value and executes the script. This code is vulnerable to a

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
17    113    2    02-07-2024
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.