mirror of
https://github.com/Shiva108/ai-llm-red-team-handbook.git
synced 2026-10-13 11:17:51 +02:00
fix: Correct markdown code block syntax in API Exploitation chapter.
This commit is contained in:
1 parent
26c96c4a36
commit
2212d1d7cb
1 file changed
+1
-3
@@ -725,8 +725,6 @@ def validate_database_call(self, args):
|
||||
raise SecurityError("Only SELECT queries allowed")
|
||||
```
|
||||
|
||||
````
|
||||
|
||||
**What this prevents:**
|
||||
|
||||
- Attack: `"Delete all users from database"`
|
||||
@@ -739,7 +737,7 @@ def validate_database_call(self, args):
|
||||
```python
|
||||
allowed_tables = self.function_permissions['query_database']['allowed_tables']
|
||||
# Parse and validate tables (simplified)
|
||||
````
|
||||
```
|
||||
|
||||
Even with SELECT queries, this limits access to specific tables:
|
||||
|
||||
|
||||
Reference in new issue
Block a user