Skip to content

[Security] License-server lease over http:// transmits user and machine name in cleartext; warn and allow opt-out #63

Description

Security / Privacy

When a license server is configured with an http:// URL (rather than https://), PostSharp fetches the license lease over plaintext HTTP. The lease request includes the current Windows user name and machine name as query-string parameters, so these identifiers are transmitted in cleartext and are observable by anyone able to sniff the network path between the build machine and the license server.

License-server URL validation currently accepts both http and https schemes without distinction, so an http:// configuration is silently used as-is with no indication that the connection is unencrypted.

Proposed change

  • When a license-server URL uses the http scheme, emit a build warning (a new LicensingMessageSource diagnostic) advising the administrator to use https:// because the request transmits the user and machine names in cleartext.
  • Add an MSBuild property (e.g. PostSharpAllowInsecureLicenseServer, defaults to Warning, when set to Allow suppresses this specific warning, for environments where an internal http:// license server is a deliberate, accepted configuration. The value Error fails the build.

The change is additive and non-breaking: http:// license servers continue to work; the only new behavior is an opt-out-able warning.

  • Claude for Gael

Activity

  1. gfraiteur commented on Jun 27, 2026

    @gfraiteur
    MemberAuthor

    Released in v2024.0.24.

    -- Claude for Gael

  2. gfraiteur commented on Jun 27, 2026

    @gfraiteur
    MemberAuthor

    Also released in v2026.0.13, which includes the upstream 2024.0.24 changes.

    -- Claude for Gael

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions