3177 Commits
Author SHA1 Message Date
zzz 6ad05c0ebc NetDB: Catch unchecked blinded key exceptions in BlindCache.rollover()
that could kill URKMJ,
and add javadocs to note places IAE could be thrown.
Ensure an unchecked exception does not prevent URKMJ.requeue().

partial mitigation for internal report J-017;
more validation in Blinding.decode() is recommended.
2026-11-22 13:22:25 -05:00
zzz 1f4946be80 Util: Don't truncate remaining variable to int in EepGet read loop (GH #248)
Fix exactly as in PR, with regression test omitted.
2026-11-21 12:22:26 -05:00
zzz 6f0a976931 Util: Bound EepGet chunk length parsing (GH #245)
Fix adapted and corrected from PR, with regression test omitted.
2026-11-21 12:14:10 -05:00
zzz c3add4314e Util: Fix Content-Length for UTF8 POST data (GH #244)
No known internal uses.
Fix exactly as in PR, with regression test omitted.
2026-11-21 11:38:31 -05:00
zzz 995f492521 Crypto: Add note on why duplicate reduceQuick() call is required
courtesy drzed's AI
2026-11-16 07:14:30 -05:00
zzz bebdb3aacc Crypto: Remove redundant hash in ChaCha20 wrapper (GH #220)
was already found and fixed in i2p+
This was in our wrapper code, not the core noise lib.
The hash was there for debug logging, the log was commented out
but not the hash.
See GH PR for performance improvement table.
2026-11-13 08:02:19 -05:00
zzz a1c317c73c 2.14.1 2026-11-04 11:20:56 -05:00
idk fa17f27fd3 Merge pull request #181 from bootvec/fix/fileutil-path-boundary 2026-11-01 19:51:50 -05:00
zzz 0dc3cc49ee GeoIP 2026-11-01, tor blocklist, bump build time, bump -2-rc 2026-11-01 08:12:35 -05:00
bootvecandCopilot 53a5241460 FileUtil: simplify path boundary check
Remove the redundant root equality check while preserving separator-boundary validation and handling filesystem roots.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-29 01:16:16 +03:00
zzz 134b6b0555 Data: Fix size() calculation for non-standard Destinations
using non-type-0 enc types.
These are rejected locally in I2CP but may still be found in the network
or be created in client-side code.

reported by: InsulaOcculta
2026-10-28 09:16:52 -04:00
bootvec 3b1b6fdae1 FileUtil: fix path-traversal boundary check in readFile()
The containment check used String.startsWith(rootDirStr) without a path
separator boundary. A target whose canonical path is a sibling directory
sharing the root's name prefix (e.g. root "docs" vs. "docs-old") would
incorrectly pass the check. Require the separator so only paths actually
inside the root are served.
2026-10-24 05:05:26 +03:00
eyedeekay 3c98503c5f bump version to 2.14.0 and update published version to 0.9.71 2026-10-20 11:30:28 -04:00
zzz e9edf06bf2 bump build time 2026-10-01 17:33:08 -04:00
zzz 6440d5f169 crypto: make EdDSA sig comparison constant time
Reported by: Tim C
2026-09-16 06:27:04 -04:00
zzz 73819404c5 crypto: make AES operation constant time
in deprecated/unused method

Reported by: Tim C
2026-09-16 06:25:24 -04:00
zzz 44999aa56d I2CP: API interface javadoc clarifications 2026-08-30 12:33:31 -04:00
zzz 40ad52987f Router: Ensure log gzipper finishes after shutdown signal 2026-08-29 12:17:50 -04:00
zzz 8752b8d0ae I2CP: Add new discardMessage() to session API
to avoid decompression overhead on messages with no match
in the demuxer.

Log hexdump of discarded message if enabled
2026-08-26 12:08:29 -04:00
zzz 013ba1842e Build: Recognize gettext version 1.0
for fast-mode msgfmt.
In forky/stonking.
Adapted from fix courtesy I2P+
2026-08-11 09:13:17 -04:00
zzz 4dd77de204 I2CP: check if limiter enabled before calling updateBps()
micro-optimization
2026-08-10 12:27:21 -04:00
zzz 8511323dea Build: Revert VERSION back to 2.13.0, that was just for debian 2026-08-02 07:11:41 -04:00
zzz 1bd863c606 Crypto: Add SKMType enum (WIP)
for more efficient classification of SKMs
2026-08-01 08:32:57 -04:00
zzz 40a17115a5 Util: Improve eephead CLI error output 2026-07-28 17:28:05 -04:00
zzz e95ae8cc68 Datagram: handle empty repliable datagram payload
Datagram 1, as allowed by spec.

(from GH PR #164 by acetone)
2026-07-27 16:15:25 -04:00
eyedeekay ea8f279473 Check in new debian changelogs and bump 2.13.1 to allow uploading a new orig.tar.bz2 to launchpad 2026-07-26 22:02:04 -04:00
zzz 55582e46c4 Util: Add time format method that replaces UTF-8 spaces with regular ones
and use in some logging and config file calls. Undoes Java 20 change.
2026-07-25 10:11:16 -04:00
zzz e6b344ba45 Remove references to deprecated ThreadDeath exception 2026-07-25 09:19:21 -04:00
eyedeekay 9134f80833 Update changelog and build files to release 2.13.0 2026-07-20 00:55:58 -04:00
zzz 91ecaf1a19 Util: DoH server list update 2026-07-16 18:32:55 -04:00
zzz 6408c3b692 DG2: Remove unused variable 2026-07-03 13:32:28 -04:00
zzz f581d3d723 Crypto: Fix unused TrustedUpdate.verify() method
which takes a public key file as an argument.
Update CLI tool to use and test it.
Broken since the beginning.

Adapted from fix in I2PPlus
2026-07-03 13:28:17 -04:00
zzz b24aae44c7 Datagram2: Fix validation with offline keys
Fix main() test
Adapted from fix in I2PPlus
2026-07-03 10:36:16 -04:00
zzz e104ca71f6 Lint: Change replace(String) to replace(char) all over 2026-06-06 10:43:59 -04:00
zzz 2de2741e4d I2CP: Length check exception message improvement 2026-05-29 13:51:13 -04:00
zzz 9399698c10 Util: Fix eepget/eephead CLI not honoring timeout option
reported by: RN
2026-05-27 14:05:01 -04:00
zzz a403278fe6 Util: eqCT() null check 2026-05-11 07:37:25 -04:00
zzz a4afe588f3 Util: Use constant-time comparison in various password checkers
reported by: bottomlineit.co.za
2026-05-08 15:02:22 -04:00
zzz 85854c5454 Javadoc fix (json-simple)
fixed 6 years ago but got reverted in the update to 2.3.1
2026-05-06 17:29:04 -04:00
zzz 05438ab51d Util: Set minidns fields to final
reported by: bottomlineit.co.za
2026-05-04 17:22:15 -04:00
zzz 57e8f8c1cf Util: Remove useless synchronized on no-op method
reported by: bottomlineit.co.za
2026-05-01 13:15:11 -04:00
zzz 41647e94f0 I2CP: Wait for queue space on internal queue close()
reported by: bottomlineit.co.za
2026-05-01 13:10:19 -04:00
zzz 66a270e7a2 Crypto: Use constant-time modPow() for ElG private key operations
Deprecate unused ElGamalSigEngine

reported by: bottomlineit.co.za
2026-05-01 11:34:28 -04:00
zzz 93be42925b Util: Update json-simple to 2.3.1
from https://github.com/cliftonlabs/json-simple.git tag json-simple.2.3.1 2018-02-05

Fixes:
- Jsoner.serialize array off-by-one deterministic crash on 9 primitive/Object array branches

reported by: bottomlineit.co.za
2026-04-30 20:17:28 -04:00
zzz dafde0c327 Util: Update minidns to 1.1.1
from https://github.com/MiniDNS/minidns tag 1.1.1 2024-10-24

Possible fixes (unverified):
- MiniDNS per-RR parsers throw NegativeArraySizeException on malformed header
- DnsName.parse recurses per label without depth bound StackOverflow DoS
- DnsName parser throws AIOOBE (not IOException) on truncated pointer
- ipv4From / ipv6From resolve via DNS instead of parsing literals
- Question constructor uses assert for null checks
- DnsMessage pre-allocates ArrayLists from 16-bit header counts
- OPT.parse uses dis.read() and disabled assert for bounds

reported by: bottomlineit.co.za
2026-04-30 19:06:49 -04:00
zzz 051dccf4b1 Util: Revert change causing failed decode of compressed IPv6 addresses
partial revert of aa77c9a4ab

reported by: bottomlineit.co.za
2026-04-30 18:21:33 -04:00
zzz bb49736b33 Crypto: Disallow DSA-SHA1 signing k=q
reported by: bottomlineit.co.za
2026-04-25 17:47:20 -04:00
zzz aa77c9a4ab Router: Don't use InetAddress.getByName() for blocklist IP conversion
to make really sure we don't use DNS, and it's slow anyway.

reported by: bottomlineit.co.za
2026-04-25 17:03:13 -04:00
zzz 20a10ae0ae Crypto: Change RFC 7748 DH error to a checked exception
so things are cleaned up properly
2026-04-25 15:22:21 -04:00
zzz b9bdce41a0 Add missing file for I2CP, bump -2 2026-04-25 10:57:31 -04:00