Skip to content

Tor 0.1.0-preview.1

Pre-release
Pre-release

Choose a tag to compare

@LaughingDragon LaughingDragon released this 25 Nov 00:50
· 10 commits to main since this release

Preview release. Package LaughingDragon.OrchardCore.ActiveDirectory 0.1.0-preview.1, built from c943f4a for Orchard Core 3.0.1 on .NET 10. The attached .nupkg and .snupkg are the files that will be pushed to NuGet; SHA256SUMS lists their hashes. Report vulnerabilities through private vulnerability reporting (Security tab), not as a public issue.

Fixes from the line-by-line security review of 0.1.0-preview, which has been done, and packaging.
The risks that remain are listed in THREAT-MODEL.md (Residual risks).

  • Package: published as LaughingDragon.OrchardCore.ActiveDirectory, with symbols, SourceLink
    and no local build paths in the assembly or the symbols. The manifest version is now the package
    version.
  • Features: the module now declares a Tor feature for the directory sign-in, and Tor
    Account
    (the account page) depends on it. Before, the module declared only Tor Account, so Orchard
    never created Tor and put the sign-in under Tor Account. Sites that had Tor Account enabled get
    Tor enabled with it as its dependency.
  • Start-up log: the number of local (break-glass) accounts configured, never their names, is
    written to Tor.Audit at start-up, with a warning when LocalAccounts is empty.
  • Documentation: the README describes the package and its two features. Configuration examples
    use neutral group and role names.
  • No caching of account responses: every response from /account, the pictures included, is
    sent with Cache-Control: private, no-store (the pictures were private, no-cache).
  • Login password limit: a password longer than 256 characters (the limit the account forms
    already had) is refused and counted as a failure before the throttle and the bind.
  • Return address: Tor now uses ASP.NET Core's own local-URL rule, so ~//host, ~/\host and
    addresses with control characters send the user to the site root instead of causing an error
    after a successful sign-in.
  • Log text: typed names in Tor.Audit and in Orchard's failure event also lose Unicode line and
    paragraph separators and format characters (for example U+2028, U+202E and zero-width spaces).
  • Settings are checked: an empty Domain, NetBiosName or Servers, a TimeoutSeconds outside
    1 to 60, or a limit or window below 1 is logged as an error at start-up, and every directory sign-in
    is then refused (not counted against the user) until it is fixed. The throttle no longer switches
    off with a zero or negative window. A warning is logged at start-up when UseLdaps is false.
  • Picture size: uploads are limited to 16 million pixels (was 40 million), which caps the
    memory one decode can take at about 64 MB. The 2 MB and 12,000-pixel limits are unchanged.
  • Throttle: a user principal name with the configured domain now shares the count of the plain
    and DOMAIN\ forms of the same account. An attempt is checked and counted in one step, so
    parallel attempts no longer pass the limit. Keys are hashed (bounded whatever was typed), the
    table has a hard cap of 50,000 windows, and a full table no longer costs a scan on every failure.
  • Break-glass answer: a refused break-glass sign-in now gets the same answer as a refused
    directory sign-in ("Invalid login attempt." and a redirect to the login page) instead of Orchard's
    login page with its own message, so a break-glass name can no longer be told apart.
  • Absolute session lifetime: every sign-in now ends 12 hours after it was made (setting
    MaxSessionHours, 1 to 720), however often it is used; the 8-hour sliding expiry still applies
    within it. Cookies issued before the upgrade count from when they were last issued. Users are
    signed out when their session reaches the limit.
  • Status text and threat model: the README, the threat model and its ASVS table describe this
    release; the residual risks are listed in THREAT-MODEL.md.