- If I choose to leave this up to WP, what should I actually put in wp-config.php?
Sounds like something you can easily find out. My guess: if you don’t have the define('AUTH_KEY', ..)
etc. statements, the system will not work.
- Some sources (this SO answer, for example) appear to state that putting the keys and salts in wp-config.php is “more secure” than using the database version.
With clever SQL injections it is possible to read data from the DB, even if I don’t have direct access to it. So all I need to get the keys is one plugin that has a SQL vulnerability and I can get them.
If I store part in the filesystem and part in the DB, just access to information from the DB is not sufficient anymore.
As suggested in the other answer, just use WP’s generator or any of the other ones (e.g. this from roots.io) and supply these keys differently for each site that you spin up.
Related Posts:
- Is moving wp-config outside the web root really beneficial?
- Prevent access or auto-delete readme.html, license.txt, wp-config-sample.php
- Where to securely store API keys and passwords in WordPress?
- Why are passwords exportable as plain text in WordPress?
- How is password strength calculated?
- Generate WordPress salt
- Make password invalid once logged out of password-protected page
- Garbage in beginning of wp-config.php – was this WP installation compromised?
- Can’t reset WordPress password
- Is the “lost password” feature truly a vulnerability?
- Frontend Password change
- Is it possible to reduce the minimum character length for passwords?
- How does the “authentication unique keys and salts” feature work?
- Securing wp-config leads to sensitive information leak on wp-settings
- What’s the point of forbidding access to wp-config.php?
- Where to store OAuth 2.0 client id and secret?
- When is wp_set_password() called or how to capture a password
- Moving away from MD5: Where to declare the custom global $wp_hasher?
- How to get WordPress to send Password Reset Link Email instead of New Password?
- Config file with no Keys..?
- Basic password protection without using users and roles
- White screen of death on admin pages after moving wp-config up two levels for security
- How can I force a specific password?
- Storing FTP details in wp-config.php
- Can a WordPress administrator see other users’ passwords?
- My Site keeps crashing due to the wp-confg file being deleted
- Moving wp-config.php outside root folder where we have multiple wordpress websites for enhanced security [duplicate]
- How to change location of wp-config.php to folder or 2 folders up?
- Adding Security Keys?
- Remove hacked code – out of ideas! [closed]
- Secret keys in SCM
- After limiting the access to my wp-login.php by IP through .htaccess, all my password-protected posts stopped working. What’s the best solution now?
- wp-config.php moved above root results in no plugin updates
- Password-protect feed and make it usable in major aggregators
- wp-config.php file and code injection
- Malware/Permission bug removal?
- Could a user account with a stolen password compromised entire WP site?
- How to set custom validation for WordPress Passwords?
- Default installation permissions for wp-config.php
- Is my WP site being hacked?
- How to get real password (before encrypt) when register a user?
- Move data from wp-config to another file
- Directory to store secure file
- Can you alter the default wordpress strong password requirements?
- SSL Error: unable to get local issuer certificate
- When you use ‘badidea’ or ‘thisisunsafe’ to bypass a Chrome certificate/HSTS error, does it only apply for the current site? [closed]
- When you use ‘badidea’ or ‘thisisunsafe’ to bypass a Chrome certificate/HSTS error, does it only apply for the current site? [closed]
- How to redirect all HTTP requests to HTTPS
- What is the difference between a cer, pvk, and pfx file?
- How to solve “Kernel panic – not syncing – Attempted to kill init” — without erasing any user data
- What’s the best approach for generating a new API key?
- Is it possible to decrypt SHA1
- Simplest two-way encryption using PHP
- Why does the URL http://a/%%30%30 crash Google Chrome?
- what is a auth_user_file.txt?
- When you use ‘badidea’ or ‘thisisunsafe’ to bypass a Chrome certificate/HSTS error, does it only apply for the current site?
- How does the SQL injection from the “Bobby Tables” XKCD comic work?
- Error `sec_error_revoked_certificate` when viewed in Firefox only
- How to view PHP on live site
- Convert .pfx to .cer
- how fix “this certificate cannot be verified up to a trusted certification authority”
- Can an attacker use inspect element harmfully?
- Where does Internet Explorer store saved passwords?
- How can bcrypt have built-in salts?
- Hide the fact a site is using WordPress?
- Verifying that I have fully removed a WordPress hack?
- Infected Files – what to do [closed]
- What security concerns should I have when setting FS_METHOD to “direct” in wp-config?
- Getting a List of Currently Available Roles on a WordPress Site?
- WordPress 4.7.1 REST API still exposing users
- Can I Prevent Enumeration of Usernames?
- Best way to eliminate xmlrpc.php?
- What’s the easiest way to stop WP from ever logging me out
- If a hacker changed the blog_charset to UTF-7 does that make WordPress vulnerable to further attacks?
- Should I escape wordpress functions like the_title, the_excerpt, the_content
- Why should I use the esc_url?
- Should I remove install.php and install-helper.php?
- How safe / sanitized is wp_insert_posts()?
- Why does WordPress need my private ssh key to update?
- When to use esc_html and when to use sanitize_text_field?
- From a security standpoint, should bloginfo() or get_bloginfo() be escaped?
- Are Nonces Useless?
- What could a hacker do with my wp-config.php
- What is the difference between esc_html filter vs attribute_escape filter?
- Why escape if the_content isnt?
- Why does WordPress have more than one salt?
- What is the ideal setup to address security concerns?
- Will there be security updates for 3.1 once 3.2 is released?
- What’s the difference between esc_* functions?
- Full path disclosure on rss-functions.php
- What to use instead of wp_kses() in user output
- Enforcing password complexity
- How to set up fail2ban with WordFence?
- How do I technically prove that WordPress is secure?
- Are the default salts secure?
- is_email() VS sanitize_email()
- multi page password protection
- WordPress it’s cleaning a custom query_var to avoid sql injections?
- Which KSES should be used and when?
- Can someone explain the use cases of esc_html?