Exploit database

GH-e58b7d1184f3635ba66b8c570738a929

sw0rd1ight/cve-2026-1312

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-1312

1 source

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files3
sw0rd1ight/cve-2026-1312Revision 69b4b4616824

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

vuln/migrations/0002_auto_20260208_1100.py

Python · 763 bytes
# Generated by Django 5.2.9 on 2026-02-08 11:00

from django.db import migrations


from django.db import migrations

def create_initial_data(apps, schema_editor):
    Author = apps.get_model('vuln', 'Author')
    Book = apps.get_model('vuln', 'Book')
    
    # 创建作者
    author1 = Author.objects.create(name="John Doe", password="password123")
    author2 = Author.objects.create(name="Jane Smith", password="securepass")
    
    # 创建书籍
    Book.objects.create(title="Python Programming", author=author1)
    Book.objects.create(title="Django Guide", author=author2)

class Migration(migrations.Migration):
    dependencies = [
        ('vuln', '0001_initial'),
    ]

    operations = [
        migrations.RunPython(create_initial_data),
    ]