본문 바로가기
파이썬

파이썬 SQLAlchemy + SQL 주입

by º기록 2020. 9. 29.
반응형

SQLAlchemy를 사용할 때 SQL 주입 공격을 완화하기위한 모범 사례는 무엇입니까?

 

해결 방법

 

"특수"문자 (예 : 세미콜론 또는 apostrophes) in your data, they will be automatically quoted for you by the SQLEngine object, so you don't have to worry about quoting. This also means that unless you deliberately bypass SQLAlchemy's quoting mechanisms, SQL-injection attacks are basically 불가능한.


 

참조 페이지 https://stackoverflow.com/questions/6501583

 

 

반응형

댓글