Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-20595

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-20595
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:27 UTC · Revision 1

Source evidence

CVE-2018-20595

core-osv · Original source

Published 30 Dec 2018, 18:29 UTC

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.

osv:CVE-2018-20595
Complete source record
{
  "id": "fe366bd92c6d9cf2b7aadf16a8014d9ad350aff6df697512d098b9ca38e99da7",
  "url": "https://osv.dev/vulnerability/CVE-2018-20595",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-20595",
    "summary": "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.",
    "evidence": "osv:CVE-2018-20595",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2018-20595",
      "aliases": [
        "CVE-2018-20595",
        "GHSA-4rm3-4mq4-mfwr"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/hs-web/hsweb-framework",
              "type": "GIT",
              "events": [
                {
                  "introduced": "a82c50a57ff0837005bf6409378ea0c8a7e3dbc6"
                },
                {
                  "last_affected": "a82c50a57ff0837005bf6409378ea0c8a7e3dbc6"
                },
                {
                  "fixed": "40929e9b0d336a26281a5ed2e0e721d54dd8d2f2"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:hsweb:hsweb:3.0.4:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.0.4"
                      },
                      {
                        "last_affected": "3.0.4"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "40929e9b0d336a26281a5ed2e0e721d54dd8d2f2"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "3.0.4",
            "3.0.4-release"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-20595.json",
            "vanir_signatures": [
              {
                "id": "CVE-2018-20595-15ae4091",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "230303649916875244422071930711841632530",
                    "278026214785946609548608757833330806538",
                    "67061948506001062571253588914772891295",
                    "166784916818526258638762226195245021425",
                    "320363351148407479536331651366295910022",
                    "253905793729530242737807639877453832079",
                    "99850839909525910275641823481022920139",
                    "281524178365071811868608847584290667013",
                    "65846152653369508363829216509718087966",
                    "114684106868784432929414386201199848411",
                    "146902289802109031117439200909533373200",
                    "320713736829581577660521646176502708694"
                  ]
                },
                "source": "https://github.com/hs-web/hsweb-framework/commit/40929e9b0d336a26281a5ed2e0e721d54dd8d2f2",
                "target": {
                  "file": "hsweb-system/hsweb-system-oauth2-client/hsweb-system-oauth2-client-web/src/main/java/org/hswebframework/web/authorization/oauth2/controller/OAuth2ClientController.java"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-20595-60c3b82a",
                "digest": {
                  "length": 513,
                  "function_hash": "76198728433516612500922278359692897974"
                },
                "source": "https://github.com/hs-web/hsweb-framework/commit/40929e9b0d336a26281a5ed2e0e721d54dd8d2f2",
                "target": {
                  "file": "hsweb-system/hsweb-system-oauth2-client/hsweb-system-oauth2-client-web/src/main/java/org/hswebframework/web/authorization/oauth2/controller/OAuth2ClientController.java",
                  "function": "callback"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-20595-7f4eb4a1",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "277556676081724025417103193708988421527",
                    "123180681127283065209892170645053211984",
                    "306325979264998545528937977148956184501"
                  ]
                },
                "source": "https://github.com/hs-web/hsweb-framework/commit/40929e9b0d336a26281a5ed2e0e721d54dd8d2f2",
                "target": {
                  "file": "hsweb-authorization/hsweb-authorization-oauth2/hsweb-authorization-oauth2-core/src/main/java/org/hswebframework/web/oauth2/core/ErrorType.java"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T13:37:41Z"
          }
        }
      ],
      "modified": "2026-10-20T13:37:41.234432651Z",
      "provider": "osv",
      "references": [
        "https://github.com/hs-web/hsweb-framework/issues/107",
        "https://github.com/hs-web/hsweb-framework/commit/40929e9b0d336a26281a5ed2e0e721d54dd8d2f2"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2018-20595",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 387902,
  "published_at": "2018-12-30T18:29:00.693+00:00"
}