Skip to content

outposts/ldap: avoid nil ptr deref in MemorySearcher#7767

Merged
BeryJu merged 1 commit intogoauthentik:mainfrom
slrz:outposts/ldap-fix-possible-nilptr-deref-in-memory-searcher
Dec 4, 2023
Merged

outposts/ldap: avoid nil ptr deref in MemorySearcher#7767
BeryJu merged 1 commit intogoauthentik:mainfrom
slrz:outposts/ldap-fix-possible-nilptr-deref-in-memory-searcher

Conversation

@slrz
Copy link
Contributor

@slrz slrz commented Dec 3, 2023

When cloning a group in Search (due to !flag.CanSearch for the requesting user), a nil group parent leads the code to dereference a nil pointer. Avoid this and propagate the nil parent to the cloned group.

When cloning a group in Search (due to !flag.CanSearch for
the requesting user), a nil group parent leads the code to
dereference a nil pointer. Avoid this and propagate the nil
parent to the cloned group.

Signed-off-by: Lars Seipel <ls@slrz.net>
@slrz slrz requested a review from a team as a code owner December 3, 2023 21:57
@netlify
Copy link

netlify bot commented Dec 3, 2023

Deploy Preview for authentik-storybook canceled.

Name Link
🔨 Latest commit 72c6c42
🔍 Latest deploy log https://app.netlify.com/sites/authentik-storybook/deploys/656cf9b110f6790008281bb5

@BeryJu BeryJu merged commit 60c49c1 into goauthentik:main Dec 4, 2023
kensternberg-authentik added a commit that referenced this pull request Dec 5, 2023
…orm-handling' into web/revise-wizard-form-handling

* refs/remotes/origin/web/revise-wizard-form-handling:
  web: bump the eslint group in /tests/wdio with 2 updates (#7783)
  web: bump the sentry group in /web with 2 updates (#7784)
  web: bump the eslint group in /web with 2 updates (#7785)
  web: bump chart.js from 4.4.0 to 4.4.1 in /web (#7786)
  website: bump @types/react from 18.2.41 to 18.2.42 in /website (#7787)
  website: bump react-tooltip from 5.24.0 to 5.25.0 in /website (#7788)
  outposts/ldap: avoid nil ptr deref in MemorySearcher (#7767)
kensternberg-authentik added a commit that referenced this pull request Dec 6, 2023
* dev:
  web: bump API Client version (#7803)
  events: add graph for event volume (#7639)
  website/docs: change links to point to our YouTube (#7794)
  web: bump core-js from 3.33.3 to 3.34.0 in /web (#7796)
  core: bump golang from 1.21.4-bookworm to 1.21.5-bookworm (#7798)
  web: bump the wdio group in /tests/wdio with 4 updates (#7799)
  web/admin: revise wizard form handling (#7331)
  web: bump the eslint group in /tests/wdio with 2 updates (#7783)
  web: bump the sentry group in /web with 2 updates (#7784)
  web: bump the eslint group in /web with 2 updates (#7785)
  web: bump chart.js from 4.4.0 to 4.4.1 in /web (#7786)
  website: bump @types/react from 18.2.41 to 18.2.42 in /website (#7787)
  website: bump react-tooltip from 5.24.0 to 5.25.0 in /website (#7788)
  outposts/ldap: avoid nil ptr deref in MemorySearcher (#7767)
kensternberg-authentik added a commit that referenced this pull request Dec 6, 2023
* web/config-provider:
  web: bump API Client version (#7803)
  events: add graph for event volume (#7639)
  website/docs: change links to point to our YouTube (#7794)
  web: bump core-js from 3.33.3 to 3.34.0 in /web (#7796)
  core: bump golang from 1.21.4-bookworm to 1.21.5-bookworm (#7798)
  web: bump the wdio group in /tests/wdio with 4 updates (#7799)
  web/admin: revise wizard form handling (#7331)
  web: bump the eslint group in /tests/wdio with 2 updates (#7783)
  web: bump the sentry group in /web with 2 updates (#7784)
  web: bump the eslint group in /web with 2 updates (#7785)
  web: bump chart.js from 4.4.0 to 4.4.1 in /web (#7786)
  website: bump @types/react from 18.2.41 to 18.2.42 in /website (#7787)
  website: bump react-tooltip from 5.24.0 to 5.25.0 in /website (#7788)
  outposts/ldap: avoid nil ptr deref in MemorySearcher (#7767)
kensternberg-authentik added a commit that referenced this pull request Dec 6, 2023
* main:
  web: bump the eslint group in /tests/wdio with 2 updates (#7783)
  web: bump the sentry group in /web with 2 updates (#7784)
  web: bump the eslint group in /web with 2 updates (#7785)
  web: bump chart.js from 4.4.0 to 4.4.1 in /web (#7786)
  website: bump @types/react from 18.2.41 to 18.2.42 in /website (#7787)
  website: bump react-tooltip from 5.24.0 to 5.25.0 in /website (#7788)
  outposts/ldap: avoid nil ptr deref in MemorySearcher (#7767)
kensternberg-authentik added a commit that referenced this pull request Dec 6, 2023
…2a-branded

* web/config-provider-2-tenant:
  web: bump API Client version (#7803)
  events: add graph for event volume (#7639)
  website/docs: change links to point to our YouTube (#7794)
  web: bump core-js from 3.33.3 to 3.34.0 in /web (#7796)
  core: bump golang from 1.21.4-bookworm to 1.21.5-bookworm (#7798)
  web: bump the wdio group in /tests/wdio with 4 updates (#7799)
  web/admin: revise wizard form handling (#7331)
  web: bump the eslint group in /tests/wdio with 2 updates (#7783)
  web: bump the sentry group in /web with 2 updates (#7784)
  web: bump the eslint group in /web with 2 updates (#7785)
  web: bump chart.js from 4.4.0 to 4.4.1 in /web (#7786)
  website: bump @types/react from 18.2.41 to 18.2.42 in /website (#7787)
  website: bump react-tooltip from 5.24.0 to 5.25.0 in /website (#7788)
  outposts/ldap: avoid nil ptr deref in MemorySearcher (#7767)
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.

2 participants