Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .jules/sentinel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## 2025-01-09 - Hardcoded Cipher Suite
**Vulnerability:** The `entrypoint.sh` script hardcoded `DHE-RSA-AES256-SHA` as the only allowed cipher suite using `ServerCipherSet`.
**Learning:** This restriction prevents users from utilizing modern, stronger ciphers like `AES256-GCM-SHA384` (TLS 1.2) unless they modify the entrypoint script. Hardcoding security configurations limits adaptability and improvements.
**Prevention:** Always expose security parameters (like cipher suites, protocols, key lengths) as configuration variables (env vars) with secure defaults.
3 changes: 2 additions & 1 deletion copyables/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,10 @@ if [ ! -f $CONFIG ] || [ ! -s $CONFIG ]; then

# while-loop to wait until server comes up
# switch cipher
: ${CIPHER_SUITES:='DHE-RSA-AES256-SHA'}
while :; do
set +e
vpncmd_server ServerCipherSet DHE-RSA-AES256-SHA 2>&1 >/dev/null
vpncmd_server ServerCipherSet "${CIPHER_SUITES}" 2>&1 >/dev/null
[[ $? -eq 0 ]] && break
set -e
sleep 1
Expand Down