CVE-2018-20595

Source
https://nvd.nist.gov/vuln/detail/CVE-2018-20595
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2018-20595.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2018-20595
Aliases
Published
2018-12-30T18:29:00Z
Modified
2025-10-15T09:32:24.506840Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

A CSRF issue was discovered in web/authorization/oauth2/controller/OAuth2ClientController.java in hsweb 3.0.4 because the state parameter in the request is not compared with the state parameter in the session after user authentication is successful.

References

Affected packages

Git / github.com/hs-web/hsweb-framework

Affected ranges

Type
GIT
Repo
https://github.com/hs-web/hsweb-framework
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

3.*

3.0.0
3.0.0-RC
3.0.0-SNAPSHOT
3.0.1

V2.*

V2.2.1

Database specific

vanir_signatures

[
    {
        "target": {
            "file": "hsweb-system/hsweb-system-oauth2-client/hsweb-system-oauth2-client-web/src/main/java/org/hswebframework/web/authorization/oauth2/controller/OAuth2ClientController.java"
        },
        "id": "CVE-2018-20595-15ae4091",
        "signature_type": "Line",
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://github.com/hs-web/hsweb-framework/commit/40929e9b0d336a26281a5ed2e0e721d54dd8d2f2",
        "digest": {
            "line_hashes": [
                "230303649916875244422071930711841632530",
                "278026214785946609548608757833330806538",
                "67061948506001062571253588914772891295",
                "166784916818526258638762226195245021425",
                "320363351148407479536331651366295910022",
                "253905793729530242737807639877453832079",
                "99850839909525910275641823481022920139",
                "281524178365071811868608847584290667013",
                "65846152653369508363829216509718087966",
                "114684106868784432929414386201199848411",
                "146902289802109031117439200909533373200",
                "320713736829581577660521646176502708694"
            ],
            "threshold": 0.9
        }
    },
    {
        "target": {
            "function": "callback",
            "file": "hsweb-system/hsweb-system-oauth2-client/hsweb-system-oauth2-client-web/src/main/java/org/hswebframework/web/authorization/oauth2/controller/OAuth2ClientController.java"
        },
        "id": "CVE-2018-20595-60c3b82a",
        "signature_type": "Function",
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://github.com/hs-web/hsweb-framework/commit/40929e9b0d336a26281a5ed2e0e721d54dd8d2f2",
        "digest": {
            "function_hash": "76198728433516612500922278359692897974",
            "length": 513.0
        }
    },
    {
        "target": {
            "file": "hsweb-authorization/hsweb-authorization-oauth2/hsweb-authorization-oauth2-core/src/main/java/org/hswebframework/web/oauth2/core/ErrorType.java"
        },
        "id": "CVE-2018-20595-7f4eb4a1",
        "signature_type": "Line",
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://github.com/hs-web/hsweb-framework/commit/40929e9b0d336a26281a5ed2e0e721d54dd8d2f2",
        "digest": {
            "line_hashes": [
                "277556676081724025417103193708988421527",
                "123180681127283065209892170645053211984",
                "306325979264998545528937977148956184501"
            ],
            "threshold": 0.9
        }
    }
]