GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — security: add ACL check for WebSocket subscriptions by melvincarvalho · Pull Request #1840 · nodeSolidServer/node-solid-server

Conversation

@melvincarvalho

@melvincarvalho melvincarvalho commented Jan 7, 2026

Copy link
Copy Markdown
Contributor

Summary

Check WAC read permission before allowing WebSocket subscriptions. This prevents information leakage via notifications to unauthorized users.

Changes

  • Add authorizeSubscription callback for solid-ws
  • Check ACL read access before allowing subscription
  • Denied subscriptions receive err <url> forbidden
  • Currently treats all WS connections as anonymous (see note below)

Dependencies

⚠️ This PR requires nodeSolidServer/node-solid-ws#29 to be merged and released first.

The solid-ws package needs the new authorize callback option before this can work.

Future enhancement

Currently all WebSocket connections are treated as anonymous for ACL purposes. This still prevents the main vulnerability (anonymous users subscribing to private resources).

Full authenticated WebSocket subscriptions would require either:

  • Parsing session cookies and looking up the session
  • Validating Authorization header bearer tokens

This can be added in a follow-up PR.

Fixes #1334

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@melvincarvalho
security: add ACL check for WebSocket subscriptions
03b5ff4
Check WAC read permission before allowing WebSocket subscriptions.
This prevents information leakage via notifications to unauthorized users.

- Add authorizeSubscription callback for solid-ws
- Check ACL read access before allowing subscription
- Deny subscription returns 'err <url> forbidden'
- Currently treats all WS connections as anonymous (TODO: auth integration)

Depends on: nodeSolidServer/node-solid-ws#29
Fixes nodeSolidServer#1334
@melvincarvalho

melvincarvalho commented Jan 7, 2026

Copy link
Copy Markdown
Contributor Author

For historical context, this issue was first raised in 2015 (#143) and Tim Berners-Lee described it as a "serious bug":

the lack of authentication is a serious bug with the current protocol

— @timbl in solid/notifications#3

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bourgeoa

bourgeoa commented Jan 7, 2026

Copy link
Copy Markdown
Member

@melvincarvalho can you recreate your PR to https://github.com/nodeSolidServer/node-solid-server/tree/websocket-acl-check

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Websockets does not check .acl

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@melvincarvalho @bourgeoa
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.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.