johnwarne / reddit-top-rss

Generate RSS feeds for specified subreddits with score thresholds
MIT License
164 stars 13 forks source link

Found XSS Reflected Injection vulnerabilities #12

Open logm1lo opened 2 years ago

logm1lo commented 2 years ago

Hello, I was searching for vulnerabilities in code and I came across your repository. I have noticed that you do not perform any kind of Input sanitization in your code when selecting the "score", and while there isn't any kind of risk because the purpose of this webpage is just generating RSS feeds without any kind of data being persisted, it would be a good idea to adopt the practice of sanitizing your inputs. Every developer should know that user-manipulated input is always dangerous.

The following XSS injection was found on your webpage: xss

and this is the poc url that you also can access:

http://80.211.128.73:5000/?subreddit=news&score=2134"><script>alert("This happens when you do not perform any kind of input sanitization :)")</script>