Repository navigation
Conversation
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.
Adds an experimental C# CodeQL query for ASP.NET forms authentication configured with
protection="None". In legacy cryptographic mode, this disables ticket encryption and validation, allowing user impersonation.Detection: Reports the exact, case-sensitive
protection="None"value on<forms>under<authentication mode="Forms">inWeb.configandWeb.<name>.config. An omitted mode defaults toWindowsand is not reported. The query declareshighprecision and is selected by the default C# suite, not the audit or external API suites.Query help: Recommends
protection="All"or omitting the attribute to use the default. Example reported configuration:Coverage: Four expected alerts cover plain, location-scoped, namespaced, and transform configurations. Negative fixtures cover protected values and defaults, other modes, invalid spellings, misplaced elements, and non-web configuration files.
Verification: CodeQL 2.27.5 matched all four expected rows. Formatting, compilation with
--warnings=error, help generation, suite selection, and query ID uniqueness passed.Performance: The unit-test database profile took 255 ms. Path splitting (42 ms) and absolute-path resolution (33 ms) were the slowest predicates.
Known limitations: Configuration inheritance and transforms are not evaluated. A synthetic
Framework45configuration produced a false positive: that mode encrypts and signs tickets regardless ofprotection.Real project true positive
To be added by the maintainer.
Follow-ups
Framework45mode and add a negative regression case before merge.