Skip to content

more security hardening#3792

Merged
awick merged 4 commits into
mainfrom
opus-improvements-14
Mar 11, 2026
Merged

more security hardening#3792
awick merged 4 commits into
mainfrom
opus-improvements-14

Conversation

@awick

@awick awick commented Mar 11, 2026

Copy link
Copy Markdown
Contributor

capture:

  • reader-scheme.c: Fix possible heap overflow in NG_INTERFACE state where blockSize was double-decremented during partial reads
  • tls.c/dtls.c: Fix JA4 counter wraparound — widen counters from uint8_t to uint16_t and add ARRAY_LEN bounds checks on array writes

viewer:

  • apiHunts.js: Require S2S auth for remoteHunt endpoint; replace query_string with multi_match to prevent ES query injection via searchTerm
  • apiSessions.js: encodeURIComponent on tags in sendSessionsList URL
  • viewer.js: Validate x-arkime-auth cryptographically for receiveSession; add packetSearch permission to remoteHunt route
  • internals.js: Default uploadFileSizeLimit to 2GB

common:

  • user.js: Allowlist sortUsers fields to prevent sorting by password hash

wiseService:

  • source.splunk.js: Escape SPL metacharacters in search term
  • source.threatstream.js: Replace exec() with execFile() to prevent shell injection

License

I confirm that this contribution is made under an Apache 2.0 license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

awick and others added 4 commits March 11, 2026 08:59
capture:
- reader-scheme.c: Fix possible heap overflow in NG_INTERFACE state where
  blockSize was double-decremented during partial reads
- tls.c/dtls.c: Fix JA4 counter wraparound — widen counters from
  uint8_t to uint16_t and add ARRAY_LEN bounds checks on array writes

viewer:
- apiHunts.js: Require S2S auth for remoteHunt endpoint; replace
  query_string with multi_match to prevent ES query injection via
  searchTerm
- apiSessions.js: encodeURIComponent on tags in sendSessionsList URL
- viewer.js: Validate x-arkime-auth cryptographically for
  receiveSession; add packetSearch permission to remoteHunt route
- internals.js: Default uploadFileSizeLimit to 2GB

common:
- user.js: Allowlist sortUsers fields to prevent sorting by password
  hash

wiseService:
- source.splunk.js: Escape SPL metacharacters in search term
- source.threatstream.js: Replace exec() with execFile() to prevent
  shell injection

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- viewer/apiHistory.js — query_string → multi_match + deleteHistory index validation
- cont3xt/db.js — query_string → multi_match + sortBy/sortOrder allowlist
- cont3xt/integration.js — JSON.parse try-catch with logging
- cont3xt/linkGroup.js — URL scheme validation (http/https only)
- capture/parsers/http2.c — negative inlen guard in PUSH_PROMISE
- viewer/apiHunts.js — multi_match → wildcard on ['name', 'userId']
- viewer/apiHistory.js — multi_match → wildcard on ['expression', 'userId', 'api', 'view.name', 'view.expression']
- cont3xt/db.js — multi_match → wildcard on ['indicator', 'iType', 'tags']
@awick awick merged commit 6235d67 into main Mar 11, 2026
15 checks passed
@awick awick deleted the opus-improvements-14 branch March 11, 2026 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant