diff --git a/moon/apps/web/pages/[org]/rust/rust-ecosystem/ecosystem-cve/cve-info/[cve-id]/index.tsx b/moon/apps/web/pages/[org]/rust/rust-ecosystem/ecosystem-cve/cve-info/[cve-id]/index.tsx
new file mode 100644
index 000000000..380aa2d78
--- /dev/null
+++ b/moon/apps/web/pages/[org]/rust/rust-ecosystem/ecosystem-cve/cve-info/[cve-id]/index.tsx
@@ -0,0 +1,472 @@
+import Head from 'next/head'
+// import Image from 'next/image'
+import { AppLayout } from '@/components/Layout/AppLayout'
+import AuthAppProviders from '@/components/Providers/AuthAppProviders'
+// import { useState } from 'react'
+// import { ExclamationTriangleIcon, ShieldCheckIcon, ClockIcon, UserIcon } from '@heroicons/react/24/outline'
+import { useRouter } from 'next/router'
+
+export default function CVEInfoPage() {
+ // const [activeTab, setActiveTab] = useState('overview')
+ const router = useRouter()
+ const { cveId } = router.query
+
+ // 模拟 CVE 数据 - 根据 cveId 获取不同的数据
+ const getCveData = (id: string) => {
+ const cveDataMap = {
+ 'CVE-2023-12345': {
+ id: 'CVE-2023-12345',
+ title: 'Rust 标准库中的内存安全漏洞',
+ severity: 'HIGH',
+ status: 'FIXED',
+ publishedDate: '2023-12-15',
+ updatedDate: '2023-12-20',
+ cvssScore: 8.5,
+ description: 'AsLdrSrv.exe in ASUS ATK Package before V1.0.0061 (for Windows 10 notebook PCs) could lead to unsigned code execution with no additional execution. The user must put an application at a particular path, with a particular file name.',
+ affectedVersions: ['1.70.0', '1.71.0', '1.72.0'],
+ fixedVersions: ['1.73.0'],
+ tag: { text: '由国际安全组织报告', color: 'blue' },
+ references: [
+ { title: 'Rust Security Advisory', url: 'https://blog.rust-lang.org/2023/12/15/security-advisory.html' },
+ { title: 'GitHub Issue', url: 'https://github.com/rust-lang/rust/issues/12345' }
+ ],
+ details: {
+ overview: '这是一个在 Rust 标准库中发现的内存安全漏洞,影响多个版本的 Rust 编译器。',
+ impact: '该漏洞可能导致程序崩溃、内存泄漏或潜在的安全问题。',
+ solution: '建议升级到 Rust 1.73.0 或更高版本。',
+ workaround: '如果无法立即升级,可以避免使用受影响的函数。'
+ }
+ },
+ 'CVE-2023-12346': {
+ id: 'CVE-2023-12346',
+ title: 'Rust 编译器中的类型安全漏洞',
+ severity: 'MEDIUM',
+ status: 'PENDING',
+ publishedDate: '2023-12-18',
+ updatedDate: '2023-12-22',
+ cvssScore: 6.5,
+ description: '在 Rust 编译器的类型检查系统中发现了一个潜在的类型安全漏洞。',
+ affectedVersions: ['1.69.0', '1.70.0', '1.71.0'],
+ fixedVersions: ['1.72.0'],
+ tag: { text: '修复补丁已发布', color: 'green' },
+ references: [
+ { title: 'Rust Security Advisory', url: 'https://blog.rust-lang.org/2023/12/18/security-advisory.html' },
+ { title: 'GitHub Issue', url: 'https://github.com/rust-lang/rust/issues/12346' }
+ ],
+ details: {
+ overview: '这是一个在 Rust 编译器类型检查系统中发现的漏洞。',
+ impact: '该漏洞可能导致类型检查错误,影响编译安全性。',
+ solution: '建议升级到 Rust 1.72.0 或更高版本。',
+ workaround: '可以暂时禁用某些高级类型检查功能。'
+ }
+ }
+ }
+
+ return cveDataMap[id as keyof typeof cveDataMap] || cveDataMap['CVE-2023-12345']
+ }
+
+ const cveData = getCveData(cveId as string)
+
+// const tabs = [
+// { id: 'overview', name: '概览', icon: ExclamationTriangleIcon },
+// { id: 'details', name: '详细信息', icon: ShieldCheckIcon },
+// { id: 'timeline', name: '时间线', icon: ClockIcon },
+// { id: 'references', name: '参考资料', icon: UserIcon }
+// ]
+
+ return (
+ <>
+
+ {cveData.id} - CVE Information
+
+
+ {/* 顶部 CVE ID 和标签区域 */}
+
+
+
+
{cveData.id}
+ {cveData.tag && (
+
+ {cveData.tag.text}
+
+ )}
+
+
+
+
+ {/* 分割线 */}
+
+
+
+ {/* 主要内容区域 */}
+
+
+ Required CVE Record Information
+
+
+ {/* 信息卡片 */}
+
+ {/* CNA 卡片 */}
+
+
+ CNA : MITRE Corporation
+
+
+
+
+ Description
+
+
+ {cveData.description}
+
+
+
+
+
+
+ Product Status
+
+
+
+
+
+ Information not provided
+
+
+
+
+
+
+
+ References
+
+
+ 3 Total
+
+
+
+
+
+
+
+ Published:
+ {cveData.publishedDate}
+
+
+ Updated:
+ {cveData.updatedDate}
+
+
+
+
+
+ {/* CVE Program 卡片 */}
+
+
CVE : Program
+
+
+
+
+
+ References
+
+
+ 2 Total
+
+
+
+
+
+
+
+ Updated:
+ {cveData.updatedDate}
+
+
+
+
+ This container includes required additional information provided by the CVE Program for this vulnerability.
+
+
+
+
+
+
+ >
+ )
+}
+
+CVEInfoPage.getProviders = (page: any, pageProps: any) => {
+ return (
+
+ {page}
+
+ )
+}
diff --git a/moon/apps/web/pages/[org]/rust/rust-ecosystem/ecosystem-cve/index.tsx b/moon/apps/web/pages/[org]/rust/rust-ecosystem/ecosystem-cve/index.tsx
new file mode 100644
index 000000000..6be0c53eb
--- /dev/null
+++ b/moon/apps/web/pages/[org]/rust/rust-ecosystem/ecosystem-cve/index.tsx
@@ -0,0 +1,303 @@
+import Head from 'next/head'
+import Image from 'next/image'
+import { AppLayout } from '@/components/Layout/AppLayout'
+import AuthAppProviders from '@/components/Providers/AuthAppProviders'
+import { useState } from 'react'
+import { MagnifyingGlassIcon } from '@heroicons/react/24/outline'
+import { useRouter } from 'next/router'
+
+export default function EcosystemCVEPage() {
+ const [search, setSearch] = useState('')
+ const [currentPage, setCurrentPage] = useState(1)
+ const [expandedIdx, setExpandedIdx] = useState(null)
+ const router = useRouter()
+
+ const cveList = [
+ {
+ id: 100,
+ title: 'CVE-2023-12345:示例漏洞描述',
+ tag: { text: '修复补丁已发布', color: 'green' },
+ detail: '该漏洞的修复补丁已发布,建议尽快升级。',
+ },
+ {
+ id: 101,
+ title: 'CVE-2023-12345:示例漏洞描述',
+ tag: { text: '远程更新可用', color: 'green' },
+ detail: '这是CVE-2023-12345的详细内容。此漏洞可能导致用户数据被曝光,并影响应用程序的性能',
+ },
+ {
+ id: 102,
+ title: 'CVE-2023-12345:示例漏洞描述',
+ tag: null,
+ detail: '暂无更多详情。',
+ },
+ {
+ id: 104,
+ title: 'CVE-2023-12345:示例漏洞描述',
+ tag: { text: '修复补丁已发布', color: 'green' },
+ detail: '该漏洞的修复补丁已发布,建议尽快升级。',
+ },
+ {
+ id: 105,
+ title: 'CVE-2023-12345:示例漏洞描述',
+ tag: null,
+ detail: '暂无更多详情。',
+ },
+ {
+ id: 107,
+ title: 'CVE-2023-12345:示例漏洞描述',
+ tag: { text: '由国际安全组织报告', color: 'blue' },
+ detail: '该漏洞由国际安全组织披露,建议关注官方通告。',
+ },
+ {
+ id: 108,
+ title: 'CVE-2023-12345:示例漏洞描述',
+ tag: { text: '由国际安全组织报告', color: 'blue' },
+ detail: '该漏洞由国际安全组织披露,建议关注官方通告。',
+ },
+ {
+ id: 109,
+ title: 'CVE-2023-12345:示例漏洞描述',
+ tag: { text: '由国际安全组织报告', color: 'blue' },
+ detail: '该漏洞由国际安全组织披露,建议关注官方通告。',
+ },
+ {
+ id: 110,
+ title: 'CVE-2023-12345:示例漏洞描述',
+ tag: { text: '由国际安全组织报告', color: 'blue' },
+ detail: '该漏洞由国际安全组织披露,建议关注官方通告。',
+ },
+ {
+ id: 111,
+ title: 'CVE-2023-12345:示例漏洞描述',
+ tag: { text: '由国际安全组织报告', color: 'blue' },
+ detail: '该漏洞由国际安全组织披露,建议关注官方通告。',
+ },
+
+ ]
+
+ const totalPages = 5
+ // const itemsPerPage = 10
+
+ return (
+ <>
+
+ Ecosystem CVE
+
+
+ {/* 搜索栏和标题区域 */}
+
+
+
+
+
+
+
+
setSearch(e.target.value)}
+ />
+
+
+
+
+
+ {/* All CVEs 标题 */}
+
+
+ {/* CVE 信息区 */}
+
+
+ {/* 标题下方的分割线 */}
+
+ {/* CVE列表 */}
+
+ {cveList.map((item, idx) => (
+
+
+
+ router.push(`/${router.query.org}/rust/rust-ecosystem/ecosystem-cve/cve-info/${item.id}`)}
+ >
+ {item.title}
+
+ {item.tag && (
+
+ {item.tag.text}
+
+ )}
+
+
+
+ {expandedIdx === idx && (
+
+
+ {item.detail}
+
+
+
+
+
+ )}
+ {/* 分割线 */}
+ {idx !== cveList.length - 1 && (
+
+ )}
+
+ ))}
+ {/* 最后一个CVE下方的分割线 */}
+
+
+
+
+
+ {/* 分页功能区 */}
+
+
+
+ {/* Previous 按钮 */}
+
+
+ {/* 当前页码 */}
+
{currentPage}
+
+ {/* Next 按钮 */}
+
+
+
+
+
+ >
+ )
+}
+
+EcosystemCVEPage.getProviders = (page: any, pageProps: any) => {
+ return (
+
+ {page}
+
+ )
+}
diff --git a/moon/apps/web/pages/[org]/rust/rust-ecosystem/index.tsx b/moon/apps/web/pages/[org]/rust/rust-ecosystem/index.tsx
index 6b853d2b9..0c74f5465 100644
--- a/moon/apps/web/pages/[org]/rust/rust-ecosystem/index.tsx
+++ b/moon/apps/web/pages/[org]/rust/rust-ecosystem/index.tsx
@@ -4,11 +4,13 @@ import { AppLayout } from '@/components/Layout/AppLayout'
import AuthAppProviders from '@/components/Providers/AuthAppProviders'
import { useState } from 'react'
import { MagnifyingGlassIcon } from '@heroicons/react/24/outline'
+import { useRouter } from 'next/router'
export default function RustEcosystemPage() {
const [search, setSearch] = useState('')
const [expandedIdx, setExpandedIdx] = useState(null)
+ const router = useRouter()
const cveList = [
@@ -115,8 +117,17 @@ export default function RustEcosystemPage() {
{/* crate 卡片 */}
{/* cve 卡片 */}
router.push(`/${router.query.org}/rust/rust-ecosystem/ecosystem-cve`)}
>
{/* rust 卡片 */}
{/* code 卡片 */}
{/* CVE 信息区 */}
-
+
{/* 标题区 */}
diff --git a/moon/apps/web/public/rust/rust-ecosystem/ecosystem-cve/Frame.png b/moon/apps/web/public/rust/rust-ecosystem/ecosystem-cve/Frame.png
new file mode 100644
index 000000000..a19f1afc4
Binary files /dev/null and b/moon/apps/web/public/rust/rust-ecosystem/ecosystem-cve/Frame.png differ
diff --git a/moon/apps/web/public/rust/rust-ecosystem/ecosystem-cve/cve-info.png b/moon/apps/web/public/rust/rust-ecosystem/ecosystem-cve/cve-info.png
new file mode 100644
index 000000000..a801d6372
Binary files /dev/null and b/moon/apps/web/public/rust/rust-ecosystem/ecosystem-cve/cve-info.png differ
diff --git a/moon/apps/web/public/rust/rust-ecosystem/ecosystem-cve/cve-info/cve-info.png b/moon/apps/web/public/rust/rust-ecosystem/ecosystem-cve/cve-info/cve-info.png
new file mode 100644
index 000000000..b076adc84
Binary files /dev/null and b/moon/apps/web/public/rust/rust-ecosystem/ecosystem-cve/cve-info/cve-info.png differ