Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

MyBB xss

Hello,

Here is a minor xss that has almost no impact but thought i would share it because i'm to lazy to report it.

Code
usercp.php?action=do_editlists&my_post_key=key&manage="{any html}&delete=id

Problem:
They have not sanitized the output that happens when removing someone from the friendlist.

Here is the code:
https://github.com/mybb/mybb/blob/e99ec5....php#L3233
If you are not willing to be a fool, you can't become a master.
(Aug 12, 2021 11:27 AM)Icey. Wrote:  
Code
usercp.php?action=do_editlists&my_post_key=key&manage="{any html}&delete=id

Problem:
They have not sanitized the output that happens when removing someone from the friendlist.


Hi,

There's a CSRF token required to run the do_editlists function, along with the myBB secret token that you use for posts. The myBB secret is static, but cannot be extracted unless you proxied the victim (since it is placed in POST data, not Set-Cookie). The CSRF token is also POST data.

You can argue that this is doable with MITM though, but that beats the point of weaponization.

POC:
[Image: 7BjinGx.png]
Regards,
Porky
ℒ𝒶𝓊ℊ𝒽𝒾𝓃ℊ 𝒶𝓉 𝓎ℴ𝓊𝓇 𝓈ℯ𝒸𝓊𝓇𝒾𝓉𝓎 𝓈𝒾𝓃𝒸ℯ... ℯ𝓋ℯ𝓇.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by Gee4rceApr 19, 2021 06:47 AM 26 4,055 Apr 19, 2021 06:47 AM
Last Post: theghostofgreen
by longwenzhangDec 12, 2019 07:54 AM 0 229 Dec 12, 2019 07:54 AM
Last Post: longwenzhang
by frank3nstienJul 18, 2019 10:38 PM 2 324 Jul 18, 2019 10:38 PM
Last Post: frank3nstien