teum. [샘플] 결제 서비스 · 규칙 + AI

2026-10-11T01:00:00.000Z · partial · R-042

규칙 발견12건정적 규칙·의존성 대조 근거
AI 검토결과 4건AI 분석 완료 · 실행 검증 안 함

규칙 분석과 AI 검토는 별도의 결과입니다. 0건은 전체 안전을 뜻하지 않습니다. 사람의 처리 상태는 재점검 결과와 별개입니다.

국소 JS·TS·Python 규칙·비밀정보 패턴과, 점검 범위에 기록된 의존성 취약점 대조 결과입니다. 미지원·미점검 영역과 실행 검증을 포함한 전체 안전을 보증하지 않습니다.

AI 검토 결과 4건

AI가 추론한 검토 결과입니다. 인용 대조와 반증 검토는 공격 실행·취약점 확정을 뜻하지 않습니다.

AI 검토 결과 01 · 위험도 중간 · 처리 상태 미처리 · 실행 검증 안 함

다른 사용자의 계정이 조회될 수 있어요

다른 사용자의 계정 정보가 응답에 포함될 수 있어요. 실제 반환 필드와 데이터의 민감도는 확인하지 못했어요.

이 항목의 확인 한계

  • 라우트 등록과 배포 설정을 확인하지 못해 실제 접근 가능 여부는 알 수 없어요.
  • DB 정책과 반환 필드, 계정 ID의 입수 가능성은 추가로 확인해야 해요.

먼저 확인할 일

요청한 사용자의 권한과 데이터 소유권을 어디에서 제한하는지 확인하세요.

성립 조건

코드 근거 · 처리 지점부터 확인

주요 근거 · 처리 지점 · src/accounts.ts:2–4
export async function account(id, userId) {
  return db.account.findUnique({ where: { id } });
}
추가 근거 · 입력 지점 · src/account-route.ts:3–8
export async function GET(request, { params }) {
  const user = await requireSession(request);
  if (!user) return new Response('Unauthorized', { status: 401 });
  const row = await account(params.id, user.id);
  return Response.json(row);
}
추가 근거 · 보호 조건 · src/session.ts:1–3
export async function requireSession(request) {
  return request.verifiedSession?.user ?? null;
}
추가 근거 · 연결 흐름 · src/database.ts:1–2
import { client } from 'database-client';
export const db = client;

수정 방향

계정 ID와 로그인한 사용자의 ID를 함께 조회 조건에 넣으세요. 기존 ORM과 반환 형식을 유지해야 한다면 조회 뒤 row.ownerId와 userId를 비교하고, 소유자가 다르거나 결과가 없을 때 null을 반환하세요.

주요 수정 · 처리 지점

src/accounts.ts:2–4

발견 시점 코드
export async function account(id, userId) {
  return db.account.findUnique({ where: { id } });
}
수정 제안 · 예시
export async function account(id, userId) {
  const row = await db.account.findUnique({ where: { id } });
  if (!row || row.ownerId !== userId) return null;
  return row;
}

자동 적용·병합하지 않습니다. 직접 검토할 수정 예시입니다.

수정 후 확인

공격 경로

로그인한 사용자가 요청의 params.id에 다른 계정의 ID를 넣어요. 호출부는 로그인한 사용자의 ID를 함께 전달하지만 account 함수는 계정 ID로만 조회해요. 소유자를 확인하지 않은 조회 결과가 응답에 담길 수 있어요.

반증 검토

세션이 없는 요청은 401로 거절돼요. 다만 유효한 세션이 있는 사용자의 요청에서는 params.id가 account로 전달되고, 함께 전달된 userId는 조회 조건에 쓰이지 않아요. 반환 전에도 소유자를 대조하는 코드는 보이지 않아 검토 대상으로 남겼어요. 이 흐름만으로 운영 환경의 취약점을 확정하지는 않아요. 데이터 클라이언트가 자동으로 소유자 조건을 넣거나 DB 정책으로 접근을 제한할 가능성은 추가로 확인해야 해요. 실제 배포 경로와 반환 데이터, 다른 계정 ID를 얻을 수 있는지도 확인하지 못했어요. 수정할 때는 기존 반환 계약을 유지하면서 row.ownerId와 userId가 일치하는 경우에만 결과를 반환하세요. 이 설명은 체험용 예시이며 코드 실행이나 실제 요청 재현을 수행한 결과는 아니에요.

AI 검토 결과 02 · 위험도 높음 · 처리 상태 수정 중 · 실행 검증 안 함

청구서 조회에서 소유자 확인이 빠져 있어요

다른 사용자의 청구서 정보가 노출될 수 있어요. 응답에 포함되는 금액·개인정보 항목은 실제 스키마를 확인해야 해요.

이 항목의 확인 한계

  • 라우트 등록과 배포 설정을 확인하지 못해 실제 접근 가능 여부는 알 수 없어요.
  • DB 정책과 반환 필드, 청구서 ID의 입수 가능성은 추가로 확인해야 해요.

먼저 확인할 일

요청한 사용자의 권한과 데이터 소유권을 어디에서 제한하는지 확인하세요.

성립 조건

코드 근거 · 처리 지점부터 확인

주요 근거 · 처리 지점 · src/invoices.ts:2–4
export async function invoice(id) {
  return db.invoice.findUnique({ where: { id } });
}
추가 근거 · 입력 지점 · src/invoice-route.ts:3–8
export async function GET(request, { params }) {
  const user = await requireSession(request);
  if (!user) return new Response('Unauthorized', { status: 401 });
  const row = await invoice(params.id);
  return Response.json(row);
}
추가 근거 · 보호 조건 · src/session.ts:1–3
export async function requireSession(request) {
  return request.verifiedSession?.user ?? null;
}
추가 근거 · 연결 흐름 · src/database.ts:1–2
import { client } from 'database-client';
export const db = client;

수정 방향

두 파일을 함께 수정하세요. invoice 함수에서 소유자를 확인하고, 호출부에서는 로그인한 사용자의 ID를 함께 전달하세요. 아래 예시는 소유자가 다르거나 청구서가 없으면 null을 반환해요. 실제 서비스의 응답 규칙에 맞춰 확인하세요.

주요 수정 · 처리 지점

src/invoices.ts:2–4

발견 시점 코드
export async function invoice(id) {
  return db.invoice.findUnique({ where: { id } });
}
수정 제안 · 예시
export async function invoice(id, userId) {
  const row = await db.invoice.findUnique({ where: { id } });
  if (!row || row.ownerId !== userId) return null;
  return row;
}

자동 적용·병합하지 않습니다. 직접 검토할 수정 예시입니다.

추가 수정 · 입력 지점

src/invoice-route.ts:6–6

발견 시점 코드
  const row = await invoice(params.id);
수정 제안 · 예시
  const row = await invoice(params.id, user.id);

자동 적용·병합하지 않습니다. 직접 검토할 수정 예시입니다.

수정 후 확인

공격 경로

로그인한 사용자가 params.id로 청구서를 선택해요. 호출부는 청구서 ID만 invoice 함수에 전달해요. 조회 함수는 소유자를 확인하지 않고 결과를 반환해요.

반증 검토

로그인 여부는 확인하지만 사용자 ID를 조회 함수에 전달하지 않아요. 조회 함수에도 소유자 확인이 없어 호출부와 조회 함수를 함께 수정하는 예시를 제공해요. DB에서 별도로 접근을 제한하는지는 확인하지 못했어요.

AI 검토 결과 03 · 위험도 높음 · 처리 상태 검토 중 · 실행 검증 안 함

프로필 입력이 권한 필드까지 바꿀 수 있어요

일반 사용자가 본인 계정의 권한이나 인증 관련 값을 바꿀 수 있어요. 실제 수정 가능한 필드는 DB 스키마와 정책을 확인해야 해요.

이 항목의 확인 한계

  • 실제 사용자 모델의 필드와 DB 권한 정책을 확인하지 못했어요.
  • 상위 입력 검증과 오류 응답 매핑, 라우트 등록 여부는 추가 확인이 필요해요.

먼저 확인할 일

요청한 사용자의 권한과 데이터 소유권을 어디에서 제한하는지 확인하세요.

성립 조건

코드 근거 · 처리 지점부터 확인

주요 근거 · 처리 지점 · src/profile.ts:2–4
export async function updateProfile(userId, input) {
  return db.user.update({ where: { id: userId }, data: input });
}
추가 근거 · 입력 지점 · src/profile-route.ts:3–9
export async function PATCH(request) {
  const user = await requireSession(request);
  if (!user) return new Response('Unauthorized', { status: 401 });
  const input = await request.json();
  await updateProfile(user.id, input);
  return new Response(null, { status: 204 });
}
추가 근거 · 보호 조건 · src/session.ts:1–3
export async function requireSession(request) {
  return request.verifiedSession?.user ?? null;
}
추가 근거 · 연결 흐름 · src/database.ts:1–2
import { client } from 'database-client';
export const db = client;

수정 방향

사용자가 바꿀 수 있는 필드만 새 객체에 담고 타입·길이를 검사하세요. 아래 예시는 표시 이름만 허용해요. 역할·권한 변경은 별도로 권한을 확인하는 서버 경로에서 처리하세요.

주요 수정 · 처리 지점

src/profile.ts:2–4

발견 시점 코드
export async function updateProfile(userId, input) {
  return db.user.update({ where: { id: userId }, data: input });
}
수정 제안 · 예시
export async function updateProfile(userId, input) {
  const displayName = typeof input?.displayName === 'string' ? input.displayName.trim() : '';
  if (!displayName || displayName.length > 80) throw new Error('Invalid display name');
  return db.user.update({ where: { id: userId }, data: { displayName } });
}

자동 적용·병합하지 않습니다. 직접 검토할 수정 예시입니다.

수정 후 확인

공격 경로

로그인한 사용자의 JSON 입력이 updateProfile을 거쳐 ORM의 data에 그대로 전달돼요. 변경 가능한 필드를 제한하지 않아 역할 같은 보호 필드도 입력으로 전달될 수 있어요.

반증 검토

요청 본문을 읽는 위치부터 ORM data까지 필드 선택이나 검증이 없어요. 조회 조건의 사용자 ID는 서버 세션에서 얻지만, 어떤 필드를 바꿀 수 있는지는 제한하지 않아요. 모델과 DB 정책이 제공되지 않아 실제 권한 상승으로 확정하지는 않아요.

AI 검토 결과 04 · 위험도 중간 · 처리 상태 미처리 · 실행 검증 안 함

사용한 비밀번호 재설정 토큰이 다시 쓰일 수 있어요

이미 사용한 재설정 링크가 남아 있으면 계정 비밀번호가 다시 바뀔 수 있어요. 동시 요청에서 토큰 사용을 한 번으로 제한하는지도 확인해야 해요.

