xploitscan-shared-rules 1.28.0 → 1.28.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -11014,7 +11014,7 @@ function collectWrites(src) {
11014
11014
  }
11015
11015
  var ENQUEUES = /\b(?:queue\s*\.\s*add|inngest\s*\.\s*send|qstash|boss\s*\.\s*send|after\s*\(|waitUntil\s*\(|\.\s*enqueue\s*\(|\.\s*publish\s*\(|\.\s*sendMessage\s*\(|outbox|dead[_-]?letter|deadLetter|retryQueue|scheduleRetry|schedule\s*\()/i;
11016
11016
  var NON_2XX = /\bstatus\s*:\s*[45]\d\d|\.\s*status\s*\(\s*[45]\d\d|\bsendStatus\s*\(\s*[45]\d\d|\bHTTPException\s*\(\s*[45]\d\d|new\s+Response\s*\([^)]{0,200}?\b[45]\d\d/;
11017
- var STALENESS = /\b(?:lt|lte|gt|gte|older|stale|timeout|timedout|retry|retries|attempt|attempts|updated_?at|created_?at|processed_?at|last_?\w+|since|interval|Date\.now|now\s*\(\s*\))\b/i;
11017
+ var STALENESS = /\b(?:lt|lte|gt|gte|older|stale|timeout|timedout|retry|retries|attempt|attempts|updated_?at|created_?at|processed_?at|last_?\w+|since|interval|current_?timestamp)\b|\bDate\.now\b|\bnow\s*\(|\bdate(?:time)?\s*\(|\bdate_?sub\s*\(|['"`]\s*now\s*['"`]/i;
11018
11018
  var READ_VERB = /\b(?:select|from|find\w*|query|scan|rows|fetchAll|getAll|list)\b/i;
11019
11019
  function repoReselects(files, originPath, originIndex, table, value) {
11020
11020
  const tableToken = table.replace(/["'`]/g, "");