I recently noticed that a lot of questions asking for how can I exploit this specific code or filter
get closed (but a lot of them also do not get closed) or marked as duplicates of the general topic they cover.
I think that often it's not very clear where the line is between on- and off-topic with these kinds of questions.
It seems that the main purpose of this close reason:
Questions asking us to break the security of a specific system for you are off-topic unless they demonstrate an understanding of the concepts involved and clearly identify a specific problem.
is to avoid script kiddies, to avoid questions of the type how to hack website X
, and to avoid questions which are only relevant to this code, and this code alone.
A clarifying post here might help to handle these kinds of questions more uniformly.
Examples of what I mean:
- asking how to exploit a login page, closed as duplicate of the general What is SQL injection? question which doesn't answer the question at all.
- asking how to exploit login page, open
- asking how to exploit login page, open
- asking how to exploit login page, closed
- asking how to exploit login page, open
- asking how to exploit login page, closed
- asking how to bypass
'
->''
filtering in SQL injection, closed - asking how to bypass
/<(?:\w+)\W+?[\w]/
in XSS, open - asking how to bypass
/(script|javascript|src|onerror|%|<|>)/g)
in XSS, closed - asking how to bypass
[\w/$!.*-]+$
in XSS, open - asking how to bypass filtering of
<
and>
, closed
You get the idea. Some might be duplicates of others, some handle very specific edge cases, but I can't really see a pattern for how these questions are handled, it seems very random. [the questions are from different years, but that also doesn't seem to play a role.]
I don't think the difference is that some demonstrate an understanding of the concepts involved
and some don't. One problem seems to be that this is rather vague.
Another problem seems to be the meaning and intention behind the close reason break the security of a specific system for you
. What is a specific system? A website? A piece of software? Code that is only used by the OP, but nowhere else?
So I think it would be good to clarify:
- how does one
demonstrate an understanding of the concepts involved
? And is this really a good part of the close reason? - what exactly is meant by
break the security of a specific system for you
? - in general, are questions like
here is my code/filter[, i tried x and y, but for reason z that doesn't work]. how to exploit this?
on-topic or off-topic? And when/why is this the case?