Editing an unlisted post causes it to be re-listed

AI-generated summary

In a bug report titled “Editing an unlisted post causes it to be re-listed,” andresfromsonar details a security vulnerability affecting automated moderation workflows. The issue arises when posts are automatically unlisted (hidden) by a workflow that flags them for moderator review. If a user edits the post after it has been unlisted, the system inadvertently re-lists the topic, making it publicly visible again without immediate moderator intervention. This behavior persists even for posts older than the typical five-minute edit window, although the visual pencil icon may not appear for recent edits.

The reporter provides a step-by-step reproduction of the issue, supported by screenshots showing the initial creation of a topic, the execution of a manually triggered workflow that successfully unlists the post, and the subsequent re-appearance of the post in public feeds after a user performs a simple edit. This creates a significant loophole in automated content moderation strategies: malicious or undesirable content can bypass visibility restrictions instantly, remaining public until a moderator manually notices the flag and takes further action.

The core problem lies in the interaction between post edit events and visibility states. The system appears to treat an edit as a signal that the content is valid or safe, thereby resetting its visibility to the default public state, ignoring the prior unlisted status imposed by the workflow. This undermines the effectiveness of workflows designed to hide specific content types pending human review. The discussion highlights the need for a fix that preserves the unlisted status of a post through user edits, ensuring that automated flags cannot be trivially bypassed by the end-user, thus maintaining the integrity of the moderation pipeline.

Hi, I found that users can re-list certain unlisted topics by editing them. My use case: I have some workflows in place that flag and hide posts when they detect certain things. Editing the post basically lets the user bypass this and have their posts re-listed (at least until mods intervene).

Reproducing the issue:

  1. Create a topic.

  1. Let’s assume that this is a type of post that for some reason we would want to unlist and flag for mod review via a workflow. For the purpose of this example, it’s a manually triggered workflow and the post ID is hardcoded.

  1. Run the workflow. It works, the post is unlisted.

  1. The hack: edit the post. It’s back to public! In this case it’s a pre-5-min edit, so it doesn’t show the pencil icon, but the same behavrior happens with posts that are older than 5 mins.

Effectively, I have made my undesirable post public again. Yes, it’s flagged for mods, but it will take a while for them to notice it.

1 Like