andresfromsonar reports a bug where editing an unlisted post causes it to be re-listed publicly. This creates a security risk for workflows that automatically flag and hide spam or undesirable content, as users can bypass these protections by simply editing the post, effectively re-publishing malicious material before moderators can intervene. andresfromsonar provides a reproduction case involving a manual workflow that hides a post, followed by an edit that restores its visibility.
supermathie clarifies that this is not a bug but intentional behavior. The design assumes a well-intentioned author who edits a flagged post to fix the underlying issue, thereby justifying its return to visibility. However, andresfromsonar argues that this assumption fails in the context of advanced spam, particularly AI-generated spam that exploits this documented “loophole” to re-list malicious content without genuine correction.
To mitigate the issue, andresfromsonar considers moving flagged posts to a private category so they remain hidden even if re-listed. Moin suggests a more robust solution: re-flagging the post after it has been edited. Citing Discourse documentation, Moin explains that if a hidden post is flagged again after an edit, it requires manual moderator handling, preventing the user from gaining further automatic editing opportunities to bypass restrictions. andresfromsonar accepts this advice and plans to add an on-edit trigger to their workflow, which will also catch posts that are modified after creation to evade initial checks.
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).
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.
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.
Ok okay, so I see it’s by design. I see that the design assumes a well-intentioned author. In real life, my workflow detects, hides and flags spam. I’m seeing advanced spamming techniques where AI-powered users post spam and then edit the post to re-list it (see in my example above the post was not any less evil and malicious after the edit). In fact, it’s likely that the AI behind these spam users are aware of this “loophole” precisely due to it being documented.
I guess I could move the post to a private category so that even if it’s re-listed, it’s not visible to normal users.
Good point @Moin, I will add an on-edit trigger to the workflow. This also lets me cover the case when the post is innocuous on creation but then edited afterwards to bypass the on-creation check. Thanks!