You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2025/09/13 18:23:47 UTC

[Bug 69815] New: Feature request: support device bound session credentials (DBSC)

https://bz.apache.org/bugzilla/show_bug.cgi?id=69815

            Bug ID: 69815
           Summary: Feature request: support device bound session
                    credentials (DBSC)
           Product: Tomcat 11
           Version: unspecified
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Authentication
          Assignee: dev@tomcat.apache.org
          Reporter: reda-alaoui@hey.com
  Target Milestone: -------

Device Bound Session Credentials (DBSC) is a w3c protocol aiming at protecting
users from cookie theft.
DBSC is not a standard yet but is already part of a Google Chrome trial.

I think it'd be interesting for Tomcat to protect session cookies with this new
protocol.

Project: https://github.com/w3c/webappsec-dbsc
Specification: https://w3c.github.io/webappsec-dbsc/
Google Chrome trial: https://developer.chrome.com/blog/dbsc-origin-trial

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 69815] Feature request: support device bound session credentials (DBSC)

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=69815

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
A quick review suggests this is not generally implementable on a Servlet
container.

The protocol assumes that sessions are never scoped more narrowly than per
origin. That is not the case for a Servlet container where sessions are scoped
per web application which is (nearly) always more narrow than the origin.

You could implement this if it were limited to the ROOT context. That may or
may not be useful.

My sense is that this is still experimental and that it is too early to think
about a Tomcat implementation.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 69815] Feature request: support device bound session credentials (DBSC)

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=69815

--- Comment #2 from Réda Housni Alaoui <re...@hey.com> ---
Hello Mark,

> The protocol assumes that sessions are never scoped more narrowly than per origin.

I don’t know what makes you think that. The scope session rule « path »
attribute ( https://w3c.github.io/webappsec-dbsc/#json-session-scope-rule )
allows to specify the origin’s paths protected by the session.

In fact, we implemented the protocol on an application that is not limited to
the root context. To do that, we specify provide a json session scope rule
having a path matching the Tomcat context path.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 69815] Feature request: support device bound session credentials (DBSC)

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=69815

--- Comment #3 from Christopher Schultz <ch...@christopherschultz.net> ---
This seems like the kind of thing that could be implemented as a Valve or a
Filter, where a single bit of code can handle multiple URL endpoints, and can
be applied to applications one-at-a-time.

I think it would be something worth looking at to provide as an optional but
available component from Tomcat. If implemented as a Filter, it could even be
portable across servlet containers.

Réda, would you be interested in working on a Filter- or Valve-based
implementation of this, since you have already implemented it in your own
product?

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 69815] Feature request: support device bound session credentials (DBSC)

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=69815

--- Comment #4 from Mark Thomas <ma...@apache.org> ---
Thanks for the pointer. I dug a little deeper and I see that my concerns
regarding session scope were unfounded.

I do have one remaining cross-context concern and that is the requirement for
/.well-known/device-bound-sessions to exist. That is a general issue with
.well-known and servlet containers and not specific to DBSC.

I haven't looked at this closely enough to determine if a Valve (or better
still a Filter) based implementation would be possible. I agree with Chris that
if it is, that would be a good place to start.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org