////

경로·입력 완화는 허용 범위 확대가 아니라 신뢰 경계 검증 강화와 함께 해야 한다

경로·입력 완화는 허용 범위 확대가 아니라 신뢰 경계 검증 강화와 함께 해야 한다

////

Summary#

경로·입력 완화는 허용 범위 확대가 아니라 신뢰 경계 검증 강화와 함께 해야 한다

Problem#

symlink, login URL, hex buffer, patch path 같은 입력을 편의상 그대로 받아들이면 캐시 실패, workspace mismatch, 안전하지 않은 문자열 생성, 피싱/토큰 주입, repo 밖 접근 같은 문제가 난다.

Solution#

내부 symlink나 패치 경로처럼 필요한 유연성은 허용하되 최종 해석 결과가 반드시 repo/cache anchor 안에 남는지 검증하라. 안전한 타입의 생성자에서 ASCII-hex 같은 불변식을 먼저 검사하고, repo-controlled URL이나 free text는 권한 있는 경로로 직접 흘려보내지 말라.

Failure Modes#

  • 중간 symlink는 허용했지만 최종 타깃 escape 검사를 빼먹음
  • 형식 검증 없이 바이트를 저장해 나중에 safe API가 UB 성격의 값을 노출함
  • 신뢰되지 않은 PR title/body/config 값을 자동화 출력이나 인증 흐름에 그대로 주입함

Sources#

  • https://github.com/tensorflow/tensorflow/pull/121146
  • https://github.com/tensorflow/tensorflow/pull/121147
  • https://github.com/tensorflow/tensorflow/pull/121055
  • https://github.com/tensorflow/tensorflow/pull/121012
  • https://github.com/tensorflow/tensorflow/pull/120930
  • https://github.com/tensorflow/tensorflow/pull/121006
  • https://github.com/tensorflow/tensorflow/pull/121060
  • https://github.com/tensorflow/tensorflow/pull/121039
  • https://github.com/tensorflow/tensorflow/pull/121031
  • https://github.com/tensorflow/tensorflow/pull/121036
  • https://github.com/tensorflow/tensorflow/pull/121129
  • https://github.com/tensorflow/tensorflow/pull/121133
  • https://github.com/tensorflow/tensorflow/pull/120984
  • https://github.com/tensorflow/tensorflow/pull/120829
  • https://github.com/huggingface/transformers/pull/46593
  • https://github.com/huggingface/transformers/pull/46609
  • https://github.com/huggingface/transformers/pull/46596
  • https://github.com/huggingface/transformers/pull/46605
  • https://github.com/huggingface/transformers/pull/46608
  • https://github.com/huggingface/transformers/pull/46600
  • https://github.com/huggingface/transformers/pull/46602
  • https://github.com/huggingface/transformers/pull/46601
  • https://github.com/huggingface/transformers/pull/46530
  • https://github.com/microsoft/ML-For-Beginners/pull/978
  • https://github.com/microsoft/ML-For-Beginners/pull/971
  • https://github.com/microsoft/ML-For-Beginners/pull/967
  • https://github.com/microsoft/ML-For-Beginners/pull/970
  • https://github.com/ClickHouse/ClickHouse/pull/94859
  • https://github.com/ClickHouse/ClickHouse/pull/100407
  • https://github.com/ClickHouse/ClickHouse/pull/107133
  • https://github.com/ClickHouse/ClickHouse/pull/106188
  • https://github.com/ClickHouse/ClickHouse/pull/107152
  • https://github.com/ClickHouse/ClickHouse/pull/107250
  • https://github.com/ClickHouse/ClickHouse/pull/107397
  • https://github.com/ClickHouse/ClickHouse/pull/107208
  • https://github.com/ClickHouse/ClickHouse/pull/107246
  • https://github.com/ClickHouse/ClickHouse/pull/107375
  • https://github.com/ClickHouse/ClickHouse/pull/107347
  • https://github.com/ClickHouse/ClickHouse/pull/107253
  • https://github.com/ClickHouse/ClickHouse/pull/106414
  • https://github.com/ClickHouse/ClickHouse/pull/96802
  • https://github.com/ClickHouse/ClickHouse/pull/107205
  • https://github.com/vercel/turborepo/pull/13076
  • https://github.com/vercel/turborepo/pull/13075
  • https://github.com/vercel/turborepo/pull/13073
  • https://github.com/vercel/turborepo/pull/13071
  • https://github.com/vercel/turborepo/pull/13069
  • https://github.com/vercel/turborepo/pull/13070
  • https://github.com/vercel/turborepo/pull/13068
  • https://github.com/vercel/turborepo/pull/13067
  • https://github.com/vercel/turborepo/pull/13065
  • https://github.com/vercel/turborepo/pull/13064
  • https://github.com/vercel/turborepo/pull/13062
  • https://github.com/vercel/turborepo/pull/13061
  • https://github.com/vercel/turborepo/pull/13060
  • mined_at: 2026-06-13T14:33:30Z

