Skip to content
Back to skills

Arabic Web Security

BSecurity

Master web application security in Arabic

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
developmentjavascriptpythongojavabashsqlsecurity

Works with

  • cursor

Security analysis

B88/100
  • criticalAccesses sensitive system or user directories

Pro shows the line behind each finding and how to fix it

Scanned November 7, 2026

npx -y skills add salmandev/arabic-skills-library --skill arabic-web-security --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Arabic Web Security?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Arabic Web Security
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/salmandev-arabic-web-security/badge)](https://www.skillsdirectory.com/skills/salmandev-arabic-web-security)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: arabic-web-security
name_ar: أمن الويب
description: Master web application security in Arabic
description_ar: إتقان أمن تطبيقات الويب بالعربية
category: developer
language: ar
dialect: msa
rtl: true
platform_all: true
version: 1.0.0
author: salman-shaikh
---

## الهدف

حماية تطبيقات الويب من الثغرات الأمنية الشائعة باللغة العربية.

## OWASP Top 10

### ١. حقن SQL (SQL Injection)

**المشكلة:**
```sql
-- كود غير آمن
query = "SELECT * FROM users WHERE username = '" + user_input + "'"
```

**الحل:**
```python
# استخدام Prepared Statements
cursor.execute("SELECT * FROM users WHERE username = %s", (username,))
```

### ٢. كسر المصادقة (Broken Authentication)

**الحماية:**
```
✅ استخدام HTTPS دائماً
✅ تخزين كلمات مرور مشفرة (bcrypt)
✅ تفعيل MFA
✅ تحديد محاولات الدخول
✅ تجديد Session ID بعد الدخول
```

### ٣. تسرب بيانات حساسة (Data Exposure)

**الحماية:**
```
✅ تشفير البيانات الحساسة
✅ عدم تخزين بيانات غير ضرورية
✅ استخدام TLS 1.3
✅ تعطل الكاش للبيانات الحساسة
```

### ٤. كائنات خارجية غير آمنة (XXE)

**المشكلة:**
```xml
<!-- هجوم XXE -->
<!DOCTYPE foo [<!ENTITY xxe SYSTEM "file:///etc/passwd">]>
```

**الحل:**
```python
# تعطيل DTD
parser = defusedxml.ElementTree.parse(xml_string)
```

### ٥. كسر التحكم في الوصول (Broken Access Control)

**الحماية:**
```python
# التحقق من الصلاحيات
@require_role('admin')
def delete_user(user_id):
    # التحقق من الملكية
    if not current_user.owns(user_id):
        abort(403)
```

### ٦. إعدادات أمان خاطئة (Security Misconfiguration)

**قائمة فحص:**
```
□ تعطيل صفحات الخطأ التفصيلية
□ إزالة ملفات افتراضية
□ تحديث جميع الأنظمة
□ تفعيل Security Headers
□ إغلاق منافذ غير ضرورية
```

### ٧. برمجية فدية (XSS)

**الوقاية:**
```javascript
// تنظيف المدخلات
function sanitize(input) {
    return input.replace(/[<>\"'&]/g, function(c) {
        return {'<':'&lt;','>':'&gt;','"':'&quot;',"'":'&#x27;','&':'&amp;'}[c];
    });
}
```

### ٨. تحميل غير آمن (Insecure Deserialization)

**الحماية:**
```
✅ لا تفك كائنات من مصادر غير موثوقة
✅ تحقق من التوقيع الرقمي
✅ استخدم تنسيق JSON بدلاً من Pickle
```

### ٩. استخدام مكونات بها ثغرات

**الحل:**
```bash
# فحص التبعيات
npm audit
pip-audit
snyk test
```

### ١٠. تسجيل ومراقبة غير كافية (Logging)

**ما يجب تسجيله:**
```
✅ محاولات دخول فاشلة
✅ أخطاء تطبيق
✅ وصول لبيانات حساسة
✅ تغييرات صلاحيات
✅ نشاط مشبوه
```

## Security Headers

```nginx
# Nginx Configuration
add_header X-Frame-Options "DENY" always;
add_header X-Content-Type-Options "nosniff" always;
add_header X-XSS-Protection "1; mode=block" always;
add_header Strict-Transport-Security "max-age=31536000" always;
add_header Content-Security-Policy "default-src 'self'" always;
```

## أفضل الممارسات

✅ تحقق من جميع المدخلات
✅ استخدم مكتبات أمان معتمدة
✅ حدّث التبعيات بانتظام
✅ فعّل HTTPS
✅ استخدم Prepared Statements
✅ طبّق Principle of Least Privilege
✅ راقب وسجّل النشاط

❌ لا تثق بمدخلات المستخدم
❌ لا تخزن كلمات مرور بنص واضح
❌ لا تعرض معلومات حساسة في أخطاء
❌ لا تستخدم كود قديم بدون مراجعة

---

## الكلمات المفتاحية

عربي: "أمن ويب", "حماية تطبيقات", "OWASP", "ثغرات"
English: "web security arabic", "application security", "OWASP"

---

## سجل التغييرات

### v1.0.0
- الإصدار الأولي

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.