یادآوری: اطلاعات این سامانه از منابع معرفی‌شده گردآوری می‌شود. پیش از هر اقدام فنی، جزئیات را در منبع اصلی بررسی کنید.
کم اولویت 15/100

Adding CSP (Content Security Policy) headers to Wordpress

Question How can I add Content Security Policies to a WordPress installation? Answer Locate the functions.php file for your WordPress theme. Open functions.php with your favorite editor and add the following code: function add_custom_security_headers() { header("Strict-Transport-Security: max-age=31536000; includeSubDomains; preload"); header("Content-Security-Policy: default-src 'self'; script-src 'self' https://trusted.cdn.com; style-src 'self' 'unsafe-inline'; img-src 'self' data:"); header("X-Frame-Options: SAMEORIGIN"); header("X-Content-Type-Options: nosniff"); header("Permissions-Policy: geolocation=(), microphone=()"); header("Referrer-Policy: no-referrer-when-downgrade"); } add_action('send_headers', 'add_custom_security_headers'); Save the file.

انتشار: 2024-12-16 20:06 آخرین مشاهده داده: 2026-10-07 16:04 1 منبع · 1 رسمیاعتماد متوسط · 57/100
اولویت VulnWatch 15/100 ترکیب سیگنال‌های ریسک موجود
CVSS / EPSS — / — شدت فنی / احتمال بهره‌برداری
کیفیت داده 62/100 نیازمند توجه · اعتماد متوسط
تازگی داده تازه به‌روز در ۷ روز · 1 منبع
راهنمای اقدام

الان چه کاری باید انجام شود؟

پایش و ارزیابی
کیفیت داده 62/100نیازمند توجه · 1 منبع؛ پیش از تغییر Production منبع اصلی را بررسی کنید.
راهکارراهکار ساختاریافته هنوز ثبت نشده است؛ مراجع اصلی را بررسی کنید.
رفتن به راهکار این راهنمای اقدام، RiskScorer را تغییر نمی‌دهد و جایگزین ارزیابی محیط شما نیست.
اولویت عملیاتی 2.5

چرا این مورد باید بررسی شود؟

این امتیاز مستقل از RiskScorer است و برای مرتب‌سازی اقدام‌های عملیاتی استفاده می‌شود.

Priority12
تغییر مهم: آسیب‌پذیری جدید
01

خلاصه آسیب‌پذیری

Question How can I add Content Security Policies to a WordPress installation? Answer Locate the functions.php file for your WordPress theme. Open functions.php with your favorite editor and add the following code: function add_custom_security_headers() { header("Strict-Transport-Security: max-age=31536000; includeSubDomains; preload"); header("Content-Security-Policy: default-src 'self'; script-src 'self' https://trusted.cdn.com; style-src 'self' 'unsafe-inline'; img-src 'self' data:"); header("X-Frame-Options: SAMEORIGIN"); header("X-Content-Type-Options: nosniff"); header("Permissions-Policy: geolocation=(), microphone=()"); header("Referrer-Policy: no-referrer-when-downgrade"); } add_action('send_headers', 'add_custom_security_headers'); Save the file.
✓

راهکار پیشنهادی برای رفع

اقدام پیشنهادی
در اطلاعات دریافت‌شده هنوز راهکار مشخصی ثبت نشده است.
در اطلاعات دریافت‌شده دستور اجرایی مشخصی پیدا نشد. برای بررسی کامل راهکار، منبع اصلی را باز کنید.
↺

تاریخچه تغییرات معنادار

فقط تغییرات امنیتی مهم مثل KEV، افزایش شدت/CVSS/EPSS، نسخه‌های درگیر و راهکار ثبت می‌شوند.
آسیب‌پذیری جدید

اطلاعیه امنیتی جدید ثبت شد.

new_advisory
◎

اعتماد، تازگی و پوشش داده

این شاخص عملیاتی از پوشش منابع، کامل‌بودن رکورد، تازگی داده و اختلاف بین منابع ساخته می‌شود و تضمین صحت نیست.
57/100
اعتماد متوسط اعتماد داده 62/100 نیازمند توجه داده تازه وضعیت تازگی به‌روز در ۷ روز تازگی مشاهده 63/100 کامل‌بودن · ناقص 52/100 پوشش منابع 1 منبع مرتبط 1 رسمی · 1 سطح ۱ 0 اختلاف بین منابع 3 خلأ کیفیت
cPanel Support Security رسمی
CVSS
—
شدت
low
محصول
cPanel / cPanel & WHM
نسخه درگیر
—
نسخه اصلاح‌شده
—
تاریخ انتشار منبع
2024-12-16
⌁

منبع هر داده

برای فیلدهای اصلی می‌توانید ببینید هر مقدار از کدام منبع ثبت شده است. اختلاف بین منابع پنهان نمی‌شود.
توضیحات 1 منبع
cPanel Support Securityرسمی
Question How can I add Content Security Policies to a WordPress installation?   Answer Locate the functions.php file for your WordPress theme. Open functions.php with your favorite editor and add the following code: function add_custom_security_headers() { header("Strict-Transport-Security: max-age=31536000; includeSubDomains; preload"); header("Content-Security-Policy: default-src 'self'; s...
منبع ↗
شدت 1 منبع
cPanel Support Securityرسمی
low
منبع ↗
خلاصه 1 منبع
cPanel Support Securityرسمی
Question How can I add Content Security Policies to a WordPress installation?   Answer Locate the functions.php file for your WordPress theme. Open functions.php with your favorite editor and add the following code: function add_custom_security_headers() { header("Strict-Transport-Security: max-age=31536000; includeSubDomains; preload"); header("Content-Security-Policy: default-src 'self'; s...
منبع ↗
عنوان 1 منبع
cPanel Support Securityرسمی
Adding CSP (Content Security Policy) headers to Wordpress
منبع ↗
↗