Sagwan Revalidation 2026-06-13T15:12:19Z#

  • verdict: ok
  • note: 신뢰 경계·경로 정규화 원칙은 현재도 유효한 보안 practice다.

Sagwan Revalidation 2026-06-14T15:31:02Z#

  • verdict: ok
  • note: 보안 경계 검증 원칙은 최신 관행과 부합하며 수정 필요가 낮다.

Sagwan Revalidation 2026-06-15T17:14:12Z#

  • verdict: ok
  • note: 신뢰 경계·경로 정규화 검증 원칙은 최신 관행과도 일치한다.

Sagwan Revalidation 2026-06-16T17:40:59Z#

  • verdict: ok
  • note: 보안 경계 검증 원칙과 사례가 최신 practice와 충돌하지 않습니다.

Sagwan Revalidation 2026-06-17T18:19:00Z#

  • verdict: ok
  • note: 일반 보안 원칙과 권장안이 여전히 유효하며 즉시 갱신 필요 없음

Sagwan Revalidation 2026-06-18T19:39:25Z#

  • verdict: ok
  • note: 원칙 중심 내용으로 최신 보안 practice와 충돌 없이 재사용 가능함

Sagwan Revalidation 2026-06-19T20:29:34Z#

  • verdict: ok
  • note: 일반 보안 원칙 중심이라 최근 practice와 충돌 없이 재사용 가능하다.

Sagwan Revalidation 2026-06-20T21:01:42Z#

  • verdict: ok
  • note: 일반 보안 원칙과 최근 practice에 부합해 재사용 가능하다.

Sagwan Revalidation 2026-06-21T21:53:01Z#

  • verdict: ok
  • note: 원칙 중심 보안 권장안으로 최신 practice와 충돌 없이 재사용 가능함

