Skip to content

Improve Content-Length parsing & error handling, Reimplement Nonce::inc() for security#1144

Closed
Xorlent wants to merge 5 commits into
HomeSpan:masterfrom
Xorlent:master
Closed

Improve Content-Length parsing & error handling, Reimplement Nonce::inc() for security#1144
Xorlent wants to merge 5 commits into
HomeSpan:masterfrom
Xorlent:master

Conversation

@Xorlent

@Xorlent Xorlent commented Jan 28, 2026

Copy link
Copy Markdown

HAP.cpp:

  1. Rewrite Nonce::inc() to use all bytes (4-11) to prevent nonce reuse
  2. Improved Content-Length validation and error handling
  3. Fix potential buffer overflow when testing decrypted content length

Network.cpp:

  1. During serial Wi-Fi configuration, verify broadcasted SSID string length to guard against overflow and prompt user to select a different SSID if necessary

HomeSpan.cpp:

  1. Even if ETH interface is initialized, we need access to an entropy source, so we set Wi-Fi station mode during HomeSpan initialization.

…nc() for security

Rewrite Nonce::inc() to use all bytes (4-11) to prevent nonce reuse
Improved Content-Length validation and error handling
Fix potential buffer overflow when testing decrypted content length
@Xorlent

Xorlent commented Jan 31, 2026

Copy link
Copy Markdown
Author

Hi Gregg, please let me know if you would prefer I submit this merge request against the dev branch.

Thanks!

During serial configuration, verify broadcasted SSID string length to guard against overflow, prompt user to select a different SSID
Even if ETH interface is initialized, we need access to an entropy source, so we set Wi-Fi station mode during HomeSpan initialization.
@Xorlent Xorlent closed this by deleting the head repository Mar 14, 2026
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