AI Content Translator
The module does not properly check access rights for the content it translates. An ordinary account on the site could start translations of content they are not allowed to view and alter interface text. This means they could see hidden content and change information on the site.
- Who could do thisOnly someone with a login on your site.
- Does it apply to youA site is affected if a user has the access right to translate content with artificial intelligence.
- Has it been used in attacksNo sign of it.
- How urgentDrupal rates this moderately critical. Include it in your next routine update, within the month.
Tell your developerUpdate AI Content Translator to 1.0.2.
For developers: what the fix changed
The fix adds access checks to the translation batch operations in ai_content_translator.module and the node translation route in ai_content_translator.routing.yml. It introduces translationAccess and interfaceAccess methods in src/AiContentTranslator.php to verify if the user has permission to view and translate the entity or interface strings.
ai_content_translator.module+46 −19 fixai_content_translator.routing.yml+1 −0 fixai_content_translator.services.yml+2 −0 fixsrc/AiContentTranslator.php+34 −0 fixsrc/Controller/TranslateActionController.php+20 −0 fix