이 항목의 확인 한계

  • DB 트리거·격리 수준과 외부 해시 함수의 구현은 제공되지 않았어요.
  • 토큰 발급·전달·로그 보관 및 기존 세션 폐기 정책은 검토 범위 밖이에요.

먼저 확인할 일

동시 요청이나 재시도에서도 권한과 처리 순서가 유지되는지 확인하세요.

성립 조건

코드 근거 · 처리 지점부터 확인

주요 근거 · 처리 지점 · src/password-reset.ts:2–6
export async function resetPassword(tokenHash, passwordHash) {
  const reset = await db.passwordReset.findUnique({ where: { tokenHash } });
  if (!reset || reset.expiresAt <= new Date()) throw new Error('Invalid token');
  await db.user.update({ where: { id: reset.userId }, data: { passwordHash } });
}
추가 근거 · 입력 지점 · src/password-reset-route.ts:3–8
export async function POST(request) {
  const { token, password } = await request.json();
  if (typeof token !== 'string' || typeof password !== 'string') return new Response('Invalid input', { status: 400 });
  await resetPassword(hashToken(token), await hashPassword(password));
  return new Response(null, { status: 204 });
}
추가 근거 · 보호 조건 · src/password-reset-route.ts:1–2
import { resetPassword } from './password-reset';
import { hashToken, hashPassword } from 'auth-crypto';
추가 근거 · 연결 흐름 · src/database.ts:1–2
import { client } from 'database-client';
export const db = client;

수정 방향

토큰의 유효성과 일회 사용을 DB에서 함께 제한하세요. 아래 예시는 만료 조건을 포함한 삭제가 정확히 한 행일 때만 같은 트랜잭션에서 비밀번호를 바꿔요. 갱신 실패 시 삭제도 롤백돼야 해요.

주요 수정 · 처리 지점

src/password-reset.ts:2–6

발견 시점 코드
export async function resetPassword(tokenHash, passwordHash) {
  const reset = await db.passwordReset.findUnique({ where: { tokenHash } });
  if (!reset || reset.expiresAt <= new Date()) throw new Error('Invalid token');
  await db.user.update({ where: { id: reset.userId }, data: { passwordHash } });
}
수정 제안 · 예시
export async function resetPassword(tokenHash, passwordHash) {
  return db.$transaction(async (tx) => {
    const reset = await tx.passwordReset.findUnique({ where: { tokenHash } });
    if (!reset) throw new Error('Invalid token');
    const consumed = await tx.passwordReset.deleteMany({ where: { tokenHash, expiresAt: { gt: new Date() } } });
    if (consumed.count !== 1) throw new Error('Invalid token');
    await tx.user.update({ where: { id: reset.userId }, data: { passwordHash } });
  });
}

자동 적용·병합하지 않습니다. 직접 검토할 수정 예시입니다.

수정 후 확인

공격 경로

재설정 토큰의 해시로 레코드를 찾고 만료를 확인한 뒤 비밀번호를 변경해요. 성공한 토큰을 삭제하거나 사용 처리하지 않아 만료 전 같은 토큰으로 다시 변경할 수 있는 흐름이에요.

반증 검토

만료 검사 이후 비밀번호 갱신만 수행하며 토큰을 소비하는 쓰기가 없어요. 호출부도 성공 뒤 토큰을 폐기하지 않아요. 단순히 조회 후 사용 표시만 추가하면 동시 요청이 함께 통과할 수 있으므로 조건부 삭제와 비밀번호 변경을 하나의 트랜잭션으로 묶는 예시를 제공해요. 실제 DB 격리 수준과 트리거는 별도 확인이 필요해요.

AI에 전달한 범위와 확인하지 못한 내용

수집된 검토 대상 중 11/27개 파일 · 61/369줄 전달 · 문맥에서 제외 0개 파일

전달한 줄 수는 전체 내용을 검증했다는 뜻이 아닙니다.

파일별 미점검 범위

읽지 않음 16개 · 일부만 읽음 1개 · 문맥에서 제외 0개

각 검토 단계의 코드 전달 기록을 합친 범위입니다. 전달한 줄 수는 코드의 검증 여부를 뜻하지 않습니다.

AI 검토 기록

근거를 확인해 검토할 항목 4건을 남겼어요. 조회·변경 권한과 재설정 토큰의 사용 조건을 각각 확인하세요.

반증으로 제외 0건 · 근거 부족 1건

모델 체험용 예시 · 실제 AI 호출 없음 · 기준 teum-review-sample
원본 SHA-256 00c855b4325fb88eb58e525f81f4349d3f7e8df81f093df61a1820b4eee3ca5e · 요청 0회

자체 흐름·인가 분석

소스와 사용자가 선언한 소유자 관계를 정적으로 연결한 기록입니다. 실제 DB의 RLS·연결 역할·집행 여부는 확인하지 못했으며 후보는 취약점 확정이 아닙니다.

입력 흐름 · 부분 분석

요청 처리 코드 2곳 · 검토 후보 0건

파일 2개에서 요청값이 SQL이나 명령 실행으로 이어지는지 살펴봤어요.

객체 인가 · 부분 분석

조회 코드 2곳 · 검토 후보 0건

조회한 데이터가 누구의 것인지 응답 전에 확인하는 코드를 살펴봤어요.

영수증 조회

app/api/invoices/receipt/route.ts:2:27 · 접근 제한 확인 필요

분석한 코드에서는 본인 소유의 행만 응답에 도달했어요.

청구서 조회

app/api/invoices/route.ts:2:27 · 접근 제한 확인 필요

다른 사용자의 데이터가 응답에 포함될 수 있는 코드 경로가 있어요.

서버 데이터 전달 · 부분 분석

서버 페이지에서 로그인 확인과 데이터 조회를 거쳐 어떤 필드가 화면으로 전달되는지 따라가요. 조회한 필드, 전달한 속성, 함수가 끝나는 위치를 각각 기록해요. 실제 접근 권한·데이터 민감도·DB 설정은 별도로 확인해야 해요.

getClaims 인증 API 호출

인증 토큰의 클레임을 요청한 위치예요. 최신 사용자 정보와 개별 데이터에 대한 접근 권한은 별도로 확인해야 해요.

invoices 조회 · 전체 열 선택

owner_id = getClaims JWT 주체(sub) (사용자 식별값의 존재를 확인하는 조건이 있어요)

Client prop record · 조회 객체 전달

전달 필드: * · record ← *. Client 본문은 분석하지 않았어요.

서버 함수의 중단·반환 지점

서버 함수가 처리를 멈추거나 결과를 반환하는 위치예요.

