user can still comment the unpublish blog in microweber/microweber
Reported on
May 24th 2023
1 admin create blog1(id=1) and blog2(id=2), only publish blog1
2 user1 comment blog1, using burpsuite hijack it
POST /demo/admin/post HTTP/1.1
........
rel_id=1&_token=CagiMKpbls0v5yX00BdrkNvVgo3gInDvXwg86TA9&rel=content&module_id=module-comments-21&comment_body=mycomment4
3 repalce rel_id from 1 to 2, i.e we comment the blog2 which is not publish
4 result shows that we comment sucess.
Impact
attacker can comment any blog, even the blog is not publish.