The Art of Software Security Assessment: Identifying and Preventing Software Vulnerabilities by Mark Dow et al.
https://www.amazon.com/dp/0321444426/ (https://www.amazon.com/dp/0321444426/)
This book will give you the fundamentals of application security testing.