Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 76 additions & 1 deletion unittests/scans/github_vulnerability/github_h2.json
Original file line number Diff line number Diff line change
@@ -1 +1,76 @@
{"data":{"repository":{"vulnerabilityAlerts":{"nodes":[{"createdAt":"2022-05-09T09:43:40Z","dismissedAt":null,"id":"RVA_kwDOAQoNos6MAo1b","vulnerableManifestPath":"apache/cxf/syncope/cxf-syncope/pom.xml", "securityVulnerability":{"severity":"CRITICAL","package":{"name":"com.h2database:h2"},"advisory":{"description":"### Impact\nH2 Console in versions since 1.1.100 (2008-10-14) to 2.0.204 (2021-12-21) inclusive allows loading of custom classes from remote servers through JNDI.\n\nH2 Console doesn't accept remote connections by default. If remote access was enabled explicitly and some protection method (such as security constraint) wasn't set, an intruder can load own custom class and execute its code in a process with H2 Console (H2 Server process or a web server with H2 Console servlet).\n\nIt is also possible to load them by creation a linked table in these versions, but it requires `ADMIN` privileges and user with `ADMIN` privileges has full access to the Java process by design. These privileges should never be granted to untrusted users.\n\n### Patches\nSince version 2.0.206 H2 Console and linked tables explicitly forbid attempts to specify LDAP URLs for JNDI. Only local data sources can be used.\n\n### Workarounds\nH2 Console should never be available to untrusted users.\n\n`-webAllowOthers` is a dangerous setting that should be avoided.\n\nH2 Console Servlet deployed on a web server can be protected with a security constraint:\nhttps://h2database.com/html/tutorial.html#usingH2ConsoleServlet\nIf `webAllowOthers` is specified, you need to uncomment and edit `<security-role>` and `<security-constraint>` as necessary. See documentation of your web server for more details.\n\n### References\nThis issue was found and privately reported to H2 team by [JFrog Security](https://www.jfrog.com/)'s vulnerability research team with detailed information.\n","summary":"RCE in H2 Console","identifiers":[{"type":"GHSA","value":"GHSA-h376-j262-vhq6"},{"type":"CVE","value":"CVE-2021-42392"}],"cvss":{"score":9.8,"vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"cwes":{"nodes":[{"cweId":"CWE-502"}]},"references":[{"url":"https://github.com/h2database/h2database/security/advisories/GHSA-h376-j262-vhq6"},{"url":"https://github.com/h2database/h2database/releases/tag/version-2.0.206"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42392"},{"url":"https://jfrog.com/blog/the-jndi-strikes-back-unauthenticated-rce-in-h2-database-console/"},{"url":"https://security.netapp.com/advisory/ntap-20220119-0001/"},{"url":"https://lists.debian.org/debian-lts-announce/2022/02/msg00017.html"},{"url":"https://www.debian.org/security/2022/dsa-5076"},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html"},{"url":"https://github.com/advisories/GHSA-h376-j262-vhq6"}]}}}]}}}}
{
"data": {
"repository": {
"vulnerabilityAlerts": {
"nodes": [
{
"createdAt": "2022-05-09T09:43:40Z",
"dismissedAt": null,
"id": "RVA_kwDOAQoNos6MAo1b",
"vulnerableManifestPath": "apache/cxf/syncope/cxf-syncope/pom.xml",
"securityVulnerability": {
"severity": "CRITICAL",
"package": {
"name": "com.h2database:h2"
},
"advisory": {
"description": "### Impact\nH2 Console in versions since 1.1.100 (2008-10-14) to 2.0.204 (2021-12-21) inclusive allows loading of custom classes from remote servers through JNDI.\n\nH2 Console doesn't accept remote connections by default. If remote access was enabled explicitly and some protection method (such as security constraint) wasn't set, an intruder can load own custom class and execute its code in a process with H2 Console (H2 Server process or a web server with H2 Console servlet).\n\nIt is also possible to load them by creation a linked table in these versions, but it requires `ADMIN` privileges and user with `ADMIN` privileges has full access to the Java process by design. These privileges should never be granted to untrusted users.\n\n### Patches\nSince version 2.0.206 H2 Console and linked tables explicitly forbid attempts to specify LDAP URLs for JNDI. Only local data sources can be used.\n\n### Workarounds\nH2 Console should never be available to untrusted users.\n\n`-webAllowOthers` is a dangerous setting that should be avoided.\n\nH2 Console Servlet deployed on a web server can be protected with a security constraint:\nhttps://h2database.com/html/tutorial.html#usingH2ConsoleServlet\nIf `webAllowOthers` is specified, you need to uncomment and edit `<security-role>` and `<security-constraint>` as necessary. See documentation of your web server for more details.\n\n### References\nThis issue was found and privately reported to H2 team by [JFrog Security](https://www.jfrog.com/)'s vulnerability research team with detailed information.\n",
"summary": "RCE in H2 Console",
"identifiers": [
{
"type": "GHSA",
"value": "GHSA-h376-j262-vhq6"
},
{
"type": "CVE",
"value": "CVE-2021-42392"
}
],
"cvss": {
"score": 9.8,
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
},
"cwes": {
"nodes": [
{
"cweId": "CWE-502"
}
]
},
"references": [
{
"url": "https://github.com/h2database/h2database/security/advisories/GHSA-h376-j262-vhq6"
},
{
"url": "https://github.com/h2database/h2database/releases/tag/version-2.0.206"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-42392"
},
{
"url": "https://jfrog.com/blog/the-jndi-strikes-back-unauthenticated-rce-in-h2-database-console/"
},
{
"url": "https://security.netapp.com/advisory/ntap-20220119-0001/"
},
{
"url": "https://lists.debian.org/debian-lts-announce/2022/02/msg00017.html"
},
{
"url": "https://www.debian.org/security/2022/dsa-5076"
},
{
"url": "https://www.oracle.com/security-alerts/cpuapr2022.html"
},
{
"url": "https://github.com/advisories/GHSA-h376-j262-vhq6"
}
]
}
}
}
]
}
}
}
}
69 changes: 68 additions & 1 deletion unittests/scans/github_vulnerability/github_shiro.json
Original file line number Diff line number Diff line change
@@ -1 +1,68 @@
{"data":{"repository":{"vulnerabilityAlerts":{"nodes":[{"createdAt":"2021-09-20T20:33:13Z","dismissedAt":null,"id":"RVA_kwDOAQoNos5VQZSk","vulnerableManifestPath":"apache/cxf/cxf-shiro/pom.xml","state":"FIXED","securityVulnerability":{"severity":"CRITICAL","package":{"name":"org.apache.shiro:shiro-core"},"advisory":{"description":"Apache Shiro before 1.8.0, when using Apache Shiro with Spring Boot, a specially crafted HTTP request may cause an authentication bypass. Users should update to Apache Shiro 1.8.0.","summary":"Apache Shiro vulnerable to a specially crafted HTTP request causing an authentication bypass","identifiers":[{"type":"GHSA","value":"GHSA-f6jp-j6w3-w9hm"},{"type":"CVE","value":"CVE-2021-41303"}],"cvss":{"score":9.8,"vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"cwes":{"nodes":[{"cweId":"CWE-287"}]},"references":[{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41303"},{"url":"https://lists.apache.org/thread.html/re470be1ffea44bca28ccb0e67a4cf5d744e2d2b981d00fdbbf5abc13%40%3Cannounce.shiro.apache.org%3E"},{"url":"https://lists.apache.org/thread.html/raae98bb934e4bde304465896ea02d9798e257e486d04a42221e2c41b@%3Cuser.shiro.apache.org%3E"},{"url":"https://security.netapp.com/advisory/ntap-20220609-0001/"},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html"},{"url":"https://github.com/advisories/GHSA-f6jp-j6w3-w9hm"}]}}}]}}}}
{
"data": {
"repository": {
"vulnerabilityAlerts": {
"nodes": [
{
"createdAt": "2021-09-20T20:33:13Z",
"dismissedAt": null,
"id": "RVA_kwDOAQoNos5VQZSk",
"vulnerableManifestPath": "apache/cxf/cxf-shiro/pom.xml",
"state": "FIXED",
"securityVulnerability": {
"severity": "CRITICAL",
"package": {
"name": "org.apache.shiro:shiro-core"
},
"advisory": {
"description": "Apache Shiro before 1.8.0, when using Apache Shiro with Spring Boot, a specially crafted HTTP request may cause an authentication bypass. Users should update to Apache Shiro 1.8.0.",
"summary": "Apache Shiro vulnerable to a specially crafted HTTP request causing an authentication bypass",
"identifiers": [
{
"type": "GHSA",
"value": "GHSA-f6jp-j6w3-w9hm"
},
{
"type": "CVE",
"value": "CVE-2021-41303"
}
],
"cvss": {
"score": 9.8,
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
},
"cwes": {
"nodes": [
{
"cweId": "CWE-287"
}
]
},
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-41303"
},
{
"url": "https://lists.apache.org/thread.html/re470be1ffea44bca28ccb0e67a4cf5d744e2d2b981d00fdbbf5abc13%40%3Cannounce.shiro.apache.org%3E"
},
{
"url": "https://lists.apache.org/thread.html/raae98bb934e4bde304465896ea02d9798e257e486d04a42221e2c41b@%3Cuser.shiro.apache.org%3E"
},
{
"url": "https://security.netapp.com/advisory/ntap-20220609-0001/"
},
{
"url": "https://www.oracle.com/security-alerts/cpujul2022.html"
},
{
"url": "https://github.com/advisories/GHSA-f6jp-j6w3-w9hm"
}
]
}
}
}
]
}
}
}
}