secubox-openwrt/package/secubox/luci-app-nextcloud/htdocs/luci-static/resources/view/nextcloud/settings.js
CyberMind-FR e58f479cd4 feat(waf): Update WAF scenarios with 2024-2025 CVEs and OWASP threats
Add detection patterns for latest actively exploited vulnerabilities:
- CVE-2025-55182 (React2Shell, CVSS 10.0)
- CVE-2025-8110 (Gogs RCE), CVE-2025-53770 (SharePoint)
- CVE-2025-52691 (SmarterMail), CVE-2025-40551 (SolarWinds)
- CVE-2024-47575 (FortiManager), CVE-2024-21887 (Ivanti)
- CVE-2024-3400, CVE-2024-0012, CVE-2024-9474 (PAN-OS)

New attack categories based on OWASP Top 10 2025:
- HTTP Request Smuggling (TE.CL/CL.TE conflicts)
- AI/LLM Prompt Injection (ChatML, instruction markers)
- WAF Bypass techniques (Unicode normalization, double encoding)
- Supply Chain attacks (CI/CD poisoning, dependency confusion)
- Extended SSTI (Jinja2, Freemarker, Velocity, Thymeleaf)
- API Abuse (BOLA/IDOR, mass assignment)

CrowdSec scenarios split into 11 separate files for reliability.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-12 05:02:57 +01:00

72 lines
2.0 KiB
JavaScript

'use strict';
'require view';
'require form';
'require uci';
'require secubox/kiss-theme';
return view.extend({
load: function() {
return uci.load('nextcloud');
},
render: function() {
var m, s, o;
m = new form.Map('nextcloud', _('Nextcloud Settings'),
_('Configure Nextcloud settings. Changes require service restart to take effect.'));
s = m.section(form.TypedSection, 'nextcloud', _('General Settings'));
s.anonymous = true;
s.addremove = false;
o = s.option(form.Flag, 'enabled', _('Enabled'),
_('Enable Nextcloud'));
o.default = '0';
o.rmempty = false;
o = s.option(form.Value, 'port', _('Web UI Port'),
_('Port for the Nextcloud web interface'));
o.datatype = 'port';
o.default = '80';
o.placeholder = '80';
o = s.option(form.Value, 'data_path', _('Data Path'),
_('Path to store Nextcloud data'));
o.default = '/srv/nextcloud';
o.placeholder = '/srv/nextcloud';
o = s.option(form.Value, 'admin_user', _('Admin Username'),
_('Administrator username for initial setup'));
o.default = 'admin';
o.placeholder = 'admin';
o = s.option(form.Value, 'admin_password', _('Admin Password'),
_('Administrator password for initial setup. Required for first install.'));
o.password = true;
o.placeholder = _('Enter password');
o = s.option(form.Value, 'trusted_domains', _('Trusted Domains'),
_('Comma-separated list of trusted domains (e.g., cloud.example.com,192.168.1.1)'));
o.default = 'cloud.local';
o.placeholder = 'cloud.local';
o = s.option(form.Value, 'timezone', _('Timezone'),
_('Timezone for the container'));
o.default = 'UTC';
o.placeholder = 'UTC';
o = s.option(form.Value, 'image', _('Docker Image'),
_('Docker image to use'));
o.default = 'nextcloud:latest';
o.placeholder = 'nextcloud:latest';
return m.render().then(function(node) {
return KissTheme.wrap(node, 'admin/secubox/services/nextcloud/settings');
});
},
handleSaveApply: null,
handleSave: null,
handleReset: null
});