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>
40 lines
2.1 KiB
JavaScript
40 lines
2.1 KiB
JavaScript
'use strict';
|
|
'require view';
|
|
'require secubox-theme/theme as Theme';
|
|
'require auth-guardian/api as api';
|
|
'require secubox/kiss-theme';
|
|
|
|
return view.extend({
|
|
load: function() { return api.getOAuthProviders(); },
|
|
render: function(data) {
|
|
var providers = data.providers || [];
|
|
var icons = {google:'🔵',github:'⚫',facebook:'🔷',twitter:'🐦'};
|
|
var colors = {google:'#4285f4',github:'#333',facebook:'#1877f2',twitter:'#1da1f2'};
|
|
|
|
var view = E('div', {class:'cbi-map'}, [
|
|
E('link', { 'rel': 'stylesheet', 'href': L.resource('secubox-theme/secubox-theme.css') }),
|
|
E('h2', {}, '🔑 OAuth Providers'),
|
|
E('p', {style:'color:#94a3b8;margin-bottom:20px'}, 'Configure third-party authentication providers.'),
|
|
E('div', {style:'display:grid;gap:16px'}, [
|
|
['google', 'Google', 'Sign in with Google account'],
|
|
['github', 'GitHub', 'Sign in with GitHub account'],
|
|
['facebook', 'Facebook', 'Sign in with Facebook account'],
|
|
['twitter', 'Twitter/X', 'Sign in with Twitter account']
|
|
].map(function(p) {
|
|
var provider = providers.find(function(x) { return x.id === p[0]; });
|
|
var enabled = provider ? provider.enabled : false;
|
|
return E('div', {style:'background:#1e293b;padding:20px;border-radius:12px;display:flex;align-items:center;gap:16px'}, [
|
|
E('span', {style:'font-size:32px'}, icons[p[0]] || '🔐'),
|
|
E('div', {style:'flex:1'}, [
|
|
E('div', {style:'font-weight:600;color:#f1f5f9;font-size:16px'}, p[1]),
|
|
E('div', {style:'color:#94a3b8;font-size:13px'}, p[2])
|
|
]),
|
|
E('span', {style:'padding:6px 12px;border-radius:6px;font-weight:600;background:'+(enabled?'#22c55e20;color:#22c55e':'#64748b20;color:#64748b')}, enabled ? 'Enabled' : 'Disabled')
|
|
]);
|
|
}))
|
|
]);
|
|
return KissTheme.wrap([view], 'admin/secubox/auth/auth-guardian/oauth');
|
|
},
|
|
handleSaveApply:null,handleSave:null,handleReset:null
|
|
});
|