-
Notifications
You must be signed in to change notification settings - Fork 172
low-severity hardening, encode/decode validation, credential/payload zeroization, and SN/example fixes #560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
717e53e
F-6046 - Reset the SN shared object instead of the generic message ob…
aidangarske 623b7af
F-6219 - Validate exact length in SN_Decode_PublishResp
aidangarske 6bcdace
F-6483 - Bound the SN PINGREQ client id to prevent length narrowing
aidangarske 8a18f2a
F-6482 - Echo the received PUBLISH TopicId in the MQTT-SN PUBACK
aidangarske 5205fca
F-3389 - Skip v5 property-stack shutdown when MqttClient_DeInit gets …
aidangarske b8357ba
F-6653 - Zero-fill the encoded data field when the payload pointer is…
aidangarske 31ff000
F-4774 - Bound assigned client id copy by decoded length in mqttclient
aidangarske 6e76371
F-4930 - Bound assigned client id copy by decoded length in nbclient
aidangarske af8123c
F-4998 - Bound assigned client id copy by decoded length in mqtt-pub
aidangarske 0b77268
F-4999 - Bound assigned client id copy by decoded length in mqtt-sub
aidangarske f5326a4
F-2025 - Force-zero broker client credentials on static-memory free
aidangarske ab5f47e
F-6049 - Wipe the persist AES key cache unconditionally on broker free
aidangarske 392a99d
F-2024 - Force-zero broker will buffers on static-memory ClearWill
aidangarske ef1ddfd
F-2026 - Force-zero retained message on static-memory delete
aidangarske ff9c8e9
F-2027 - Force-zero retained messages on static-memory free-all
aidangarske 0fef1f2
F-3830 - Force-zero pending wills on static-memory cleanup
aidangarske 9519460
F-4524 - Scrub each subscriber tx_buf after forwarding an immediate will
aidangarske db2b3aa
F-6051 - Force-zero retained payloads before free on dynamic-memory p…
aidangarske a71f43b
F-6657 - Force-zero broker out-queue payloads before free
aidangarske bdc73ec
F-6226 - Force-zero decrypted persist payloads before free
aidangarske 9cdcc1e
F-6490 - Force-zero persist serialization buffers before free
aidangarske 80a00b2
F-3822 - Reject reserved QoS in MqttEncode_Publish
aidangarske 1e81241
F-3828 - Reject per-topic QoS above 2 in MqttEncode_Subscribe
aidangarske ce373d8
F-2753 - Reject zero-topic SUBSCRIBE and UNSUBSCRIBE encode
aidangarske 2ae0159
F-4055 - Require a non-zero packet id in MqttEncode_PublishResp
aidangarske 9a753bb
F-4526 - Validate the Will Topic name in MqttEncode_Connect
aidangarske 55e67e1
F-4522 - Reject reserved Will QoS in MqttEncode_Connect
aidangarske 58860cd
F-4525 - Normalize protocol level 0 before encoding CONNECT
aidangarske 0ade8fc
F-6489 - Reject reserved ConnectAck flag bits
aidangarske 74c30c0
F-3629 - Require an Authentication Method property when encoding AUTH
aidangarske 5c80dc0
F-2758 - Default v5 DISCONNECT reason code when remaining length is zero
aidangarske b2f3714
F-6048 - Validate v5 UNSUBACK reason codes
aidangarske 4c2aad2
F-6228 - Validate v5 property values in MqttEncode_Props
aidangarske f001cf6
F-5507 - Validate topic filters in SUBSCRIBE and UNSUBSCRIBE encode
aidangarske bd1612d
F-5667 - Reject v5 request-info property values above 1
aidangarske df9001b
F-6652 - Reject an empty v5 Topic Name without a Topic Alias
aidangarske 6f36226
F-6218 - Treat retain as truthy in the retain-availability guard
aidangarske 75bb05f
F-3139 - Guard property length underflow in MqttDecode_Props
aidangarske b396b96
F-3824 - Reject an over-long remaining-length VBI without an extra so…
aidangarske 1bcd0bb
F-2759 - Compare broker credentials with a bounded constant-time length
aidangarske 455707f
F-4306 - Return Packet-Identifier-Not-Found for untracked QoS2 PUBREL
aidangarske ad5b0b3
F-4519 - Deliver retained messages using the full subscription filter
aidangarske fbfae69
F-5666 - Force-zero tx_buf after encoding v5 DISCONNECT
aidangarske 0a65851
F-5504 - Scrub tx_buf in MqttClient_CancelMessage
aidangarske 06be735
F-2361 - Decode fixed-header remaining length via a typed word32 temp…
aidangarske 763e3ba
F-2364 - Decode packet-read remaining length via a typed word32 tempo…
aidangarske 6e24875
F-2365 - Decode property identifier via a typed word32 temporary
aidangarske 32b8a5e
F-4521 - Reject a negative cmd_timeout_ms in MqttClient_Init
aidangarske 6f846d9
F-4520 - Emit the plaintext-credentials warning in production builds
aidangarske 0c14280
F-6040 - Reject a SUBACK whose return-code count differs from topic c…
aidangarske 539709a
F-6041 - Reject a publish with buffer set but zero total length
aidangarske cead46f
F-5772 - Stream signed firmware from memory to close fwpush reopen TO…
aidangarske 7575b76
F-3396 - Encode AUTH with the Success reason code
aidangarske 13699b2
F-5770 - Guard firmware message length against integer overflow
aidangarske File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.