Prevent SQL Injection and XSS in WordPress Plugins with Prepared Stateme ...
Prevent SQL injection and XSS in WordPress plugins SQL injection and cross-site scripting (XSS) are the two most common vulnerability types in WordPress plugins. SQL injection happens when input becomes part of an SQL query; XSS when input (or stored data) is printed into HTML unescaped. WordPress has the tools for both: $wpdb->prepare() for queries,…