inrupt / inrupt/solid-client-authn-js

Crash when client time is wrong

Open
#2,406 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
77
Forks
49
Avg merge
18h 20m
Merged PRs (30d)
32

Description

When the client has the wrong time, depending on the difference, CSS and ESS) will send an error response. See for instance https://github.com/CommunitySolidServer/CommunitySolidServer/issues/1012

solid-client-authn-js does not handle such error responses properly.

To reproduce:

  • Create a pod at https://pod.playground.solidlab.be/idp/register/
  • Set your computer time in the past or the future
  • Try to sign on to any app using solid-client-authn-js
  • The server will send {"error":"invalid_dpop_proof","error_description":"invalid DPoP key binding"}
  • The client will crash

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure in solid-client-authn-js using the listed pod and an intentionally incorrect client clock. Start by tracing handling of the invalid_dpop_proof response; done means the sign-on attempt reports the server error without crashing.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
authentication
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.