T09 · Insecure Skill Coding Practices
- Location
recalc.py:20- Finding
Persistent LibreOffice Macro Is Reused Without Integrity Validation
- Content
View full analysis
Sub RecalculateAndSave() ThisComponent.calculateAll() ThisComponent.store() ThisComponent.close(True) End Sub ''' try: with open(macro_file, 'w') as f: f.write(macro_content) return True except Exception: return False ``` The accepted macro is subsequently executed: ```python cmd = [ 'soffice', '--headless', '--norestore', 'vnd.sun.star.script:Standard.Module1.RecalculateAndSave?language=Basic&location=application', abs_path ] ``` ### Technical Analysis The script installs `Module1.xba` into the user's persistent, application-wide LibreOffice profile rather than an iso ...[truncated 2437 chars]- Remediation
View remediation
