Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False positive - Websites must specify the HttpOnly attribute on sensitive cookies #18119

Open
markwallace-microsoft opened this issue Nov 26, 2024 · 1 comment

Comments

@markwallace-microsoft
Copy link

Description of the false positive

We got 5000 "Websites must specify the HttpOnly attribute on sensitive cookies" errors reported in our repo against C# code.

Here is an example:

dotnet/samples/Concepts/Agents/ChatCompletion_FunctionTermination.dotnet/samplescs:135

        // Local function to invoke agent and display the conversation messages.
        async Task InvokeAgentAsync(string input)
        {
            ChatMessageContent message = new(AuthorRole.User, input);
HttpOnly attribute is missing or not set to true on the Http Cookie
CodeQL
            chat.Add(message);
            this.WriteAgentChatMessage(message);

https://github.com/microsoft/semantic-kernel/security/code-scanning/195

@LittleLittleCloud
Copy link

LittleLittleCloud commented Nov 26, 2024

We also got 3000+ "Websites must specify the HttpOnly attribute on sensitive cookies" errors reported in our repo against C# code since this commit: bcd6e71e7f762c94d6e2c5a48d4e9856aa46da59

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

No branches or pull requests

2 participants