bug: 500 M_UNKNOWN on /login for incomplete password login body #2552
Labels
No labels
Abandoned
Blocked
Bug
Changelog
Added
Changelog
Missing
Changelog
None
Cherry-picking
Compliance
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Merge
Merge/Manual
Merge/Squash
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
bob the builder
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
continuwuation/continuwuity#2552
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What is the bug?
The homeserver returns an internal server error instead of a standard client error when the request body for
POST /_matrix/client/v3/loginis missing thetypefield (containing only theuserandpasswordkeys).Steps to reproduce
The .pcapng file is attached.
Server name and version
continuwuity 26.9.1 (
0727d564a)Additional context
No response
Based on the stack trace, i think this is a bug in ruma since the call chain on our part ends at the router body deserializer, which explicitly doesn't
expect/unwrapanywhere:// Deserialize the bodylet body = R::try_from_http_request(request, &borrowed_path).map_err(|e| err!(Request(BadJson(debug_warn!("{e}")))))?;Might be worth filing an issue at https://github.com/ruma/ruma instead. Also, 26.9.1 is outdated and has known vulnerabilities, please upgrade to the latest version as soon as you can (although I doubt it fixes this specific bug)
Going to close this as an upstream issue, feel free to re-open if you disagree
I filed the issue to ruma: https://github.com/ruma/ruma/issues/2685