GHSA-q9h8-gpw5-c95c

Suggest an improvement
Source
https://github.com/advisories/GHSA-q9h8-gpw5-c95c
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-q9h8-gpw5-c95c/GHSA-q9h8-gpw5-c95c.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-q9h8-gpw5-c95c
Aliases
Published
2022-05-24T16:43:57Z
Modified
2023-11-01T04:50:15.374111Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
Matrix Sydent mishandles emails
Details

util/emailutils.py in Matrix Sydent before 1.0.2 mishandles registration restrictions that are based on e-mail domain, if the allowedlocal3pids option is enabled. This occurs because of potentially unwanted behavior in Python, in which an email.utils.parseaddr call on user@bad.example.net@good.example.com returns the user@bad.example.net substring.

Database specific
{
    "nvd_published_at": "2019-04-19T14:29:00Z",
    "cwe_ids": [
        "CWE-20"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2023-08-01T23:30:01Z"
}
References

Affected packages

PyPI / matrix-sydent

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.0.2

Ecosystem specific

{
    "affected_functions": [
        "sydent.util.emailutils.sendEmail"
    ]
}