플래그에 유의하자. 이 기능은 사용하지 않는 것이 디폴트이며 함수 시그너처의 마지막 매개변
수이므로 실수로 잘못 설정할 가능성이 낮다.
위의
appendToDOM
메서드와 같은 메커니즘은 안전한 애플리케이션의 지표다. 이러한 보안 메
커니즘이 부족한 애플리케이션은 취약점이 발생할 확률이 더 높다. 이와 같이 안전하지 않은
애플리케이션 아키텍처를 식별하는 것은 취약점을 발견하고 코드베이스 개선의 우선순위를 세
우는 데 중요하다.
7.2
다중보안계층
메시징 서비스의 아키텍처를 고려한 앞의 예에서
XSS
위험이 발생할 수 있는 여러 계층을 다
음과 같이 나눴다.
●
API
POST
●
데이터베이스 쓰기
●
데이터베이스 읽기
●
API
GET
●
클라이언트 읽기
XXE
나
CSRF
같은 취약점에 대해서도 같은 접근을 취할 수 있다. 각 취약점은 한 계층 이상의 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.
O’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
I wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
I’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
I'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.