thecore_ui_commons 3.5.0 → 3.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 244d023f4eae82f934adeeaab627e6c319d53ce9e35a4ae88a4ea6d1388d4589
4
- data.tar.gz: 3687827874ef937db6a6d13d62e93b22403a5d1b7a44ca52ea3a269dda85f3f4
3
+ metadata.gz: 26bdeaf5435a5af8fe6cac3e39a5b1b80f54182ef4ff80c0253ef831c0094f8a
4
+ data.tar.gz: 7e8f11d15ce77fdda026ab57c102aa8d3437c248c32d5a851f2119077e55c491
5
5
  SHA512:
6
- metadata.gz: bb2a901e7d02a99340a635134fbde6583559eb46f0a2d33a24f03d44dd65cc22a5423edee39477047c0fc9bef8ed2bcae07b3d24ab92c873f3feb63f1204e943
7
- data.tar.gz: 248ab9478417b8fd87cd794c96c9cba5babdce6a593ae25495c25fd459769e128c89fb091e067b2164929613d36ad907d2e4b9cb33fe723e21655a9ac41ca8a7
6
+ metadata.gz: b2b5cb232de627f718aa501e1a9ef9e36b0731868147bc8f57134742677ab4b62925376a75350d308f3a10560a4aea93f991a3cc9b65f00ce4d99eafee021b12
7
+ data.tar.gz: ff30f188889e271191925b6f0ccc1a3eedbc4dc6beca2c8911a876ebdfdb35825d76dd6296954fdd9b76f16096f0e03131f64f90a1e6a72acefa29d11ce24b3a
@@ -20,7 +20,7 @@
20
20
  "cwe_id": [
21
21
  352
22
22
  ],
23
- "note": "False positive (host Odoo #5884). config/initializers/after_initialize.rb includes ConcernCommonApplicationController into ApplicationController, and that concern calls protect_from_forgery prepend: true. Brakeman reads the class body only and can't see a module included at boot."
23
+ "note": "False positive (host Odoo #5884). config/initializers/after_initialize.rb includes ConcernCommonApplicationController into ApplicationController, and that concern calls protect_from_forgery with: :null_session, prepend: true. Brakeman reads the class body only and can't see a module included at boot. :null_session is deliberate (GitHub #7): a forged sign-in or sign-out runs against a throwaway session, so it neither creates nor ends one; test/integration/forgery_null_session_test.rb pins it."
24
24
  }
25
25
  ],
26
26
  "brakeman_version": "8.1.0"
@@ -5,8 +5,9 @@ module ConcernCommonApplicationController
5
5
  extend ActiveSupport::Concern
6
6
 
7
7
  included do
8
- # protect_from_forgery prepend: true
9
- protect_from_forgery prepend: true
8
+ # :null_session on purpose (GitHub #7): a tokenless request gets a throwaway session and cookie
9
+ # jar, so a forged sign-in or sign-out neither creates nor ends a session.
10
+ protect_from_forgery with: :null_session, prepend: true
10
11
 
11
12
  rescue_from CanCan::AccessDenied do |exception|
12
13
  redirect_to main_app.root_url, alert: exception.message
@@ -1,3 +1,3 @@
1
1
  module ThecoreUiCommons
2
- VERSION = "3.5.0".freeze
2
+ VERSION = "3.5.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_ui_commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.0
4
+ version: 3.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-11-25 00:00:00.000000000 Z
11
+ date: 2026-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_backend_commons