4 ms·
"However, for information security, this redirect should only happen if the content is published, because it can lead (like we see here) to information disclosu
by greenyoda 11y ago
"However, for information security, this redirect should only happen if the content is published, because it can lead (like we see here) to information disclosure."
Or even better: For information security, just don't put information that you don't want to publicly disclose on a public web site. (Or if you do, at least make it accessible only to logged-in users with the proper credentials.)
- geerlingguy 11y agoI did mention another common way to prevent this is to have a content staging site, where all your content is edited; this should ideally be _completely_ separate from the public site. When content is published, it's published to the main site from the staging site. But in this case, the post seems to be unpublished ("accessible only to logged-in users with the proper credentials"), but the SEO redirect plugin the blog is using is likely hitting it's 302 redirect prior to Wordpress checking it's access on the post ID in question, leading to this URL information disclosure.
- mschuster91 11y ago> I did mention another common way to prevent this is to have a content staging site, where all your content is edited; this should ideally be _completely_ separate from the public site. When content is published, it's published to the main site from the staging site. Modern non-enterprise CMSes make this very hard. Wordpress and Drupal mix configuration and content all over their databases, and there's no "sync this content from stage to prod" that works reliably (i.e. they fail as soon as there is a single non-standard plugin loaded). I haven't evaluated Drupal 8 yet, but I'm not counting my hopes too high.
- geerlingguy 11y agoThere are other systems (and a few open source modules/configurations) that do this for Drupal, at least, like https://www.acquia.com/products-services/acquia-content-hub https://www.acquia.com/products-services/acquia-content-hub It's a lot easier in 8 since it has an API-driven design for content entities.