From c7b16a043e78ed2696fc7400096fee3aa2f87df8 Mon Sep 17 00:00:00 2001 From: Joe Farebrother Date: Wed, 19 Nov 2025 06:01:30 +0000 Subject: [PATCH] Address reviews - update comments, remove unneeded stubs --- go/ql/lib/semmle/go/concepts/HTTP.qll | 8 +- .../go/security/CookieWithoutHttpOnly.qll | 2 +- .../go/security/CookieWithoutSecure.qll | 2 +- .../github.com/gorilla/sessions/stub.go | 75 ------------------- .../Security/CWE-1004/vendor/modules.txt | 3 - .../github.com/gorilla/sessions/stub.go | 75 ------------------- .../Security/CWE-614/vendor/modules.txt | 3 - 7 files changed, 6 insertions(+), 162 deletions(-) delete mode 100644 go/ql/test/query-tests/Security/CWE-1004/vendor/github.com/gorilla/sessions/stub.go delete mode 100644 go/ql/test/query-tests/Security/CWE-614/vendor/github.com/gorilla/sessions/stub.go diff --git a/go/ql/lib/semmle/go/concepts/HTTP.qll b/go/ql/lib/semmle/go/concepts/HTTP.qll index 12ec551696a..479cc19bfcc 100644 --- a/go/ql/lib/semmle/go/concepts/HTTP.qll +++ b/go/ql/lib/semmle/go/concepts/HTTP.qll @@ -427,10 +427,10 @@ module Http { /** Provides a class for modeling the new APIs for writes to options of an HTTP cookie. */ module CookieOptionWrite { /** - * A write to an HTTP cookie object. + * A write to an option of an HTTP cookie object. * * Extend this class to model new APIs. If you want to refine existing API models, - * extend `HTTP::CookieOptions` instead. + * extend `HTTP::CookieOptionWrite` instead. */ abstract class Range extends DataFlow::Node { /** Gets the node representing the cookie object for the options being set. */ @@ -451,10 +451,10 @@ module Http { } /** - * A write to an HTTP cookie object. + * A write to an option of an HTTP cookie object. * * Extend this class to refine existing API models. If you want to model new APIs, - * extend `HTTP::CookieOptions::Range` instead. + * extend `HTTP::CookieOptionWrite::Range` instead. */ class CookieOptionWrite extends DataFlow::Node instanceof CookieOptionWrite::Range { /** Gets the node representing the cookie object for the options being set. */ diff --git a/go/ql/lib/semmle/go/security/CookieWithoutHttpOnly.qll b/go/ql/lib/semmle/go/security/CookieWithoutHttpOnly.qll index 915a58ef369..8eed50b8791 100644 --- a/go/ql/lib/semmle/go/security/CookieWithoutHttpOnly.qll +++ b/go/ql/lib/semmle/go/security/CookieWithoutHttpOnly.qll @@ -48,7 +48,7 @@ module BooleanCookieHttpOnlyFlow = TaintTracking::Global