원본 분석 기록
{
  "archive_sha256": "00c855b4325fb88eb58e525f81f4349d3f7e8df81f093df61a1820b4eee3ca5e",
  "input_sha256": "b4a41f2d541c89c35df70ca3462697621e8578ddb8849b2d14f75a6ca3ec2af8",
  "toolchain_sha256": "0a2d98c38b4beb858229562b36fea48702146c93729605f729d878c15de69f75",
  "validation_sha256": "d6b19c64c8894d3448810d18bbe8b4d37386800b8521eb8a396cb58c486d2a69",
  "files": [
    {
      "path": "src/users/user.repository.ts",
      "path_hash": "4d999ef4f90292f29994d233e95363e5d29968bb86b65d997f0eac0ded12a91e"
    },
    {
      "path": "src/auth/auth.module.ts",
      "path_hash": "d5cfad084289d1504e5322be173d5f5af9b85f4f90316b440e269218e18bc457"
    },
    {
      "path": "src/auth/session.config.ts",
      "path_hash": "c146567d4a2b1fd92539552644c6e5de3f73722af7741f3b9e6d93adfcc3b887"
    },
    {
      "path": "src/orders/order-view.ts",
      "path_hash": "d4f5c5fe74533129c76dcb6a3c9ee68c385897fab99772342cc24e7ef4781eaa"
    },
    {
      "path": "src/auth/redirect.ts",
      "path_hash": "133662cd8b51cddebeccd472f59f3f9b6ea577e8a11af3008474c20fcab1b2b8"
    },
    {
      "path": "src/documents/download.ts",
      "path_hash": "c288ec74708ab39fb6490b324f416da37a7cb815b4475fc0daa1bb10aa5a4a84"
    },
    {
      "path": "src/auth/reset-token.ts",
      "path_hash": "c5988e58cf73c0683ecb2cc7ac490c638e74dbbaf1b00926420d05ac42098145"
    },
    {
      "path": "src/auth/verify-token.ts",
      "path_hash": "58262b36a2a22c2f2fb7d87345e8ced65d3d00b6c2a0ab454437782c59b99205"
    },
    {
      "path": "src/accounts.ts",
      "path_hash": "6697aeaa900d8e5170f21a0cc0e98c0c533c4ebb15c7a17788b4b5fac529e619"
    },
    {
      "path": "src/account-route.ts",
      "path_hash": "f3df44af2b22c4c01a6a7a70f1c09a2815ea8c93d1acac77762fea545590cdb0"
    },
    {
      "path": "src/session.ts",
      "path_hash": "96998a2148aa3d52ad3e80303d0ad88fc43a4afd08966b5330a5657021ae52bb"
    },
    {
      "path": "src/database.ts",
      "path_hash": "724f334a2b47a5e7cbcab252ce04fc232071d0bc058c96ed6fd4ac96e5dff308"
    },
    {
      "path": "src/invoices.ts",
      "path_hash": "82a4c9a1ac78091e12845c9b08a9adb3a3af2984bf0235d751020be1d8bd5571"
    },
    {
      "path": "src/invoice-route.ts",
      "path_hash": "f22d8a41458ec0206a820d3a4f75d4f0e5b7689eab192d4e165eaabde27d4a75"
    },
    {
      "path": "src/profile.ts",
      "path_hash": "248ec50f84308b93508694104399e054557d9335b712e479bda100feaaced45d"
    },
    {
      "path": "src/profile-route.ts",
      "path_hash": "bef134758c798bbbd0a43b09de714e00179270756295496b1b4bf16b2a7586b5"
    },
    {
      "path": "src/password-reset.ts",
      "path_hash": "7fa79373a1f5dc481be25a2df0f8a26bbaea0f51ea1c7daab1eecee9ad019a78"
    },
    {
      "path": "src/password-reset-route.ts",
      "path_hash": "d4943bd37dae3d90399b27908e527103d77c845ce9905b7b003dca4d11a3511f"
    },
    {
      "path": "app/api/invoices/route.ts",
      "path_hash": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67"
    },
    {
      "path": "app/api/invoices/receipt/route.ts",
      "path_hash": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5"
    },
    {
      "path": "lib/database.ts",
      "path_hash": "9b43036be92111f03f203f4ac7985d565917eef3849431e3100117c8c79d0326"
    },
    {
      "path": "app/invoices/panel.tsx",
      "path_hash": "595853ae7208b1282e7e987bda17d82683158c852c8cdef80d7111f531b3ba97"
    },
    {
      "path": "app/invoices/page.tsx",
      "path_hash": "237463960f1d92028073ba82bd7857e16da64c358d22e861bd22b886ed244465"
    }
  ],
  "policy": {
    "state": "bound",
    "revision": 1,
    "enforcement": "unverified"
  },
  "origin": "analysis",
  "schema": "teum-native-analysis-2",
  "components": {
    "flow": {
      "engine_version": "teum-typescript-flow-0.6",
      "status": "partial",
      "error_code": null,
      "coverage": {
        "supplied_files": 23,
        "parsed_files": 23,
        "entrypoints": 2,
        "visited_files": 2,
        "steps": 222,
        "calls": 2
      },
      "candidates": [],
      "relations": [],
      "unknowns": [
        {
          "reason": "unsupported_module_effect",
          "location": {
            "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
            "path": "app/api/invoices/receipt/route.ts",
            "line": 1,
            "column": 1,
            "role": "evidence"
          }
        },
        {
          "reason": "unsupported_module_effect",
          "location": {
            "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
            "path": "app/api/invoices/route.ts",
            "line": 1,
            "column": 1,
            "role": "evidence"
          }
        },
        {
          "reason": "unsupported_module_effect",
          "location": {
            "file_id": "237463960f1d92028073ba82bd7857e16da64c358d22e861bd22b886ed244465",
            "path": "app/invoices/page.tsx",
            "line": 2,
            "column": 1,
            "role": "evidence"
          }
        },
        {
          "reason": "unsupported_module_effect",
          "location": {
            "file_id": "9b43036be92111f03f203f4ac7985d565917eef3849431e3100117c8c79d0326",
            "path": "lib/database.ts",
            "line": 1,
            "column": 1,
            "role": "evidence"
          }
        },
        {
          "reason": "unsupported_module_effect",
          "location": {
            "file_id": "9b43036be92111f03f203f4ac7985d565917eef3849431e3100117c8c79d0326",
            "path": "lib/database.ts",
            "line": 2,
            "column": 1,
            "role": "evidence"
          }
        },
        {
          "reason": "unsupported_module_effect",
          "location": {
            "file_id": "d5cfad084289d1504e5322be173d5f5af9b85f4f90316b440e269218e18bc457",
            "path": "src/auth/auth.module.ts",
            "line": 1,
            "column": 1,
            "role": "evidence"
          }
        },
        {
          "reason": "unsupported_module_effect",
          "location": {
            "file_id": "58262b36a2a22c2f2fb7d87345e8ced65d3d00b6c2a0ab454437782c59b99205",
            "path": "src/auth/verify-token.ts",
            "line": 1,
            "column": 1,
            "role": "evidence"
          }
        },
        {
          "reason": "unsupported_module_effect",
          "location": {
            "file_id": "724f334a2b47a5e7cbcab252ce04fc232071d0bc058c96ed6fd4ac96e5dff308",
            "path": "src/database.ts",
            "line": 1,
            "column": 1,
            "role": "evidence"
          }
        },
        {
          "reason": "unsupported_module_effect",
          "location": {
            "file_id": "d4943bd37dae3d90399b27908e527103d77c845ce9905b7b003dca4d11a3511f",
            "path": "src/password-reset-route.ts",
            "line": 2,
            "column": 1,
            "role": "evidence"
          }
        },
        {
          "reason": "unresolved_property",
          "location": {
            "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
            "path": "app/api/invoices/receipt/route.ts",
            "line": 3,
            "column": 191,
            "role": "evidence"
          }
        },
        {
          "reason": "indirect_call",
          "location": {
            "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
            "path": "app/api/invoices/receipt/route.ts",
            "line": 3,
            "column": 191,
            "role": "evidence"
          }
        },
        {
          "reason": "indirect_call",
          "location": {
            "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
            "path": "app/api/invoices/receipt/route.ts",
            "line": 3,
            "column": 16,
            "role": "evidence"
          }
        },
        {
          "reason": "ambiguous_value",
          "location": {
            "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
            "path": "app/api/invoices/receipt/route.ts",
            "line": 3,
            "column": 16,
            "role": "evidence"
          }
        },
        {
          "reason": "unresolved_property",
          "location": {
            "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
            "path": "app/api/invoices/receipt/route.ts",
            "line": 4,
            "column": 28,
            "role": "evidence"
          }
        },
        {
          "reason": "indirect_call",
          "location": {
            "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
            "path": "app/api/invoices/receipt/route.ts",
            "line": 4,
            "column": 28,
            "role": "evidence"
          }
        },
        {
          "reason": "exception_flow",
          "location": {
            "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
            "path": "app/api/invoices/receipt/route.ts",
            "line": 4,
            "column": 22,
            "role": "evidence"
          }
        },
        {
          "reason": "unresolved_property",
          "location": {
            "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
            "path": "app/api/invoices/receipt/route.ts",
            "line": 5,
            "column": 16,
            "role": "evidence"
          }
        },
        {
          "reason": "unresolved_property",
          "location": {
            "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
            "path": "app/api/invoices/receipt/route.ts",
            "line": 6,
            "column": 7,
            "role": "evidence"
          }
        },
        {
          "reason": "unresolved_property",
          "location": {
            "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
            "path": "app/api/invoices/receipt/route.ts",
            "line": 6,
            "column": 36,
            "role": "evidence"
          }
        },
        {
          "reason": "indirect_call",
          "location": {
            "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
            "path": "app/api/invoices/receipt/route.ts",
            "line": 6,
            "column": 62,
            "role": "evidence"
          }
        },
        {
          "reason": "ambiguous_value",
          "location": {
            "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
            "path": "app/api/invoices/receipt/route.ts",
            "line": 6,
            "column": 62,
            "role": "evidence"
          }
        },
        {
          "reason": "indirect_call",
          "location": {
            "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
            "path": "app/api/invoices/receipt/route.ts",
            "line": 7,
            "column": 14,
            "role": "evidence"
          }
        },
        {
          "reason": "ambiguous_value",
          "location": {
            "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
            "path": "app/api/invoices/receipt/route.ts",
            "line": 7,
            "column": 14,
            "role": "evidence"
          }
        },
        {
          "reason": "indirect_call",
          "location": {
            "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
            "path": "app/api/invoices/receipt/route.ts",
            "line": 10,
            "column": 19,
            "role": "evidence"
          }
        },
        {
          "reason": "ambiguous_value",
          "location": {
            "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
            "path": "app/api/invoices/receipt/route.ts",
            "line": 10,
            "column": 19,
            "role": "evidence"
          }
        },
        {
          "reason": "indirect_call",
          "location": {
            "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
            "path": "app/api/invoices/receipt/route.ts",
            "line": 11,
            "column": 26,
            "role": "evidence"
          }
        },
        {
          "reason": "exception_flow",
          "location": {
            "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
            "path": "app/api/invoices/receipt/route.ts",
            "line": 11,
            "column": 20,
            "role": "evidence"
          }
        },
        {
          "reason": "unresolved_property",
          "location": {
            "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
            "path": "app/api/invoices/receipt/route.ts",
            "line": 12,
            "column": 7,
            "role": "evidence"
          }
        },
        {
          "reason": "indirect_call",
          "location": {
            "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
            "path": "app/api/invoices/receipt/route.ts",
            "line": 12,
            "column": 30,
            "role": "evidence"
          }
        },
        {
          "reason": "ambiguous_value",
          "location": {
            "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
            "path": "app/api/invoices/receipt/route.ts",
            "line": 12,
            "column": 30,
            "role": "evidence"
          }
        },
        {
          "reason": "unresolved_property",
          "location": {
            "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
            "path": "app/api/invoices/receipt/route.ts",
            "line": 13,
            "column": 16,
            "role": "evidence"
          }
        },
        {
          "reason": "indirect_call",
          "location": {
            "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
            "path": "app/api/invoices/receipt/route.ts",
            "line": 14,
            "column": 21,
            "role": "evidence"
          }
        },
        {
          "reason": "ambiguous_value",
          "location": {
            "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
            "path": "app/api/invoices/receipt/route.ts",
            "line": 14,
            "column": 21,
            "role": "evidence"
          }
        },
        {
          "reason": "unresolved_property",
          "location": {
            "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
            "path": "app/api/invoices/receipt/route.ts",
            "line": 15,
            "column": 7,
            "role": "evidence"
          }
        },
        {
          "reason": "unresolved_property",
          "location": {
            "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
            "path": "app/api/invoices/receipt/route.ts",
            "line": 15,
            "column": 25,
            "role": "evidence"
          }
        },
        {
          "reason": "indirect_call",
          "location": {
            "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
            "path": "app/api/invoices/receipt/route.ts",
            "line": 15,
            "column": 41,
            "role": "evidence"
          }
        },
        {
          "reason": "ambiguous_value",
          "location": {
            "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
            "path": "app/api/invoices/receipt/route.ts",
            "line": 15,
            "column": 41,
            "role": "evidence"
          }
        },
        {
          "reason": "indirect_call",
          "location": {
            "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
            "path": "app/api/invoices/receipt/route.ts",
            "line": 16,
            "column": 10,
            "role": "evidence"
          }
        },
        {
          "reason": "exception_flow",
          "location": {
            "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
            "path": "app/api/invoices/receipt/route.ts",
            "line": 2,
            "column": 1,
            "role": "evidence"
          }
        },
        {
          "reason": "unresolved_property",
          "location": {
            "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
            "path": "app/api/invoices/route.ts",
            "line": 3,
            "column": 191,
            "role": "evidence"
          }
        },
        {
          "reason": "indirect_call",
          "location": {
            "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
            "path": "app/api/invoices/route.ts",
            "line": 3,
            "column": 191,
            "role": "evidence"
          }
        },
        {
          "reason": "indirect_call",
          "location": {
            "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
            "path": "app/api/invoices/route.ts",
            "line": 3,
            "column": 16,
            "role": "evidence"
          }
        },
        {
          "reason": "ambiguous_value",
          "location": {
            "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
            "path": "app/api/invoices/route.ts",
            "line": 3,
            "column": 16,
            "role": "evidence"
          }
        },
        {
          "reason": "unresolved_property",
          "location": {
            "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
            "path": "app/api/invoices/route.ts",
            "line": 4,
            "column": 28,
            "role": "evidence"
          }
        },
        {
          "reason": "indirect_call",
          "location": {
            "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
            "path": "app/api/invoices/route.ts",
            "line": 4,
            "column": 28,
            "role": "evidence"
          }
        },
        {
          "reason": "exception_flow",
          "location": {
            "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
            "path": "app/api/invoices/route.ts",
            "line": 4,
            "column": 22,
            "role": "evidence"
          }
        },
        {
          "reason": "unresolved_property",
          "location": {
            "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
            "path": "app/api/invoices/route.ts",
            "line": 5,
            "column": 16,
            "role": "evidence"
          }
        },
        {
          "reason": "unresolved_property",
          "location": {
            "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
            "path": "app/api/invoices/route.ts",
            "line": 6,
            "column": 7,
            "role": "evidence"
          }
        },
        {
          "reason": "unresolved_property",
          "location": {
            "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
            "path": "app/api/invoices/route.ts",
            "line": 6,
            "column": 36,
            "role": "evidence"
          }
        },
        {
          "reason": "indirect_call",
          "location": {
            "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
            "path": "app/api/invoices/route.ts",
            "line": 6,
            "column": 62,
            "role": "evidence"
          }
        },
        {
          "reason": "ambiguous_value",
          "location": {
            "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
            "path": "app/api/invoices/route.ts",
            "line": 6,
            "column": 62,
            "role": "evidence"
          }
        },
        {
          "reason": "indirect_call",
          "location": {
            "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
            "path": "app/api/invoices/route.ts",
            "line": 7,
            "column": 14,
            "role": "evidence"
          }
        },
        {
          "reason": "ambiguous_value",
          "location": {
            "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
            "path": "app/api/invoices/route.ts",
            "line": 7,
            "column": 14,
            "role": "evidence"
          }
        },
        {
          "reason": "indirect_call",
          "location": {
            "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
            "path": "app/api/invoices/route.ts",
            "line": 10,
            "column": 19,
            "role": "evidence"
          }
        },
        {
          "reason": "ambiguous_value",
          "location": {
            "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
            "path": "app/api/invoices/route.ts",
            "line": 10,
            "column": 19,
            "role": "evidence"
          }
        },
        {
          "reason": "indirect_call",
          "location": {
            "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
            "path": "app/api/invoices/route.ts",
            "line": 11,
            "column": 26,
            "role": "evidence"
          }
        },
        {
          "reason": "exception_flow",
          "location": {
            "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
            "path": "app/api/invoices/route.ts",
            "line": 11,
            "column": 20,
            "role": "evidence"
          }
        },
        {
          "reason": "unresolved_property",
          "location": {
            "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
            "path": "app/api/invoices/route.ts",
            "line": 12,
            "column": 7,
            "role": "evidence"
          }
        },
        {
          "reason": "indirect_call",
          "location": {
            "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
            "path": "app/api/invoices/route.ts",
            "line": 12,
            "column": 30,
            "role": "evidence"
          }
        },
        {
          "reason": "ambiguous_value",
          "location": {
            "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
            "path": "app/api/invoices/route.ts",
            "line": 12,
            "column": 30,
            "role": "evidence"
          }
        },
        {
          "reason": "unresolved_property",
          "location": {
            "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
            "path": "app/api/invoices/route.ts",
            "line": 13,
            "column": 16,
            "role": "evidence"
          }
        },
        {
          "reason": "indirect_call",
          "location": {
            "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
            "path": "app/api/invoices/route.ts",
            "line": 14,
            "column": 21,
            "role": "evidence"
          }
        },
        {
          "reason": "ambiguous_value",
          "location": {
            "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
            "path": "app/api/invoices/route.ts",
            "line": 14,
            "column": 21,
            "role": "evidence"
          }
        },
        {
          "reason": "indirect_call",
          "location": {
            "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
            "path": "app/api/invoices/route.ts",
            "line": 15,
            "column": 10,
            "role": "evidence"
          }
        },
        {
          "reason": "exception_flow",
          "location": {
            "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
            "path": "app/api/invoices/route.ts",
            "line": 2,
            "column": 1,
            "role": "evidence"
          }
        },
        {
          "reason": "unsupported_module_effect",
          "location": {
            "file_id": "595853ae7208b1282e7e987bda17d82683158c852c8cdef80d7111f531b3ba97",
            "path": "app/invoices/panel.tsx",
            "line": 1,
            "column": 1,
            "role": "evidence"
          }
        },
        {
          "reason": "unsupported_module_effect",
          "location": {
            "file_id": "d5cfad084289d1504e5322be173d5f5af9b85f4f90316b440e269218e18bc457",
            "path": "src/auth/auth.module.ts",
            "line": 18,
            "column": 1,
            "role": "evidence"
          }
        },
        {
          "reason": "unsupported_module_effect",
          "location": {
            "file_id": "133662cd8b51cddebeccd472f59f3f9b6ea577e8a11af3008474c20fcab1b2b8",
            "path": "src/auth/redirect.ts",
            "line": 14,
            "column": 1,
            "role": "evidence"
          }
        },
        {
          "reason": "unsupported_module_effect",
          "location": {
            "file_id": "c5988e58cf73c0683ecb2cc7ac490c638e74dbbaf1b00926420d05ac42098145",
            "path": "src/auth/reset-token.ts",
            "line": 7,
            "column": 1,
            "role": "evidence"
          }
        },
        {
          "reason": "unsupported_module_effect",
          "location": {
            "file_id": "c146567d4a2b1fd92539552644c6e5de3f73722af7741f3b9e6d93adfcc3b887",
            "path": "src/auth/session.config.ts",
            "line": 9,
            "column": 1,
            "role": "evidence"
          }
        },
        {
          "reason": "unsupported_module_effect",
          "location": {
            "file_id": "58262b36a2a22c2f2fb7d87345e8ced65d3d00b6c2a0ab454437782c59b99205",
            "path": "src/auth/verify-token.ts",
            "line": 11,
            "column": 1,
            "role": "evidence"
          }
        },
        {
          "reason": "unsupported_module_effect",
          "location": {
            "file_id": "c288ec74708ab39fb6490b324f416da37a7cb815b4475fc0daa1bb10aa5a4a84",
            "path": "src/documents/download.ts",
            "line": 23,
            "column": 1,
            "role": "evidence"
          }
        },
        {
          "reason": "unsupported_module_effect",
          "location": {
            "file_id": "d4f5c5fe74533129c76dcb6a3c9ee68c385897fab99772342cc24e7ef4781eaa",
            "path": "src/orders/order-view.ts",
            "line": 81,
            "column": 1,
            "role": "evidence"
          }
        }
      ]
    },
    "authorization": {
      "engine_version": "teum-typescript-authorization-0.9",
      "status": "partial",
      "error_code": null,
      "coverage": {
        "supplied_files": 23,
        "parsed_files": 23,
        "entrypoints": 2,
        "visited_files": 23,
        "steps": 1308,
        "calls": 25
      },
      "candidates": [],
      "relations": [
        {
          "kind": "unknown",
          "operation": "read",
          "trace": [
            {
              "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
              "path": "app/api/invoices/receipt/route.ts",
              "line": 2,
              "column": 27,
              "role": "request"
            },
            {
              "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
              "path": "app/api/invoices/receipt/route.ts",
              "line": 4,
              "column": 22,
              "role": "verification"
            },
            {
              "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
              "path": "app/api/invoices/receipt/route.ts",
              "line": 3,
              "column": 16,
              "role": "auth_factory"
            },
            {
              "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
              "path": "app/api/invoices/receipt/route.ts",
              "line": 1,
              "column": 1,
              "role": "sdk_import"
            },
            {
              "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
              "path": "app/api/invoices/receipt/route.ts",
              "line": 5,
              "column": 16,
              "role": "actor"
            },
            {
              "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
              "path": "app/api/invoices/receipt/route.ts",
              "line": 6,
              "column": 3,
              "role": "authentication_exit"
            },
            {
              "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
              "path": "app/api/invoices/receipt/route.ts",
              "line": 8,
              "column": 26,
              "role": "request_url"
            },
            {
              "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
              "path": "app/api/invoices/receipt/route.ts",
              "line": 7,
              "column": 14,
              "role": "data_factory"
            },
            {
              "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
              "path": "app/api/invoices/receipt/route.ts",
              "line": 9,
              "column": 14,
              "role": "target"
            },
            {
              "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
              "path": "app/api/invoices/receipt/route.ts",
              "line": 11,
              "column": 20,
              "role": "query"
            },
            {
              "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
              "path": "app/api/invoices/receipt/route.ts",
              "line": 16,
              "column": 3,
              "role": "response"
            },
            {
              "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
              "path": "app/api/invoices/receipt/route.ts",
              "line": 13,
              "column": 16,
              "role": "row"
            }
          ],
          "response_states": [
            "owned"
          ]
        },
        {
          "kind": "unknown",
          "operation": "read",
          "trace": [
            {
              "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
              "path": "app/api/invoices/route.ts",
              "line": 2,
              "column": 27,
              "role": "request"
            },
            {
              "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
              "path": "app/api/invoices/route.ts",
              "line": 4,
              "column": 22,
              "role": "verification"
            },
            {
              "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
              "path": "app/api/invoices/route.ts",
              "line": 3,
              "column": 16,
              "role": "auth_factory"
            },
            {
              "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
              "path": "app/api/invoices/route.ts",
              "line": 1,
              "column": 1,
              "role": "sdk_import"
            },
            {
              "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
              "path": "app/api/invoices/route.ts",
              "line": 5,
              "column": 16,
              "role": "actor"
            },
            {
              "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
              "path": "app/api/invoices/route.ts",
              "line": 6,
              "column": 3,
              "role": "authentication_exit"
            },
            {
              "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
              "path": "app/api/invoices/route.ts",
              "line": 8,
              "column": 26,
              "role": "request_url"
            },
            {
              "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
              "path": "app/api/invoices/route.ts",
              "line": 7,
              "column": 14,
              "role": "data_factory"
            },
            {
              "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
              "path": "app/api/invoices/route.ts",
              "line": 9,
              "column": 14,
              "role": "target"
            },
            {
              "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
              "path": "app/api/invoices/route.ts",
              "line": 11,
              "column": 20,
              "role": "query"
            },
            {
              "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
              "path": "app/api/invoices/route.ts",
              "line": 15,
              "column": 3,
              "role": "response"
            },
            {
              "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
              "path": "app/api/invoices/route.ts",
              "line": 13,
              "column": 16,
              "role": "row"
            }
          ],
          "response_states": [
            "owned",
            "other"
          ]
        }
      ],
      "unknowns": [
        {
          "reason": "authorization_rls_unverified",
          "location": {
            "file_id": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5",
            "path": "app/api/invoices/receipt/route.ts",
            "line": 7,
            "column": 14,
            "role": "evidence"
          }
        },
        {
          "reason": "authorization_rls_unverified",
          "location": {
            "file_id": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67",
            "path": "app/api/invoices/route.ts",
            "line": 7,
            "column": 14,
            "role": "evidence"
          }
        }
      ]
    },
    "server_data": {
      "engine_version": "teum-typescript-server-data-0.1",
      "status": "partial",
      "error_code": null,
      "coverage": {
        "supplied_files": 23,
        "parsed_files": 23,
        "entrypoints": 1,
        "visited_files": 2,
        "steps": 51,
        "calls": 9,
        "client_bodies_analyzed": 0
      },
      "candidates": [],
      "relations": [],
      "unknowns": [
        {
          "reason": "server_data_call_unsupported",
          "location": {
            "file_id": "9b43036be92111f03f203f4ac7985d565917eef3849431e3100117c8c79d0326",
            "path": "lib/database.ts",
            "line": 4,
            "column": 23,
            "role": "unresolved"
          }
        },
        {
          "reason": "server_data_condition_unresolved",
          "location": {
            "file_id": "237463960f1d92028073ba82bd7857e16da64c358d22e861bd22b886ed244465",
            "path": "app/invoices/page.tsx",
            "line": 7,
            "column": 7,
            "role": "unresolved"
          }
        },
        {
          "reason": "server_data_client_body_not_analyzed",
          "location": {
            "file_id": "595853ae7208b1282e7e987bda17d82683158c852c8cdef80d7111f531b3ba97",
            "path": "app/invoices/panel.tsx",
            "line": 2,
            "column": 1,
            "role": "unresolved"
          }
        },
        {
          "reason": "server_data_policy_not_configured",
          "location": null
        },
        {
          "reason": "server_data_rls_unverified",
          "location": null
        }
      ],
      "policy_state": "not_configured",
      "rls_enforcement": "unverified",
      "field_sensitivity": "unclassified",
      "entries": [
        {
          "entry": {
            "file_id": "237463960f1d92028073ba82bd7857e16da64c358d22e861bd22b886ed244465",
            "path": "app/invoices/page.tsx",
            "line": 4,
            "column": 1,
            "role": "server_entry"
          },
          "authentications": [
            {
              "id": "d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35",
              "method": "getClaims",
              "factory": {
                "file_id": "9b43036be92111f03f203f4ac7985d565917eef3849431e3100117c8c79d0326",
                "path": "lib/database.ts",
                "line": 5,
                "column": 10,
                "role": "sdk_factory"
              },
              "verification": {
                "file_id": "237463960f1d92028073ba82bd7857e16da64c358d22e861bd22b886ed244465",
                "path": "app/invoices/page.tsx",
                "line": 6,
                "column": 45,
                "role": "auth_verification"
              }
            }
          ],
          "queries": [
            {
              "id": "4b227777d4dd1fc61c6f884f48641d02b4d121d3fd328cb08b5531fcacdabf8a",
              "table": "invoices",
              "factory": {
                "file_id": "9b43036be92111f03f203f4ac7985d565917eef3849431e3100117c8c79d0326",
                "path": "lib/database.ts",
                "line": 5,
                "column": 10,
                "role": "sdk_factory"
              },
              "selection": "all",
              "columns": [],
              "filters": [
                {
                  "column": "owner_id",
                  "value_source": "getClaims_sub",
                  "authentication_id": "d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35",
                  "presence_check": {
                    "file_id": "237463960f1d92028073ba82bd7857e16da64c358d22e861bd22b886ed244465",
                    "path": "app/invoices/page.tsx",
                    "line": 7,
                    "column": 17,
                    "role": "presence_check"
                  },
                  "location": {
                    "file_id": "237463960f1d92028073ba82bd7857e16da64c358d22e861bd22b886ed244465",
                    "path": "app/invoices/page.tsx",
                    "line": 8,
                    "column": 31,
                    "role": "filter"
                  }
                }
              ],
              "single": true,
              "location": {
                "file_id": "237463960f1d92028073ba82bd7857e16da64c358d22e861bd22b886ed244465",
                "path": "app/invoices/page.tsx",
                "line": 8,
                "column": 25,
                "role": "query"
              }
            }
          ],
          "handoffs": [
            {
              "prop": "record",
              "projection": "whole_record",
              "query_ids": [
                "4b227777d4dd1fc61c6f884f48641d02b4d121d3fd328cb08b5531fcacdabf8a"
              ],
              "authentication_ids": [],
              "fields": [
                "*"
              ],
              "mappings": [
                {
                  "prop_path": "record",
                  "source_field": "*"
                }
              ],
              "component": {
                "file_id": "595853ae7208b1282e7e987bda17d82683158c852c8cdef80d7111f531b3ba97",
                "path": "app/invoices/panel.tsx",
                "line": 2,
                "column": 1,
                "role": "client_component"
              },
              "location": {
                "file_id": "237463960f1d92028073ba82bd7857e16da64c358d22e861bd22b886ed244465",
                "path": "app/invoices/page.tsx",
                "line": 10,
                "column": 17,
                "role": "client_prop"
              },
              "presence_checks": [
                {
                  "file_id": "237463960f1d92028073ba82bd7857e16da64c358d22e861bd22b886ed244465",
                  "path": "app/invoices/page.tsx",
                  "line": 7,
                  "column": 17,
                  "role": "presence_check"
                }
              ]
            }
          ],
          "exits": [
            {
              "file_id": "9b43036be92111f03f203f4ac7985d565917eef3849431e3100117c8c79d0326",
              "path": "lib/database.ts",
              "line": 5,
              "column": 3,
              "role": "function_exit"
            },
            {
              "file_id": "237463960f1d92028073ba82bd7857e16da64c358d22e861bd22b886ed244465",
              "path": "app/invoices/page.tsx",
              "line": 7,
              "column": 25,
              "role": "function_exit"
            },
            {
              "file_id": "237463960f1d92028073ba82bd7857e16da64c358d22e861bd22b886ed244465",
              "path": "app/invoices/page.tsx",
              "line": 9,
              "column": 13,
              "role": "function_exit"
            },
            {
              "file_id": "237463960f1d92028073ba82bd7857e16da64c358d22e861bd22b886ed244465",
              "path": "app/invoices/page.tsx",
              "line": 10,
              "column": 3,
              "role": "function_exit"
            }
          ]
        }
      ]
    }
  }
}

