@extends('layouts.app') @section('title', '掃描報告 — ' . $vulnScan->target_url) @section('content')
等待輸出…
{{ $vulnScan->error_log }}
| 嚴重度 | 名稱 | 匹配位置 | OWASP / CVE | |
|---|---|---|---|---|
| {{ strtoupper($f['severity']) }} |
{{ $f['name'] ?: ($f['template_id'] ?? '—') }}
@if(!empty($f['template_id']) && $f['template_id'] !== $f['name'])
{{ $f['template_id'] }}
@endif
@if(!empty($f['tags']))
@foreach(array_slice((array)$f['tags'], 0, 5) as $tag)
{{ $tag }}
@endforeach
@endif
|
{{ $f['matched_at'] ?? '—' }}
|
@foreach((array)($f['owasp'] ?? []) as $oid) {{ $oid }} @endforeach @foreach((array)($f['cve_id'] ?? []) as $cid) {{ $cid }} @endforeach @if($isAiMode) @foreach(array_slice((array)($f['llm_owasp'] ?? []), 0, 2) as $lid) {{ $lid }} @endforeach @endif | |
|
{{-- ① 影響網址位置 --}}
{{-- 偵測細節:方法 / 參數 / 信心等級 / CWE / 觸發證據 --}}
@if(!empty($fExtra['method']) || !empty($fExtra['param']) || !empty($fExtra['confidence']) || !empty($fExtra['cweid']) || !empty($fExtra['evidence']))
偵測細節
@if(!empty($fExtra['method']))
{{ $fExtra['method'] }}
@endif
@if(!empty($fExtra['param']))
參數:{{ $fExtra['param'] }}
@endif
@if(!empty($fExtra['confidence']))
@php
$confColor = ['高'=>'danger','中'=>'warning','低'=>'secondary','誤報'=>'light'][$fExtra['confidence']] ?? 'secondary';
@endphp
信心等級:{{ $fExtra['confidence'] }}
@endif
@if(!empty($fExtra['cweid']))
CWE-{{ $fExtra['cweid'] }}
@endif
@if(!empty($fExtra['evidence']))
觸發證據(ZAP 於回應中比對到的內容)
{{ $fExtra['evidence'] }}
{{-- ② 對應風險分類 --}}
{{-- row --}}
對應風險分類
{{-- 嚴重度說明 --}}
{{ strtoupper($fSev) }}
{{-- OWASP 分類 --}}
@if(!empty($fOwasp))
{{ $sevRiskDesc[$fSev] ?? '' }}
OWASP Top 10 2021
@foreach($fOwasp as $oid)
@php $od = $owaspDetail[$oid] ?? null; @endphp
{{ $oid }}
{{ $od['name'] ?? $oid }}
@if($od)
{{ $od['desc'] }}
@endif
OWASP LLM Top 10 2025
@foreach((array)$f['llm_owasp'] as $lid)
@php $ld = $llmOwaspDetail[$lid] ?? null; @endphp
{{ $lid }}
{{ $ld['name'] ?? $lid }}
@if($ld)
{{ $ld['desc'] }}
影響:
{{ $ld['impact'] }}
@endif
CVE
@foreach($fCve as $cid)
{{ $cid }}
@endforeach
{{-- 漏洞說明 --}}
漏洞說明
@if($descText)
{{ $descText }} @else(此項目暫無詳細說明,請參考右側參考資料) @endif
建議解法
@if($remedText)
{{ $remedText }}
@else
(請參考右側參考資料或 OWASP 防禦指南) @endif {{-- AI 模式:LLM 專屬修復建議 --}} @if($isAiMode && !empty($f['llm_owasp']))
@foreach((array)$f['llm_owasp'] as $lid)
@php $ld = $llmOwaspDetail[$lid] ?? null; @endphp
@if($ld)
@endif
LLM 防禦建議({{ $lid }})
{{ $ld['sol'] }}
{{-- 參考資料 --}}
參考資料
@if(!empty($fRef))
@foreach(array_slice($fRef, 0, 6) as $ref)
{{ $ref }}
@endforeach
@else
{{-- 根據 OWASP 分類補充參考連結 --}}
@foreach($fOwasp as $oid)
OWASP {{ $oid }} 詳細說明
@endforeach
@if($pluginId)
ZAP Alert #{{ $pluginId }} 說明
@endif
@if(empty($fOwasp) && !$pluginId)
(暫無參考連結)
@endif
@endif
技術資訊
@if(!empty($f['template_id']))
ID:
@endif
@if(!empty($f['type']))
{{ $f['template_id'] }}類型:{{ strtoupper($f['type']) }}
@endif
@if($isGarakMode && isset($f['extra']['failed']))
測試失敗:{{ $f['extra']['failed'] }} / {{ $f['extra']['total'] }}
失敗率:{{ $f['extra']['fail_rate'] }}%
測試通過:{{ $f['extra']['passed'] }}
@endif
@if(!empty($f['extra']['count']))
發現次數:{{ $f['extra']['count'] }} 處
@endif
@if(!empty($f['extra']['cvss_score']))
CVSS 評分:{{ $f['extra']['cvss_score'] }}
@endif
@if(!empty($f['tags']))
@foreach(array_slice((array)$f['tags'], 0, 8) as $tag)
{{ $tag }}
@endforeach
@endif
|
||||