Repository navigation
Conversation
…ail.pop3.fetch Refuses partial [server] overrides so the configured server's username and password can never be forwarded to a host of the caller's choosing. A [server] node must supply host, port, secure, username and password together - enforced in the slot signature (all children required) and at runtime in Utilities.Connect for direct callers of both slots.
Adds a MaxDepth of 256 to Lambda2Html.CreateElement, mirroring the guard in html2lambda, html2markdown and xml2lambda, so deeply nested lambda objects raise a HyperlambdaException instead of overflowing the stack and killing the process.
|
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.



What
Two hardening fixes:
mail: all-or-nothing
[server]overridemail.smtp.sendandmail.pop3.fetchpreviously merged a caller-supplied[server]child with the configured server's connection settings property-by-property. A caller
overriding only
hostcould cause the server's configuredusername/passwordto betransmitted to a host of the caller's choosing.
A
[server]override must now supply all ofhost,port,secure,usernameand
password— enforced in the slot signature (all five childrenrequired:true)and at runtime in
Utilities.Connect(ValidateServerOverride) for direct callers.With a complete override, a caller can only ever submit his own credentials.
html: lambda2html depth cap
lambda2htmlrecursively converted lambda to HTML with no nesting bound, so a deeplynested lambda object could overflow the stack and kill the process
(
StackOverflowExceptionis uncatchable).Added
MaxDepth = 256, mirroring the existing guards inhtml2lambda,html2markdownandxml2lambda. Deeper input raisesHyperlambdaExceptioninstead.Tests
[server]overrides are now asserted tothrow; the full-override and no-override paths remain covered.