diff --git a/javascript-checks/src/main/resources/org/sonar/l10n/javascript/rules/javascript/S4125.json b/javascript-checks/src/main/resources/org/sonar/l10n/javascript/rules/javascript/S4125.json index 33eb0413212..34e7a333897 100644 --- a/javascript-checks/src/main/resources/org/sonar/l10n/javascript/rules/javascript/S4125.json +++ b/javascript-checks/src/main/resources/org/sonar/l10n/javascript/rules/javascript/S4125.json @@ -13,5 +13,6 @@ "scope": "All", "quickfix": "unknown", "compatibleLanguages": [ - "JAVASCRIPT" ] + "JAVASCRIPT" + ] } diff --git a/javascript-checks/src/main/resources/org/sonar/l10n/javascript/rules/javascript/S5542.html b/javascript-checks/src/main/resources/org/sonar/l10n/javascript/rules/javascript/S5542.html index fddde791294..24db10f5913 100644 --- a/javascript-checks/src/main/resources/org/sonar/l10n/javascript/rules/javascript/S5542.html +++ b/javascript-checks/src/main/resources/org/sonar/l10n/javascript/rules/javascript/S5542.html @@ -1,15 +1,16 @@ -

Encryption operation mode and the padding scheme should be chosen appropriately to guarantee data confidentiality, integrity and authenticity:

+

Encryption operations should use a secure mode and padding scheme so that confidentiality and integrity can be guaranteed.

diff --git a/javascript-checks/src/main/resources/org/sonar/l10n/javascript/rules/javascript/S5852.html b/javascript-checks/src/main/resources/org/sonar/l10n/javascript/rules/javascript/S5852.html index 25b51f8d475..c58e60a88ef 100644 --- a/javascript-checks/src/main/resources/org/sonar/l10n/javascript/rules/javascript/S5852.html +++ b/javascript-checks/src/main/resources/org/sonar/l10n/javascript/rules/javascript/S5852.html @@ -84,8 +84,8 @@

See

  • MITRE, CWE-1333 - Inefficient Regular Expression Complexity
  • owasp.org - OWASP Regular expression Denial of Service - ReDoS
  • -
  • stackstatus.net - Outage Postmortem - July 20, 2016 -
  • +
  • stackstatus.net(archived) - Outage Postmortem - July 20, 2016
  • regular-expressions.info - Runaway Regular Expressions: Catastrophic Backtracking
  • Thus, having only one character in a character class is usually a simple oversight that remained after removing other characters of the class.

    Noncompliant Code Example

    -"a[b]c"
    -"[\\^]"
    +/a[b]c/
    +/[\^]/
     

    Compliant Solution

    -"abc"
    -"\\^"
    -"a[*]c" // Compliant, see Exceptions
    +/abc/
    +/\^/
    +/a[*]c/ // Compliant, see Exceptions
     

    Exceptions

    This rule does not raise when the character inside the class is a metacharacter. This notation is sometimes used to avoid escaping (e.g., diff --git a/sonarpedia.json b/sonarpedia.json index 3cf98f2910e..87746c8fd2a 100644 --- a/sonarpedia.json +++ b/sonarpedia.json @@ -3,7 +3,7 @@ "languages": [ "JS" ], - "latest-update": "2022-05-30T09:13:12.414059Z", + "latest-update": "2022-06-24T11:52:42.803533300Z", "options": { "no-language-in-filenames": true, "preserve-filenames": true