xploitscan-shared-rules 1.23.0 → 1.24.0

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.cjs CHANGED
@@ -227,6 +227,7 @@ __export(index_exports, {
227
227
  pathTraversal: () => pathTraversal,
228
228
  pickleDeserialization: () => pickleDeserialization,
229
229
  piiInLogs: () => piiInLogs,
230
+ proOnlyRules: () => proOnlyRules,
230
231
  prototypePollution: () => prototypePollution,
231
232
  pyDjangoAllowedHostsWildcard: () => pyDjangoAllowedHostsWildcard,
232
233
  pyDjangoMarkSafe: () => pyDjangoMarkSafe,
@@ -9237,6 +9238,10 @@ var allCustomRules = [
9237
9238
  entitlementFromWebStorage,
9238
9239
  accountStateFromWebStorage
9239
9240
  ];
9241
+ var proOnlyRules = (() => {
9242
+ const freeIds = new Set(freeRules.map((r) => r.id));
9243
+ return allCustomRules.filter((r) => !freeIds.has(r.id));
9244
+ })();
9240
9245
  function runCustomRules(content, filePath, disabledRules = [], tier = "free", extraRules = [], project) {
9241
9246
  const findings = [];
9242
9247
  if (/function runScan\(files\)|export function runCustomRules/.test(content) && /const (?:rules|allRules)\s*[:=]/.test(content) && /findMatches/.test(content)) {
@@ -10147,6 +10152,7 @@ function extractScriptUrls(html, pageUrl, limit = 12) {
10147
10152
  pathTraversal,
10148
10153
  pickleDeserialization,
10149
10154
  piiInLogs,
10155
+ proOnlyRules,
10150
10156
  prototypePollution,
10151
10157
  pyDjangoAllowedHostsWildcard,
10152
10158
  pyDjangoMarkSafe,