It's a constitutional challenge, not a civil action. But it can proceed according to different rules of proceedings.
Like you say, you need to have standing to make a constitutional challenge, by being directly or indirectly affected by the law. Public interest groups can also have standing if...