Anonymous
Not logged in
Talk
Contributions
Create account
Log in
WikiKnowledgeBase
Search
Editing
Technology/Software Development/General knowledge/Security Best Practices
(section)
From WikiKnowledgeBase
Namespaces
Page
Discussion
More
More
Page actions
Read
Edit
History
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Protecting Against Common Attacks == 1. '''Cross-Site Scripting (XSS) Attacks:''' * Avoid XSS attacks by properly sanitizing and validating user input, encoding output, and using security libraries or frameworks. * Use content security policies (CSP) to restrict the execution of untrusted scripts. 2. '''SQL Injection Attacks:''' * Prevent SQL injection attacks by using parameterized queries or prepared statements. * Avoid dynamically constructing SQL queries by concatenating user input. 3. '''Cross-Site Request Forgery (CSRF) Attacks:''' * Protect against CSRF attacks by implementing CSRF tokens, validating the referrer header, and using POST requests for state-changing operations. * Ensure that all requests with side effects are protected against CSRF attacks. 4. '''Security Updates and Patching:''' * Stay updated with security vulnerabilities and apply patches and updates to your software dependencies and frameworks regularly. * Subscribe to security mailing lists and follow best practices for updating and maintaining your development environment.
Summary:
Please note that all contributions to WikiKnowledgeBase may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
My wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation
Navigation
Main page
Random page
Categories
Help about MediaWiki
Wiki tools
Wiki tools
Special pages
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs