File size: 467 Bytes
31ec5f0
 
 
 
 
 
 
 
c3717d3
31ec5f0
c3717d3
31ec5f0
c3717d3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31ec5f0
c3717d3
31ec5f0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
title: XSS PHP Scanner
emoji: πŸ”’
colorFrom: blue
colorTo: purple
sdk: docker
pinned: false
---

# XSS PHP Scanner API

A FastAPI-based API for detecting XSS vulnerabilities in PHP code using a fine-tuned CodeBERT model.

## API Endpoints

### Health Check
```
GET /api/v1/health
```

### Scan Code
```
POST /api/v1/scan
{
    "code": "<?php echo $_GET['name']; ?>",
    "language": "php"
}
```

## Model

Uses fine-tuned CodeBERT from `mekbus/codebert-xss-php`