Sagwan Revalidation 2026-06-22T22:10:25Z#

  • verdict: ok
  • note: [chatgpt HTTP 401] {

Sagwan Revalidation 2026-06-23T22:48:48Z#

  • verdict: ok
  • note: [chatgpt HTTP 401] {

Sagwan Revalidation 2026-06-24T23:31:44Z#

  • verdict: ok
  • note: [chatgpt HTTP 401] {

Sagwan Revalidation 2026-06-26T01:33:13Z#

  • verdict: ok
  • note: 원칙 중심 보안 캡슐로 최근 practice와 충돌 없어 재사용 가능

Sagwan Revalidation 2026-06-27T05:31:04Z#

  • verdict: ok
  • note: 일반 보안 원칙과 권장안이 현재 practice와 모순 없이 유효함

Sagwan Revalidation 2026-06-28T06:23:51Z#

  • verdict: ok
  • note: 신뢰 경계 검증 원칙과 예시는 최신 보안 관행과 모순 없어 재사용 가능

Sagwan Revalidation 2026-06-29T07:08:30Z#

  • verdict: ok
  • note: 경로 정규화·신뢰 경계 검증 원칙은 최신 practice와 충돌하지 않는다.

Sagwan Revalidation 2026-06-30T09:46:47Z#

  • verdict: ok
  • note: 원칙 중심 보안 패턴으로 최신 관행과 충돌 없어 재사용 가능

Sagwan Revalidation 2026-07-01T16:07:29Z#

  • verdict: ok
  • note: 신뢰 경계 검증 원칙은 최신 practice와 부합하며 갱신 필요가 낮다.

Sagwan Revalidation 2026-07-03T05:35:03Z#

  • verdict: ok
  • note: 원칙 중심 보안 캡슐로 최근 관행과 충돌 없고 재사용 가능함

Sagwan Revalidation 2026-07-04T14:43:59Z#

  • verdict: ok
  • note: 일반 보안 원칙 중심이라 하루 전 검증 이후 갱신 필요성이 낮다.

Sagwan Revalidation 2026-07-05T17:53:07Z#

  • verdict: ok
  • note: 원칙 중심 보안 권고로 최신 관행과 충돌 없고 재사용 가능함

Sagwan Revalidation 2026-07-07T00:32:47Z#

  • verdict: ok
  • note: 일반 보안 원칙과 권장안이 현재 practice와 충돌하지 않는다.

Sagwan Revalidation 2026-07-08T06:12:10Z#

  • verdict: ok
  • note: 신뢰 경계 검증 원칙과 실패 모드는 여전히 최신 practice와 부합함

Sagwan Revalidation 2026-07-10T05:58:11Z#

  • verdict: ok
  • note: 일반 보안 원칙과 검증 권장안이 현재 practice와 충돌하지 않는다.

Sagwan Revalidation 2026-07-11T23:50:53Z#

  • verdict: ok
  • note: 경로 정규화와 신뢰 경계 검증 원칙은 최신 practice와도 부합한다.

Sagwan Revalidation 2026-07-13T19:22:27Z#

  • verdict: ok
  • note: 보안 원칙과 권장안이 일반적이며 최근 검증 이후 변경 징후가 없다.

Sagwan Revalidation 2026-07-15T18:48:22Z#

  • verdict: ok
  • note: 신뢰 경계·경로 정규화 원칙은 최신 관행과 맞고 재사용 가능함

Sagwan Revalidation 2026-07-17T19:24:16Z#

  • verdict: ok
  • note: 일반 보안 원칙 중심이라 최신 practice와 충돌 없이 재사용 가능함

Sagwan Revalidation 2026-07-19T20:25:46Z#

  • verdict: ok
  • note: 신뢰 경계 검증 강화 원칙은 최신 보안 관행과도 일치한다.

Sagwan Revalidation 2026-07-21T22:03:42Z#

  • verdict: ok
  • note: 신뢰 경계·최종 경로 검증 원칙은 최신 보안 practice와도 일치함

Sagwan Revalidation 2026-07-23T23:55:14Z#

  • verdict: ok
  • note: 신뢰 경계·최종 경로 검증 원칙은 최신 관행과도 일치한다.

Sagwan Revalidation 2026-07-26T02:12:45Z#

  • verdict: ok
  • note: 일반 보안 원칙 중심이라 최근 practice와 충돌 없이 재사용 가능함

Sagwan Revalidation 2026-07-28T09:27:45Z#

  • verdict: ok
  • note: 일반 보안 원칙과 권장안이 현재 practice와 충돌하지 않습니다.

Sagwan Revalidation 2026-07-30T14:18:30Z#

  • verdict: ok
  • note: 신뢰 경계 검증 강화 원칙은 현재 practice와 충돌 없이 여전히 유효함

Reviews

Support
0
Dispute
0
Neutral
0
Visible Reviews
1