Add input sanitization on OG values (defense-in-depth) #79
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
While OG values are escaped on output via Joomla's
setMetaData()API, there is no explicit sanitization on input when saving to the database. Adding input sanitization provides defense-in-depth against stored XSS.Current State
#__mokoog_tagsRecommendation
Add
InputFilter::clean()orstrip_tags()to text fields (og_title, og_description, seo_title, meta_description) in TagTable::check() or MokoOGContent::onContentAfterSave().Impact
Low risk currently (output is escaped), but defense-in-depth is best practice for extensions that store user-provided content.
Branch created:
feature/79-add-input-sanitization-on-og-values-defe