Repository navigation
SimplrSSH - Code Scan - 2026-10-17 - #24
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DF6UHfRUSGEc8s57ZroLLE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Findings
main/portal_client.cpp,fetch()). A 307/308 redirect keeps the request body. A sign-in page served over HTTPS could redirect a submitted form (name, email, voucher code, password fields) to anhttp://address, so it would go out unencrypted. Cookies already honourSecure, but the body did not. Impact: anyone on the joined network could read what the user typed. Exploitable by the untrusted network's own page.Other areas reviewed: command/format-string use, unsafe C string calls, crypto primitives, CI workflows (actions pinned to SHAs, minimal permissions,
inputspassed through env), the OpenAI client (CA bundle attached), and the portal client's other redirect and cookie handling. Nothing else needed a change.Plan
main/portal_client.cpp,SECURITY.md. Verify with the guard tests.Final gap analysis
libmbedtls-devcouldn't be installed, soscripts/check.shstopped at the host-test cmake step.portal_client.cppis an ESP-IDF HTTP client and isn't host-tested.Deferred
scripts/sast.sh) wasn't run locally (needs docker and an ECR login). CI's security scan will run it.Verification
cd test/guards && python3 -m unittest test_supply_chain test_firmware_rules test_rules_file test_ci_scripts: 94 tests, OK.scripts/check.sh: guards passed; host build failed (missing mbedcrypto library in this container).Generated by Claude Code