규칙 발견 근거와 처리 상태 · 12건

위험도 중간 · 처리 상태 미처리

teum.sql.dynamic-query

src/users/user.repository.ts:42

  return dataSource.query(`SELECT id, email FROM users WHERE email = '${email}'`);

query·execute 계열 호출에서 문자열을 조합하는 패턴이에요.

먼저 확인할 조건

조합한 값에 요청·파일·DB 등 외부 입력이 도달하는지, 앞에서 검증하는지 확인하세요.

수정 방향

값은 드라이버의 매개변수로 전달하세요. 테이블·열 이름은 별도 허용 목록으로 제한하고 기존 반환값을 확인하세요.

검토 기준: 요청·저장 데이터가 SQL 문법, 셸, eval, 역직렬화에 도달하는가? 바인딩·고정 명령·안전한 파서가 이 경로를 끊는가?

위험도 중간 · 처리 상태 수정 중

teum.auth.jwt-hardcoded-key

src/auth/auth.module.ts:18

jwt.sign({ sub: user.id }, '[REDACTED]', { expiresIn: '15m' });

JWT 서명 키에 고정 문자열을 사용한 패턴이에요.

먼저 확인할 조건

테스트 예제인지 운영 키인지, 저장소나 배포 산출물에 키가 노출됐는지 확인하세요.

