앞에서 인젝션 방식의 공격이 웹 애플리케이션에 가져오는 위험을 논의했다. 이러한 공격은 과
거에 더욱 흔하기는 했지만 지금도 여전히 많이 일어나며
CLI
와 사용자 제출 데이터가 관련된
자동화를 개발할 때 적절한 주의를 기울이지 않은 결과로 발생하는 것이 일반적이다.
또한 인젝션 공격은 범위가 넓다.
CLI
를 비롯해, 서버에서 실행되는 독립적인 인터프리터에 인
젝션을 할 수 있다(
OS
수준을 공격하는 것은 명령 인젝션이 된다). 그러므로 인젝션 유형의
공격을 막는 방법을 고려할 때에는 방어 기법을 몇 가지 범주로 나눠 생각하면 쉽다.
먼저 가장 흔하며 잘 알려진
SQL
인젝션 공격에 대한 방어부터 살펴보자.
SQL
인젝션을 막기
위해 할 수 있는 일을 조사한 뒤 그러한 방어 기법 중 어떤 것을 다른 인젝션 공격에 응용할 수
있는지 알아볼 수 있을 것이다.
끝에 가서는 특수한 인젝션 공격에 속하지 않는 일반적 인젝션 공격을 방어하는 몇 가지 방법
도 알아본다.
25.1
SQL
인젝션 완화
SQL
인젝션은 인젝션 공격 중 가장 일반적인 형태이며 방어하기도 가장 쉬운 편이다.
SQL
데
이터베이스가 많이 사용되는 만큼
SQL
인젝션도 널리 퍼져 있으므로 복잡한 웹 애플리케이션
330
3
부
방어
은 거의 대부분 영향을 ...
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.