There's also information that technically works but is horrendously insecure that is highly upvoted on SO. There's usually people in the comments noting how insecure it is, but I wish there was some moderator action that could cause for an answer to be marked as insecure, as I'm sure there are people who have copied the unsafe solutions without looking at the comments.
There are also answers that "work" and aren't insecure but will near certainly cause other issues.
I'm sure some people upvote because they had the same question, tried the solution, and it seemingly worked (even if it's not secure, performant, etc.), so they upvote. But you'd think they'd at least check the comments and see what people are saying before trying (let alone upvoting) a solution.
There are also answers that "work" and aren't insecure but will near certainly cause other issues.
I'm sure some people upvote because they had the same question, tried the solution, and it seemingly worked (even if it's not secure, performant, etc.), so they upvote. But you'd think they'd at least check the comments and see what people are saying before trying (let alone upvoting) a solution.