수정 방향

운영 키는 비밀정보 저장소로 옮기세요. 노출된 키는 코드에서 지우는 것과 별개로 폐기·교체해야 해요.

검토 기준: 비밀정보가 브라우저·로그·코드에 노출되는가? 토큰의 서명·대상·만료와 TLS 검증을 유지하는가? 가린 값의 유효성을 추측하지 않았는가?

위험도 낮음 · 처리 상태 검토 중

teum.web.cookie-secure-false

src/auth/session.config.ts:9

res.cookie('session', sessionId, {
  httpOnly: true,
  secure: false,
  sameSite: 'lax',
});

Express cookie·Next.js cookies.set 호출에 secure: false를 명시한 패턴이에요.

먼저 확인할 조건

운영 인증 쿠키인지, HTTPS 환경에서도 같은 설정이 적용되는지 확인하세요.

수정 방향

운영 인증 쿠키는 HTTPS와 Secure 설정을 함께 사용하고, 프록시·로그인 흐름에서 전달되는지 확인하세요.

검토 기준: 외부 HTML, 상태 변경 요청, 쿠키, CORS, 리다이렉트에 실제 입력 경로가 있는가? 용도와 허용 출처·정화 방식을 확인했는가?

위험도 중간 · 처리 상태 미처리

teum.web.dynamic-html

src/orders/order-view.ts:81

orderSummary.innerHTML = order.note;

innerHTML·outerHTML·HTML 삽입 API와 React의 __html 객체에 동적인 값을 사용하는 패턴이에요.

먼저 확인할 조건

요청·저장 데이터 등 신뢰하지 않는 HTML이 들어오는지와 정화 처리의 적용 위치를 확인하세요.

수정 방향

일반 텍스트는 텍스트 렌더링을 사용하세요. HTML이 꼭 필요하면 검증된 정화 도구의 허용 목록을 적용하세요.

검토 기준: 외부 HTML, 상태 변경 요청, 쿠키, CORS, 리다이렉트에 실제 입력 경로가 있는가? 용도와 허용 출처·정화 방식을 확인했는가?

위험도 높음 · 처리 상태 미처리

teum-secret-assignment

config/service.yaml:12

보호된 근거

비밀정보 보호를 위해 원문을 표시하지 않아요. 검사한 버전의 파일에서 해당 위치를 확인하세요.

실제 유효한 비밀정보인지는 확인하지 않았습니다.

키·토큰·비밀번호 이름에 긴 문자열을 할당하는 패턴이에요. 실제 유효한 비밀정보인지는 확인하지 않았어요.

먼저 확인할 조건

원본 파일에서 운영 값인지 예제인지 확인하세요. 원문 비밀정보를 리포트나 채팅에 붙여 넣지 마세요.

수정 방향

실제 노출된 값이면 발급처에서 폐기·교체하고 비밀정보 저장소로 옮기세요. 커밋 이력과 접근 기록도 확인하세요.

검토 기준: 비밀정보가 브라우저·로그·코드에 노출되는가? 토큰의 서명·대상·만료와 TLS 검증을 유지하는가? 가린 값의 유효성을 추측하지 않았는가?

위험도 중간 · 처리 상태 검토 중

teum.python.tls-verification-disabled

workers/notify.py:21

requests.get(endpoint, verify=False)

requests·HTTPX의 verify=False 또는 지원 aiohttp 커넥터·세션의 ssl=False를 지정한 패턴이에요.

먼저 확인할 조건

실제 운영 클라이언트 연결에 적용되는지와 사설 CA·인증서 체인 문제를 확인하세요. 모든 옵션 변수·사용자 클라이언트 래퍼를 추적하지 않아요.

수정 방향

인증서 검증을 켜고 필요한 CA·SSL 문맥을 지정하세요. 경고를 숨기는 것으로 검증을 대신하지 마세요.

검토 기준: 비밀정보가 브라우저·로그·코드에 노출되는가? 토큰의 서명·대상·만료와 TLS 검증을 유지하는가? 가린 값의 유효성을 추측하지 않았는가?

위험도 중간 · 처리 상태 수정 중

