jjj333-p / spam-police

A matrix bot to monitor and respond to investment scam spamming across the matrix platform, for example in rooms with a permanently offline admin.
GNU Affero General Public License v3.0
21 stars 8 forks source link

html rendering vuln in posting telegram scams to telegram scam room #21

Closed jjj333-p closed 10 months ago

jjj333-p commented 1 year ago

html can be sent in original message and it gets rendered in the posting by bot

image

jjj333-p commented 1 year ago

could inject a invis character inbetween each char, before feeding it to the function

jjj333-p commented 1 year ago

https://github.com/jjj333-p/spam-police/blob/59f302d5dbcf1422e2dd5b459e583c28c578f573/modules/sendjson.js#L58

jjj333-p commented 12 months ago

image bot also passes through mentions

jjj333-p commented 10 months ago

fixed by https://github.com/jjj333-p/spam-police/pull/46