Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arbitrary code execution on the backend #123

Open
Airrudder opened this issue Dec 23, 2021 · 0 comments
Open

Arbitrary code execution on the backend #123

Airrudder opened this issue Dec 23, 2021 · 0 comments

Comments

@Airrudder
Copy link

Hello, I think this is a more serious vulnerability.
As long as any one has the permission to edit Blog or Pages pages, of course, other interfaces also have similar problems.
The problem mainly occurs in the inc/core/lib/Templates.php, which is also some template format used in your footer and title
image-20211223212734357

Below I will give the way to use it:
1、 Blog:

{? system('whoami')?}
{?=system('id')?}

image-20211223213504644

image-20211223213552957

Preview it, use success:

image-20211223213653658

2、Pages:
Here I give another payload use:

{if: system('id')}{/if}

image-20211223213911442

Preview it, use success:

image-20211223213932587

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant