Skip to content

[New Query - githubsecuritylab/cs/forms-auth-ticket-protection-disabled] - detect forms authentication tickets that are neither encrypted nor validated - #269

Draft
felickz wants to merge 2 commits into
mainfrom
copilot/githubsecuritylabcsforms-auth-ticket-protection-di
Draft

felickz wants to merge 2 commits into
mainfrom
copilot/githubsecuritylabcsforms-auth-ticket-protection-di

Conversation

@felickz

@felickz felickz commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Detects ASP.NET forms authentication configurations that disable both encryption and validation of authentication tickets, allowing ticket forgery and user impersonation.

  • Detection: Reports exact protection="None" values under authentication mode="Forms" in Web.config and Web.<name>.config files. The query is experimental and has high precision.
  • Limitations: Configuration inheritance and transformations are not evaluated.
  • Coverage: Tests unprotected, location-scoped, namespaced, and transformed configurations, along with protected settings, other modes, invalid spellings, misplaced elements, and non-web configuration files.
  • Verification: The targeted test passed with four expected results. Formatting, warning-free compilation, help generation, suite selection, and ID uniqueness checks passed. The CodeQL security checker timed out.

Example reported configuration:

<authentication mode="Forms">
  <forms protection="None" />
</authentication>

Real project true positive

To be added by the maintainer.

Copilot AI balanced review requested due to automatic review settings November 25, 2026 19:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 25, 2026 19:27
@felickz felickz changed the title [WIP] Add experimental query for forms authentication without ticket protection [New Query - githubsecuritylab/cs/forms-auth-ticket-protection-disabled] - detect forms authentication tickets that are neither encrypted nor validated Nov 25, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Required real-project true-positive evidence remains pending maintainer validation, and query-pack test, compile, query-help, and suite-resolution results are unavailable.

No open issues 🎉

Review effort: Balanced

@felickz
felickz added this pull request to stack #273 November 26, 2026 06:15
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.

C#: add a query for forms authentication with the ticket protection disabled

3 participants