osv:GHSA-gc5v-m9x4-r6x2

requirements.txt:2

PyPI · requests
고정 버전: 2.19.1
공개 취약점: GHSA-gc5v-m9x4-r6x2
설치 여부·실행 경로·공격 가능성은 검증하지 않았습니다.

의존성 파일에 기록된 패키지 이름·버전이 OSV의 알려진 취약점과 일치해요. 실제 설치·배포 여부나 취약한 기능의 사용까지 확인한 것은 아니에요.

먼저 확인할 조건

이 패키지가 실제 서비스에 포함되는지, OSV 원문에 기재된 영향 조건에 해당하는지 먼저 확인하세요.

수정 방향

OSV 원문에서 현재 버전 계열의 영향 조건과 수정 버전을 확인하세요. 영향을 받지 않는 지원 버전으로 패키지와 잠금 파일을 갱신한 뒤, 호환성 테스트와 재점검을 진행하세요.

위험도 중간 · 처리 상태 미처리

teum.web.request-redirect

src/auth/redirect.ts:14

res.redirect(req.query.next);

요청 입력이 같은 함수 안에서 Express·Web Response·Next.js 리다이렉트 목적지로 이어지는 패턴이에요.

먼저 확인할 조건

외부 URL이나 //로 시작하는 주소가 들어갈 수 있는지, 앞에서 검증하는지 확인하세요.

수정 방향

목적지는 허용한 내부 경로나 고정된 origin으로 제한하고, URL을 해석한 결과를 검증하세요.

검토 기준: 외부 HTML, 상태 변경 요청, 쿠키, CORS, 리다이렉트에 실제 입력 경로가 있는가? 용도와 허용 출처·정화 방식을 확인했는가?

위험도 중간 · 처리 상태 검토 중

teum.path.request-sendfile

src/documents/download.ts:23

res.sendFile(req.params.filename);

요청 입력이 같은 함수 안에서 sendFile의 경로로 이어지는 패턴이에요.

먼저 확인할 조건

상위 경로 이동·인코딩·심볼릭 링크로 허용한 디렉터리를 벗어날 수 있는지 확인하세요.

수정 방향

사용자에게 경로를 직접 받기보다 허용된 파일 ID를 매핑하세요. 최종 경로와 파일 접근 권한도 검증하세요.

검토 기준: 외부 값이 파일 경로·fetch 목적지를 결정하는가? 정규화 후 루트 경계, DNS·리다이렉트, 크기·형식·압축 해제 제한이 유지되는가?

위험도 낮음 · 처리 상태 미처리

teum.auth.predictable-token

src/auth/reset-token.ts:7

const resetToken = Math.random().toString(36).slice(2);

Math.random 결과가 token·password·secret·nonce 등 명시한 이름의 변수로 이어진 후보예요. 변수 이름을 이용한 제한적 검사예요.

먼저 확인할 조건

이 값이 인증·재설정·CSRF·세션에 쓰이는지 확인하세요. 게임·표시용 난수의 모든 사용을 위험으로 판단하지 않아요.

수정 방향

인증 값은 crypto.randomBytes·randomUUID 또는 적절한 Web Crypto 보안 난수로 만들고 충분한 길이와 만료를 적용하세요.

검토 기준: 비밀정보가 브라우저·로그·코드에 노출되는가? 토큰의 서명·대상·만료와 TLS 검증을 유지하는가? 가린 값의 유효성을 추측하지 않았는가?

위험도 중간 · 처리 상태 수정 중

teum.auth.jwt-none-algorithm

src/auth/verify-token.ts:11

jwt.verify(token, verificationKey, { algorithms: ['HS256', 'none'] });

JWT 검증에서 허용 알고리즘에 none이 포함된 패턴이에요.

먼저 확인할 조건

외부 토큰을 받는 경로인지, 서명 검증 없이 인증이 성립할 수 있는지 확인하세요.

수정 방향

서비스가 사용하는 서명 알고리즘만 명시적으로 허용하고, 키·발급자·대상·만료 검증을 함께 확인하세요.

검토 기준: 비밀정보가 브라우저·로그·코드에 노출되는가? 토큰의 서명·대상·만료와 TLS 검증을 유지하는가? 가린 값의 유효성을 추측하지 않았는가?

위험도 중간 · 처리 상태 미처리

teum.python.unsafe-yaml

workers/import_config.py:16

yaml.load(payload, Loader=yaml.UnsafeLoader)

안전하지 않은 Python·C 기반 Loader 또는 unsafe_load 계열, Loader가 없는 지원 YAML 호출을 사용하는 패턴이에요.

먼저 확인할 조건

외부 YAML인지와 실제 PyYAML 버전·사용자 정의 태그의 필요성을 확인하세요. FullLoader와 SafeLoader를 같은 위험 로더로 취급하지 않아요.

수정 방향

일반 데이터에는 safe_load·safe_load_all이나 SafeLoader·CSafeLoader를 사용하고 크기와 스키마도 검증하세요.

검토 기준: 요청·저장 데이터가 SQL 문법, 셸, eval, 역직렬화에 도달하는가? 바인딩·고정 명령·안전한 파서가 이 경로를 끊는가?

검사 범위·실행 기록

