{
  "schema_version": "1.4.0",
  "id": "GHSA-958r-g534-ccmr",
  "modified": "2022-09-17T00:54:46Z",
  "published": "2019-07-05T21:11:13Z",
  "aliases": [
    "CVE-2019-9845"
  ],
  "summary": "MadsKristensen.AspNetCore.Miniblog subject to Improper Input Validation",
  "details": "madskristensen Miniblog.Core through 2019-01-16 allows remote attackers to execute arbitrary ASPX code via an IMG element with a data: URL, because SaveFilesToDisk in Controllers/BlogController.cs writes a decoded base64 string to a file without validating the extension.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "NuGet",
        "name": "MadsKristensen.AspNetCore.Miniblog"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "1.0.3"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2019-9845"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/advisories/GHSA-958r-g534-ccmr"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/madskristensen/Miniblog.Core"
    },
    {
      "type": "WEB",
      "url": "https://github.com/madskristensen/Miniblog.Core/blob/master/src/Controllers/BlogController.cs#L142"
    },
    {
      "type": "WEB",
      "url": "https://rastating.github.io/miniblog-remote-code-execution"
    }
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-20"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2020-06-16T21:27:35Z",
    "nvd_published_at": null
  }
}