question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rule idea: Multiple parameters with the same name

See original GitHub issue

_Issue originally created by user dune73 on date 2016-07-12 04:34:42. Link to original issue: https://github.com/SpiderLabs/owasp-modsecurity-crs/issues/400._

Can we do a rule that checks if a parameter name has been submitted multiple times? I think this should be possible with a counter as TX:paramcounter_<param-name> and then check @gt on TX:/^paramcounter_.*/.

Naturally, this would be a PL3 or PL4 rule.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:17

github_iconTop GitHub Comments

1reaction
CRS-migration-botcommented, May 13, 2020

User dune73 commented on date 2016-07-12 14:08:24:

The overhead was another reason I would prefer to keep this at a higher PL. 😉

1reaction
CRS-migration-botcommented, May 13, 2020

User marcstern commented on date 2016-07-12 07:43:58:

It's not because I'm not USING the CRS that I'm not following them
;-)

On 12-07-2016 08:58, Christian Folini
  wrote:



  **csanders**-git
    I think your approach does not work, because TX.0 is always the
    last match and your first rule in the chain is first executed
    for all ARGS_NAMES and then the second rule in the
    chain is executed for all ARGS_NAMES that matched on the first
    rule with the last ARGS_NAME which matched in TX.0.
  **marcstern** Exactly the idea I had in
    mind. Thank you for the proof of concept of the idea. 
    I think the rule with 2 is not really necessary, or is it. (Good
    to read you here. I was not aware you were following the CRS.)
  —
    You are receiving this because you were mentioned.
    Reply to this email directly, view
      it on GitHub, or mute
      the thread.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Rule idea: Multiple parameters with the same name · Issue #400
Can we do a rule that checks if a parameter name has been submitted multiple times? I think this should be possible with...
Read more >
Rearrange code | IntelliJ IDEA Documentation - JetBrains
You can rearrange your code according to the arrangement rules set in the Code Style page of the Settings/Preferences dialog.
Read more >
Correct way to pass multiple values for same parameter name ...
b) Use the ASCI encoding for a comma. c) Use a different character, ;|¦¬ , etc. d) State that a comma cannot be...
Read more >
Effective Dart: Design
CONSIDER omitting the verb for a named boolean parameter. This refines the previous rule. For named parameters that are boolean, the name is...
Read more >
Robot Framework User Guide
Although this section mostly uses term test, the same rules apply also when creating tasks. ... Named-only arguments; Arguments embedded to keyword names....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found