@anonympins/fingerprint 0.8.1 → 0.8.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,32 @@
1
+ ## Version 0.8.2
2
+
3
+ - 🌐 **Federated whitelist synchronization (`share_whitelist`)**:
4
+ - Implementation of the decentralized whitelist sharing protocol (`share_whitelist`) across all runtimes (JavaScript, Python, Java, PHP).
5
+ - Asymmetric cryptographic Ed25519 signature and verification (`signature_ed25519`) with strict timestamps and anti-replay tolerance window (5 minutes).
6
+ - Cross-node synchronization of trusted entries (IP addresses, CIDR subnets, and User-Agents) associated with a validity duration (TTL) capped at 7 days.
7
+ - Security guardrails strictly prohibiting the broadcast of permissive wildcards or dangerous open masks (`*`, `0.0.0.0/0`, `::/0`).
8
+
9
+ - 🐍 **Python: race condition fixes and LRU cache**:
10
+ - **Resolution of race condition (PAT & token nonces)**: secured concurrent access in `PatValidator` via conditional atomic acquisition (`set_nx`) of nonces in the store, neutralizing bypasses via simultaneous requests.
11
+ - **LRU cache on network lookup**: added `@lru_cache(maxsize=4096)` decorator to `AsnLookupEngine.lookup` to cache recurring IPv4/IPv6 address resolutions and alleviate Patricia Trie traversal overhead under heavy load.
12
+ - **Memory and fast-path optimization**: reliable periodic pruning of the local fast-path cache (`_fast_path_cache`) and non-blocking cleanup of IP tracking structures.
13
+
14
+ - ☕ **Java: classpath HTML template support**:
15
+ - Added support for the `classpath:` prefix in the `challengePagePath` option in `ChallengeUtils.generateCombinedPoWChallengePage`.
16
+ - Direct loading of custom HTML templates from internal JAR/WAR resources via `getResourceAsStream`, with transparent fallback to the standard filesystem.
17
+
18
+ - 🔌 **WordPress: HTML template editor for challenges**:
19
+ - Integrated a dedicated editor in the WordPress administration interface to customize the PoW interception challenge page HTML.
20
+ - Support and replacement of engine placeholders (`<!-- FINGERPRINT_SOLVER_SCRIPT -->`, `<!-- FINGERPRINT_CHALLENGE_SCRIPT -->`, `<!-- FINGERPRINT_TRAPS -->`).
21
+ - Secure persistence of template customizations in the options table with capability and permission checks.
22
+
23
+ - 🛡️ **WordPress Plugin Check compliance**:
24
+ - Full audit and code cleanup adhering to the official *WordPress Plugin Check* requirements.
25
+ - Hardened output escaping (`esc_html`, `esc_attr`, `esc_url`) and input sanitization.
26
+ - Resolved static analysis warnings regarding user capabilities and security nonces.
27
+
28
+ ---
29
+
1
30
  ## Version 0.8.1
2
31
 
3
32
  - 🎟️ **Private Access Tokens (PAT / Privacy Pass) Evaluation (RFC 9578)**:
package/README.md CHANGED
@@ -91,7 +91,7 @@ In your **pom.xml**, add :
91
91
  <dependency>
92
92
  <groupId>com.anonympins</groupId>
93
93
  <artifactId>fingerprint-engine</artifactId>
94
- <version>0.8.1</version>
94
+ <version>0.8.2</version>
95
95
  </dependency>
96
96
  ```
97
97
  ## Documentation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anonympins/fingerprint",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "description": "Advanced anti-bot library for Node.js using multi-layer fingerprinting (JA3, client-side, headers), behavioral analysis, and adaptive Proof-of-Work (PoW) challenges to mitigate scraping, scalping, and automated threats.",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -82,7 +82,8 @@
82
82
  "overrides": {
83
83
  "body-parser": "2.3.0",
84
84
  "qs": "6.16.0",
85
- "fast-uri": "3.1.8"
85
+ "fast-uri": "3.1.8",
86
+ "brace-expansion": "1.1.21"
86
87
  },
87
88
  "peerDependencies": {
88
89
  "ioredis": "^5.3.2",