Best way to store user input that has HTML tags and <script> tags and display it on client side as is but still being safe from mainstream attacks

I am new to web security, and I need your help in confirming things. As the title says, I am looking for and researching for a safe way to take in user input that may contain special characters/HTML/bbcode/script tags and safely store it i… Continue reading Best way to store user input that has HTML tags and <script> tags and display it on client side as is but still being safe from mainstream attacks

Input Sanitation injection reflects local cookie information inside the Input textbox. How can this be leveraged to a xss attack? [closed]

The injection is inside an <input> element for an email address. The injection payload is ";"@site.com. Once submitted, local cookie information appears inside the actual input textbox.

Continue reading Input Sanitation injection reflects local cookie information inside the Input textbox. How can this be leveraged to a xss attack? [closed]

How to turn a relative path script (js) import to an absolue one with a url for XSS ? (more details below)

I have a parameter whose value is injected in the HTML as the following
<script src="/dir1/dir2/dir3/dir4/INJECT_HERE"> </script>

I was able to traverse back to just / but when I enter my xss hunter payload (let say … Continue reading How to turn a relative path script (js) import to an absolue one with a url for XSS ? (more details below)

What are vulnerabilities of saving user input directly in wordpress plugin?

I have a WordPress plugin that helps create an organization chart/tree and then generates a URL where the chart is available to be viewed by the public.
The plugin dashboard looks like this
the plugin uses window alerts to input from the u… Continue reading What are vulnerabilities of saving user input directly in wordpress plugin?