[
  {
    "kind": "static",
    "status": "completed",
    "coverage": {
      "files": [
        {
          "path": "src/users/user.repository.ts",
          "path_hash": "4d999ef4f90292f29994d233e95363e5d29968bb86b65d997f0eac0ded12a91e"
        },
        {
          "path": "src/auth/auth.module.ts",
          "path_hash": "d5cfad084289d1504e5322be173d5f5af9b85f4f90316b440e269218e18bc457"
        },
        {
          "path": "src/auth/session.config.ts",
          "path_hash": "c146567d4a2b1fd92539552644c6e5de3f73722af7741f3b9e6d93adfcc3b887"
        },
        {
          "path": "src/orders/order-view.ts",
          "path_hash": "d4f5c5fe74533129c76dcb6a3c9ee68c385897fab99772342cc24e7ef4781eaa"
        },
        {
          "path": "workers/notify.py",
          "path_hash": "b29cdf8840b4d933091336a300992c735dfa2d152662740871372c2083e22d71"
        },
        {
          "path": "src/auth/redirect.ts",
          "path_hash": "133662cd8b51cddebeccd472f59f3f9b6ea577e8a11af3008474c20fcab1b2b8"
        },
        {
          "path": "src/documents/download.ts",
          "path_hash": "c288ec74708ab39fb6490b324f416da37a7cb815b4475fc0daa1bb10aa5a4a84"
        },
        {
          "path": "src/auth/reset-token.ts",
          "path_hash": "c5988e58cf73c0683ecb2cc7ac490c638e74dbbaf1b00926420d05ac42098145"
        },
        {
          "path": "src/auth/verify-token.ts",
          "path_hash": "58262b36a2a22c2f2fb7d87345e8ced65d3d00b6c2a0ab454437782c59b99205"
        },
        {
          "path": "workers/import_config.py",
          "path_hash": "782a4c1dee04a87bab7db5a397a0c33f9e350418770326081b978434b223c34b"
        },
        {
          "path": "src/accounts.ts",
          "path_hash": "6697aeaa900d8e5170f21a0cc0e98c0c533c4ebb15c7a17788b4b5fac529e619"
        },
        {
          "path": "src/account-route.ts",
          "path_hash": "f3df44af2b22c4c01a6a7a70f1c09a2815ea8c93d1acac77762fea545590cdb0"
        },
        {
          "path": "src/session.ts",
          "path_hash": "96998a2148aa3d52ad3e80303d0ad88fc43a4afd08966b5330a5657021ae52bb"
        },
        {
          "path": "src/database.ts",
          "path_hash": "724f334a2b47a5e7cbcab252ce04fc232071d0bc058c96ed6fd4ac96e5dff308"
        },
        {
          "path": "src/invoices.ts",
          "path_hash": "82a4c9a1ac78091e12845c9b08a9adb3a3af2984bf0235d751020be1d8bd5571"
        },
        {
          "path": "src/invoice-route.ts",
          "path_hash": "f22d8a41458ec0206a820d3a4f75d4f0e5b7689eab192d4e165eaabde27d4a75"
        },
        {
          "path": "src/profile.ts",
          "path_hash": "248ec50f84308b93508694104399e054557d9335b712e479bda100feaaced45d"
        },
        {
          "path": "src/profile-route.ts",
          "path_hash": "bef134758c798bbbd0a43b09de714e00179270756295496b1b4bf16b2a7586b5"
        },
        {
          "path": "src/password-reset.ts",
          "path_hash": "7fa79373a1f5dc481be25a2df0f8a26bbaea0f51ea1c7daab1eecee9ad019a78"
        },
        {
          "path": "src/password-reset-route.ts",
          "path_hash": "d4943bd37dae3d90399b27908e527103d77c845ce9905b7b003dca4d11a3511f"
        },
        {
          "path": "app/api/invoices/route.ts",
          "path_hash": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67"
        },
        {
          "path": "app/api/invoices/receipt/route.ts",
          "path_hash": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5"
        },
        {
          "path": "lib/database.ts",
          "path_hash": "9b43036be92111f03f203f4ac7985d565917eef3849431e3100117c8c79d0326"
        },
        {
          "path": "app/invoices/panel.tsx",
          "path_hash": "595853ae7208b1282e7e987bda17d82683158c852c8cdef80d7111f531b3ba97"
        },
        {
          "path": "app/invoices/page.tsx",
          "path_hash": "237463960f1d92028073ba82bd7857e16da64c358d22e861bd22b886ed244465"
        }
      ],
      "excluded": []
    },
    "error_code": null
  },
  {
    "kind": "secrets",
    "status": "completed",
    "coverage": {
      "files": [
        {
          "path": "src/users/user.repository.ts",
          "path_hash": "4d999ef4f90292f29994d233e95363e5d29968bb86b65d997f0eac0ded12a91e"
        },
        {
          "path": "src/auth/auth.module.ts",
          "path_hash": "d5cfad084289d1504e5322be173d5f5af9b85f4f90316b440e269218e18bc457"
        },
        {
          "path": "src/auth/session.config.ts",
          "path_hash": "c146567d4a2b1fd92539552644c6e5de3f73722af7741f3b9e6d93adfcc3b887"
        },
        {
          "path": "src/orders/order-view.ts",
          "path_hash": "d4f5c5fe74533129c76dcb6a3c9ee68c385897fab99772342cc24e7ef4781eaa"
        },
        {
          "path": "config/service.yaml",
          "path_hash": "ae6f23e9c3bfea12fdaedf237198c890e852d933a8c8752f200f10c166ff85ee"
        },
        {
          "path": "workers/notify.py",
          "path_hash": "b29cdf8840b4d933091336a300992c735dfa2d152662740871372c2083e22d71"
        },
        {
          "path": "requirements.txt",
          "path_hash": "4d7c51b1efe9043e44439a949dfd92e5827321b34082903477fd04876edb7552"
        },
        {
          "path": "src/auth/redirect.ts",
          "path_hash": "133662cd8b51cddebeccd472f59f3f9b6ea577e8a11af3008474c20fcab1b2b8"
        },
        {
          "path": "src/documents/download.ts",
          "path_hash": "c288ec74708ab39fb6490b324f416da37a7cb815b4475fc0daa1bb10aa5a4a84"
        },
        {
          "path": "src/auth/reset-token.ts",
          "path_hash": "c5988e58cf73c0683ecb2cc7ac490c638e74dbbaf1b00926420d05ac42098145"
        },
        {
          "path": "src/auth/verify-token.ts",
          "path_hash": "58262b36a2a22c2f2fb7d87345e8ced65d3d00b6c2a0ab454437782c59b99205"
        },
        {
          "path": "workers/import_config.py",
          "path_hash": "782a4c1dee04a87bab7db5a397a0c33f9e350418770326081b978434b223c34b"
        },
        {
          "path": "src/accounts.ts",
          "path_hash": "6697aeaa900d8e5170f21a0cc0e98c0c533c4ebb15c7a17788b4b5fac529e619"
        },
        {
          "path": "src/account-route.ts",
          "path_hash": "f3df44af2b22c4c01a6a7a70f1c09a2815ea8c93d1acac77762fea545590cdb0"
        },
        {
          "path": "src/session.ts",
          "path_hash": "96998a2148aa3d52ad3e80303d0ad88fc43a4afd08966b5330a5657021ae52bb"
        },
        {
          "path": "src/database.ts",
          "path_hash": "724f334a2b47a5e7cbcab252ce04fc232071d0bc058c96ed6fd4ac96e5dff308"
        },
        {
          "path": "src/invoices.ts",
          "path_hash": "82a4c9a1ac78091e12845c9b08a9adb3a3af2984bf0235d751020be1d8bd5571"
        },
        {
          "path": "src/invoice-route.ts",
          "path_hash": "f22d8a41458ec0206a820d3a4f75d4f0e5b7689eab192d4e165eaabde27d4a75"
        },
        {
          "path": "src/profile.ts",
          "path_hash": "248ec50f84308b93508694104399e054557d9335b712e479bda100feaaced45d"
        },
        {
          "path": "src/profile-route.ts",
          "path_hash": "bef134758c798bbbd0a43b09de714e00179270756295496b1b4bf16b2a7586b5"
        },
        {
          "path": "src/password-reset.ts",
          "path_hash": "7fa79373a1f5dc481be25a2df0f8a26bbaea0f51ea1c7daab1eecee9ad019a78"
        },
        {
          "path": "src/password-reset-route.ts",
          "path_hash": "d4943bd37dae3d90399b27908e527103d77c845ce9905b7b003dca4d11a3511f"
        },
        {
          "path": "app/api/invoices/route.ts",
          "path_hash": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67"
        },
        {
          "path": "app/api/invoices/receipt/route.ts",
          "path_hash": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5"
        },
        {
          "path": "lib/database.ts",
          "path_hash": "9b43036be92111f03f203f4ac7985d565917eef3849431e3100117c8c79d0326"
        },
        {
          "path": "app/invoices/panel.tsx",
          "path_hash": "595853ae7208b1282e7e987bda17d82683158c852c8cdef80d7111f531b3ba97"
        },
        {
          "path": "app/invoices/page.tsx",
          "path_hash": "237463960f1d92028073ba82bd7857e16da64c358d22e861bd22b886ed244465"
        }
      ],
      "excluded": []
    },
    "error_code": null
  },
  {
    "kind": "dependencies",
    "status": "completed",
    "coverage": {
      "files": [
        {
          "path": "requirements.txt",
          "path_hash": "4d7c51b1efe9043e44439a949dfd92e5827321b34082903477fd04876edb7552"
        }
      ],
      "excluded": [],
      "dependency_audit": {
        "provider": "OSV",
        "npm_packages": 0,
        "pypi_packages": 1,
        "checked_at": "2026-10-11T01:00:00.000Z",
        "queried_packages": 1,
        "advisories": 1
      }
    },
    "error_code": null
  },
  {
    "kind": "flow",
    "status": "partial",
    "coverage": {
      "supplied_files": 23,
      "parsed_files": 23,
      "entrypoints": 2,
      "visited_files": 2,
      "steps": 222,
      "calls": 2,
      "mode": "native_analysis",
      "engine_version": "teum-typescript-flow-0.6",
      "files": [
        {
          "path": "src/users/user.repository.ts",
          "path_hash": "4d999ef4f90292f29994d233e95363e5d29968bb86b65d997f0eac0ded12a91e"
        },
        {
          "path": "src/auth/auth.module.ts",
          "path_hash": "d5cfad084289d1504e5322be173d5f5af9b85f4f90316b440e269218e18bc457"
        },
        {
          "path": "src/auth/session.config.ts",
          "path_hash": "c146567d4a2b1fd92539552644c6e5de3f73722af7741f3b9e6d93adfcc3b887"
        },
        {
          "path": "src/orders/order-view.ts",
          "path_hash": "d4f5c5fe74533129c76dcb6a3c9ee68c385897fab99772342cc24e7ef4781eaa"
        },
        {
          "path": "src/auth/redirect.ts",
          "path_hash": "133662cd8b51cddebeccd472f59f3f9b6ea577e8a11af3008474c20fcab1b2b8"
        },
        {
          "path": "src/documents/download.ts",
          "path_hash": "c288ec74708ab39fb6490b324f416da37a7cb815b4475fc0daa1bb10aa5a4a84"
        },
        {
          "path": "src/auth/reset-token.ts",
          "path_hash": "c5988e58cf73c0683ecb2cc7ac490c638e74dbbaf1b00926420d05ac42098145"
        },
        {
          "path": "src/auth/verify-token.ts",
          "path_hash": "58262b36a2a22c2f2fb7d87345e8ced65d3d00b6c2a0ab454437782c59b99205"
        },
        {
          "path": "src/accounts.ts",
          "path_hash": "6697aeaa900d8e5170f21a0cc0e98c0c533c4ebb15c7a17788b4b5fac529e619"
        },
        {
          "path": "src/account-route.ts",
          "path_hash": "f3df44af2b22c4c01a6a7a70f1c09a2815ea8c93d1acac77762fea545590cdb0"
        },
        {
          "path": "src/session.ts",
          "path_hash": "96998a2148aa3d52ad3e80303d0ad88fc43a4afd08966b5330a5657021ae52bb"
        },
        {
          "path": "src/database.ts",
          "path_hash": "724f334a2b47a5e7cbcab252ce04fc232071d0bc058c96ed6fd4ac96e5dff308"
        },
        {
          "path": "src/invoices.ts",
          "path_hash": "82a4c9a1ac78091e12845c9b08a9adb3a3af2984bf0235d751020be1d8bd5571"
        },
        {
          "path": "src/invoice-route.ts",
          "path_hash": "f22d8a41458ec0206a820d3a4f75d4f0e5b7689eab192d4e165eaabde27d4a75"
        },
        {
          "path": "src/profile.ts",
          "path_hash": "248ec50f84308b93508694104399e054557d9335b712e479bda100feaaced45d"
        },
        {
          "path": "src/profile-route.ts",
          "path_hash": "bef134758c798bbbd0a43b09de714e00179270756295496b1b4bf16b2a7586b5"
        },
        {
          "path": "src/password-reset.ts",
          "path_hash": "7fa79373a1f5dc481be25a2df0f8a26bbaea0f51ea1c7daab1eecee9ad019a78"
        },
        {
          "path": "src/password-reset-route.ts",
          "path_hash": "d4943bd37dae3d90399b27908e527103d77c845ce9905b7b003dca4d11a3511f"
        },
        {
          "path": "app/api/invoices/route.ts",
          "path_hash": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67"
        },
        {
          "path": "app/api/invoices/receipt/route.ts",
          "path_hash": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5"
        },
        {
          "path": "lib/database.ts",
          "path_hash": "9b43036be92111f03f203f4ac7985d565917eef3849431e3100117c8c79d0326"
        },
        {
          "path": "app/invoices/panel.tsx",
          "path_hash": "595853ae7208b1282e7e987bda17d82683158c852c8cdef80d7111f531b3ba97"
        },
        {
          "path": "app/invoices/page.tsx",
          "path_hash": "237463960f1d92028073ba82bd7857e16da64c358d22e861bd22b886ed244465"
        }
      ],
      "unknowns": 73,
      "policy_state": "bound"
    },
    "error_code": null
  },
  {
    "kind": "authorization",
    "status": "partial",
    "coverage": {
      "supplied_files": 23,
      "parsed_files": 23,
      "entrypoints": 2,
      "visited_files": 23,
      "steps": 1308,
      "calls": 25,
      "mode": "native_analysis",
      "engine_version": "teum-typescript-authorization-0.9",
      "files": [
        {
          "path": "src/users/user.repository.ts",
          "path_hash": "4d999ef4f90292f29994d233e95363e5d29968bb86b65d997f0eac0ded12a91e"
        },
        {
          "path": "src/auth/auth.module.ts",
          "path_hash": "d5cfad084289d1504e5322be173d5f5af9b85f4f90316b440e269218e18bc457"
        },
        {
          "path": "src/auth/session.config.ts",
          "path_hash": "c146567d4a2b1fd92539552644c6e5de3f73722af7741f3b9e6d93adfcc3b887"
        },
        {
          "path": "src/orders/order-view.ts",
          "path_hash": "d4f5c5fe74533129c76dcb6a3c9ee68c385897fab99772342cc24e7ef4781eaa"
        },
        {
          "path": "src/auth/redirect.ts",
          "path_hash": "133662cd8b51cddebeccd472f59f3f9b6ea577e8a11af3008474c20fcab1b2b8"
        },
        {
          "path": "src/documents/download.ts",
          "path_hash": "c288ec74708ab39fb6490b324f416da37a7cb815b4475fc0daa1bb10aa5a4a84"
        },
        {
          "path": "src/auth/reset-token.ts",
          "path_hash": "c5988e58cf73c0683ecb2cc7ac490c638e74dbbaf1b00926420d05ac42098145"
        },
        {
          "path": "src/auth/verify-token.ts",
          "path_hash": "58262b36a2a22c2f2fb7d87345e8ced65d3d00b6c2a0ab454437782c59b99205"
        },
        {
          "path": "src/accounts.ts",
          "path_hash": "6697aeaa900d8e5170f21a0cc0e98c0c533c4ebb15c7a17788b4b5fac529e619"
        },
        {
          "path": "src/account-route.ts",
          "path_hash": "f3df44af2b22c4c01a6a7a70f1c09a2815ea8c93d1acac77762fea545590cdb0"
        },
        {
          "path": "src/session.ts",
          "path_hash": "96998a2148aa3d52ad3e80303d0ad88fc43a4afd08966b5330a5657021ae52bb"
        },
        {
          "path": "src/database.ts",
          "path_hash": "724f334a2b47a5e7cbcab252ce04fc232071d0bc058c96ed6fd4ac96e5dff308"
        },
        {
          "path": "src/invoices.ts",
          "path_hash": "82a4c9a1ac78091e12845c9b08a9adb3a3af2984bf0235d751020be1d8bd5571"
        },
        {
          "path": "src/invoice-route.ts",
          "path_hash": "f22d8a41458ec0206a820d3a4f75d4f0e5b7689eab192d4e165eaabde27d4a75"
        },
        {
          "path": "src/profile.ts",
          "path_hash": "248ec50f84308b93508694104399e054557d9335b712e479bda100feaaced45d"
        },
        {
          "path": "src/profile-route.ts",
          "path_hash": "bef134758c798bbbd0a43b09de714e00179270756295496b1b4bf16b2a7586b5"
        },
        {
          "path": "src/password-reset.ts",
          "path_hash": "7fa79373a1f5dc481be25a2df0f8a26bbaea0f51ea1c7daab1eecee9ad019a78"
        },
        {
          "path": "src/password-reset-route.ts",
          "path_hash": "d4943bd37dae3d90399b27908e527103d77c845ce9905b7b003dca4d11a3511f"
        },
        {
          "path": "app/api/invoices/route.ts",
          "path_hash": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67"
        },
        {
          "path": "app/api/invoices/receipt/route.ts",
          "path_hash": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5"
        },
        {
          "path": "lib/database.ts",
          "path_hash": "9b43036be92111f03f203f4ac7985d565917eef3849431e3100117c8c79d0326"
        },
        {
          "path": "app/invoices/panel.tsx",
          "path_hash": "595853ae7208b1282e7e987bda17d82683158c852c8cdef80d7111f531b3ba97"
        },
        {
          "path": "app/invoices/page.tsx",
          "path_hash": "237463960f1d92028073ba82bd7857e16da64c358d22e861bd22b886ed244465"
        }
      ],
      "unknowns": 2,
      "policy_state": "bound"
    },
    "error_code": null
  },
  {
    "kind": "server_data",
    "status": "partial",
    "coverage": {
      "supplied_files": 23,
      "parsed_files": 23,
      "entrypoints": 1,
      "visited_files": 2,
      "steps": 51,
      "calls": 9,
      "client_bodies_analyzed": 0,
      "mode": "native_analysis",
      "engine_version": "teum-typescript-server-data-0.1",
      "files": [
        {
          "path": "src/users/user.repository.ts",
          "path_hash": "4d999ef4f90292f29994d233e95363e5d29968bb86b65d997f0eac0ded12a91e"
        },
        {
          "path": "src/auth/auth.module.ts",
          "path_hash": "d5cfad084289d1504e5322be173d5f5af9b85f4f90316b440e269218e18bc457"
        },
        {
          "path": "src/auth/session.config.ts",
          "path_hash": "c146567d4a2b1fd92539552644c6e5de3f73722af7741f3b9e6d93adfcc3b887"
        },
        {
          "path": "src/orders/order-view.ts",
          "path_hash": "d4f5c5fe74533129c76dcb6a3c9ee68c385897fab99772342cc24e7ef4781eaa"
        },
        {
          "path": "src/auth/redirect.ts",
          "path_hash": "133662cd8b51cddebeccd472f59f3f9b6ea577e8a11af3008474c20fcab1b2b8"
        },
        {
          "path": "src/documents/download.ts",
          "path_hash": "c288ec74708ab39fb6490b324f416da37a7cb815b4475fc0daa1bb10aa5a4a84"
        },
        {
          "path": "src/auth/reset-token.ts",
          "path_hash": "c5988e58cf73c0683ecb2cc7ac490c638e74dbbaf1b00926420d05ac42098145"
        },
        {
          "path": "src/auth/verify-token.ts",
          "path_hash": "58262b36a2a22c2f2fb7d87345e8ced65d3d00b6c2a0ab454437782c59b99205"
        },
        {
          "path": "src/accounts.ts",
          "path_hash": "6697aeaa900d8e5170f21a0cc0e98c0c533c4ebb15c7a17788b4b5fac529e619"
        },
        {
          "path": "src/account-route.ts",
          "path_hash": "f3df44af2b22c4c01a6a7a70f1c09a2815ea8c93d1acac77762fea545590cdb0"
        },
        {
          "path": "src/session.ts",
          "path_hash": "96998a2148aa3d52ad3e80303d0ad88fc43a4afd08966b5330a5657021ae52bb"
        },
        {
          "path": "src/database.ts",
          "path_hash": "724f334a2b47a5e7cbcab252ce04fc232071d0bc058c96ed6fd4ac96e5dff308"
        },
        {
          "path": "src/invoices.ts",
          "path_hash": "82a4c9a1ac78091e12845c9b08a9adb3a3af2984bf0235d751020be1d8bd5571"
        },
        {
          "path": "src/invoice-route.ts",
          "path_hash": "f22d8a41458ec0206a820d3a4f75d4f0e5b7689eab192d4e165eaabde27d4a75"
        },
        {
          "path": "src/profile.ts",
          "path_hash": "248ec50f84308b93508694104399e054557d9335b712e479bda100feaaced45d"
        },
        {
          "path": "src/profile-route.ts",
          "path_hash": "bef134758c798bbbd0a43b09de714e00179270756295496b1b4bf16b2a7586b5"
        },
        {
          "path": "src/password-reset.ts",
          "path_hash": "7fa79373a1f5dc481be25a2df0f8a26bbaea0f51ea1c7daab1eecee9ad019a78"
        },
        {
          "path": "src/password-reset-route.ts",
          "path_hash": "d4943bd37dae3d90399b27908e527103d77c845ce9905b7b003dca4d11a3511f"
        },
        {
          "path": "app/api/invoices/route.ts",
          "path_hash": "ad61410d75a55e3458f21418bb5f55e62e4b2583bf0c9137c3ab9dccdef16e67"
        },
        {
          "path": "app/api/invoices/receipt/route.ts",
          "path_hash": "aae24f2f3cf0af043816d7c002d23b62ea31d0bea87870b0a748f41dde1f0ea5"
        },
        {
          "path": "lib/database.ts",
          "path_hash": "9b43036be92111f03f203f4ac7985d565917eef3849431e3100117c8c79d0326"
        },
        {
          "path": "app/invoices/panel.tsx",
          "path_hash": "595853ae7208b1282e7e987bda17d82683158c852c8cdef80d7111f531b3ba97"
        },
        {
          "path": "app/invoices/page.tsx",
          "path_hash": "237463960f1d92028073ba82bd7857e16da64c358d22e861bd22b886ed244465"
        }
      ],
      "unknowns": 5,
      "policy_state": "not_configured"
    },
    "error_code": null
  },
  {
    "kind": "ai",
    "status": "completed",
    "coverage": {
      "mode": "repository_review",
      "available_files": 27,
      "excluded_files": 0,
      "provided_files": 11,
      "provided_lines": 61,
      "total_lines": 369,
      "supplied_bytes": 10008,
      "files": [
        {
          "path_hash": "6697aeaa900d8e5170f21a0cc0e98c0c533c4ebb15c7a17788b4b5fac529e619",
          "path": "src/accounts.ts",
          "lines": [
            1,
            2,
            3,
            4
          ]
        },
        {
          "path_hash": "f3df44af2b22c4c01a6a7a70f1c09a2815ea8c93d1acac77762fea545590cdb0",
          "path": "src/account-route.ts",
          "lines": [
            1,
            2,
            3,
            4,
            5,
            6,
            7,
            8
          ]
        },
        {
          "path_hash": "96998a2148aa3d52ad3e80303d0ad88fc43a4afd08966b5330a5657021ae52bb",
          "path": "src/session.ts",
          "lines": [
            1,
            2,
            3
          ]
        },
        {
          "path_hash": "724f334a2b47a5e7cbcab252ce04fc232071d0bc058c96ed6fd4ac96e5dff308",
          "path": "src/database.ts",
          "lines": [
            1,
            2
          ]
        },
        {
          "path_hash": "82a4c9a1ac78091e12845c9b08a9adb3a3af2984bf0235d751020be1d8bd5571",
          "path": "src/invoices.ts",
          "lines": [
            1,
            2,
            3,
            4
          ]
        },
        {
          "path_hash": "f22d8a41458ec0206a820d3a4f75d4f0e5b7689eab192d4e165eaabde27d4a75",
          "path": "src/invoice-route.ts",
          "lines": [
            1,
            2,
            3,
            4,
            5,
            6,
            7,
            8
          ]
        },
        {
          "path_hash": "248ec50f84308b93508694104399e054557d9335b712e479bda100feaaced45d",
          "path": "src/profile.ts",
          "lines": [
            1,
            2,
            3,
            4
          ]
        },
        {
          "path_hash": "bef134758c798bbbd0a43b09de714e00179270756295496b1b4bf16b2a7586b5",
          "path": "src/profile-route.ts",
          "lines": [
            1,
            2,
            3,
            4,
            5,
            6,
            7,
            8,
            9
          ]
        },
        {
          "path_hash": "7fa79373a1f5dc481be25a2df0f8a26bbaea0f51ea1c7daab1eecee9ad019a78",
          "path": "src/password-reset.ts",
          "lines": [
            1,
            2,
            3,
            4,
            5,
            6
          ]
        },
        {
          "path_hash": "d4943bd37dae3d90399b27908e527103d77c845ce9905b7b003dca4d11a3511f",
          "path": "src/password-reset-route.ts",
          "lines": [
            1,
            2,
            3,
            4,
            5,
            6,
            7,
            8
          ]
        },
        {
          "path_hash": "237463960f1d92028073ba82bd7857e16da64c358d22e861bd22b886ed244465",
          "path": "app/invoices/page.tsx",
          "lines": [
            6,
            7,
            8,
            9,
            10
          ]
        }
      ]
    },
    "error_code": null
  }
]

재점검 비교

[]
source SHA-256 00c855b4325fb88eb58e525f81f4349d3f7e8df81f093df61a1820b4eee3ca5e
rules 5c8d9e43567aca4f912b85374839eef54916d70415713b91080cddd976bf45f5
engine {"semgrep":"1.178.0","gitleaks":"8.30.1","osv":"api-v1","typescript_flow":"teum-typescript-flow-0.6","typescript_authorization":"teum-typescript-authorization-0.9","typescript_server_data":"teum-typescript-server-data-0.1","typescript_local":"teum-typescript-local-0.2","native_toolchain":"0a2d98c38b4beb858229562b36fea48702146c93729605f729d878c15de69f75","native_validation":"d6b19c64c8894d3448810d18bbe8b4d37386800b8521eb8a396cb58c486d2a69","native_policy_revision":"1"}
AI completed · 자동 수정 없음