Safe against/for what? Is “a legitimate user can input any HTML” a safety issue?
If you might handle data from kind-of-but-not-really trusted users, how about giving admins the possibility to define which tags/attributes to strip out (optionally: per user group / role) and your plugin does the rest, or run the content through a filter where they can implement their own logic with add_filter
?
Related Posts:
- is_email() VS sanitize_email()
- vs WordPress Security
- how to sanitizing $_POST with the correct way?
- How does the SQL injection from the “Bobby Tables” XKCD comic work?
- In Which Contexts are Plugins Responsible for Data Validation/Sanitization?
- How safe / sanitized is wp_insert_posts()?
- When to use esc_html and when to use sanitize_text_field?
- How to properly validate data from $_GET or $_REQUEST using WordPress functions?
- What’s the difference between esc_* functions?
- Which KSES should be used and when?
- How to escape custom css?
- Do Cookies Need to be Sanatized Before Being Saved?
- Is default functions like update_post_meta safe to use user inputs?
- How Could I sanitize the receive data from this code
- Who is responsible for data sanitization in WordPress development?
- Is wp_kses the right approach in sanitizing this string?
- Is it sensible to worry about sanitizing admin input in plugin custom CSS?
- Are un-sanitized theme options more vulnerable to malicious scripts than the theme editor?
- Does meta-data need to be sanitized?
- Do we need to escape data that we receive from theme options?
- How to redirect all HTTP requests to HTTPS
- What’s the best approach for generating a new API key?
- Simplest two-way encryption using PHP
- how fix “this certificate cannot be verified up to a trusted certification authority”
- How can bcrypt have built-in salts?
- Getting a List of Currently Available Roles on a WordPress Site?
- From a security standpoint, should bloginfo() or get_bloginfo() be escaped?
- Why are passwords exportable as plain text in WordPress?
- Is there a way to force ssl on certain pages
- Is sanitize_text_field() is enough to save to DB?
- What is the purpose of having a token in cookies?
- How is password strength calculated?
- Regular security checks – what steps should be included?
- What are the pros and cons of using a custom front-end to retrieve content from a WordPress back-end
- Is WP vulnerable when updating plugins or themes?
- Disable external access to REST API Endpoint
- What is the wp-includes/certificates/ca-bundle.crt used for?
- Do you need to escape hard coded plain text?
- Encrypt emails?
- Garbage in beginning of wp-config.php – was this WP installation compromised?
- WordPress salts set in config and database
- What is the difference between strip_tags and wp_filter_nohtml_kses?
- Disallow file edit not preventing plugin install
- How to secure WordPress XMLRPC?
- What is the relationship between cURL, WordPress and cacert.pem?
- How can I find security hole in my wordpress site?
- Does WP show me if I’m logged in from multiple locations?
- How to prevent bot or someone to modify any file automatically?
- HTTP Security Headers in wp-config
- WordPress Malware Problem help! [duplicate]
- Restrictive File Permissions
- Why are xmlrpc.php and wp-cron.php being called so often?
- Using esc_html with HTML purifier and CSSTidy: Overkill?
- wordfence scan warning on W3 Total Cache [closed]
- Securing a multi-user permission structure
- wp-config.php modified?
- Suspicious Files
- How to save iframe tag into a post?
- neccessary?
- my wordpress website is suspended [closed]
- iTheme Security always lockout my account [closed]
- Renaming install.php for security?
- WordPress Front end Form – Enable to Submit PHP Codes
- What data sanitzation function should be used to store entire source code of webpage?
- Is WordPress MultiSite secure & how much can it scale? [closed]
- Which Versions of WordPress Ship with the Patched TimThumb?
- Use global variables or function that returns said variables for site-wide private-ish WP settings?
- How safe is current_user_can()?
- Is it safe to give wordpress directories ownership to www-data?
- Use Google authentication for pages within a website [closed]
- Side effects of disallowing *.php requests in production environment?
- should I escape a literal url added in functions.php
- Input sanitation
- Someone keeps changing my SITEURL (mysql injection or xss?) [closed]
- Moving wp-config.php outside root folder where we have multiple wordpress websites for enhanced security [duplicate]
- Replace domain in database
- What highest security brake with wordpress and static files?
- Spam in WordPress root folder
- HSTS header not being added correctly
- Can WordPress admin user + database credentials be used to gain Cpanel or FTP access?
- How to save Checkbox-Options in Plugin Options Page
- how to add security questions on wp-registration page and validate it
- Links to root domain from search engines don’t work, but direct links and links from other referrers do
- Cannot access wp admin of WordPress website (security plugin issue) [closed]
- Why are the latest visits to my website originating from my own website?
- Secure Multiple WordPress Installations on shared hosting
- How do I hide WordPress users from security scanning?
- Background Updates Not Happening
- wp-config.php file and code injection
- Able to go to WordPress admin even after deleting auth cookies from request headers
- Settings api sanatize callback not being triggered
- FORCE_SSL_ADMIN affecting subdomains
- What is the best security $_POST method?
- Is WordPress ready for GDPR compliance? [closed]
- Bank account number and Sort Code in a form [closed]
- Move data from wp-config to another file
- Heartbleed: What is it and what are options to mitigate it?
- OpenVPN vs. IPsec – Pros and cons, what to use?
- How to test if my server is vulnerable to the ShellShock bug?
- esc_url, esc_url_raw or sanitize_url?