Skip to content

vtrc-application-front — Scorecard

Legend:

  • Critical = active security/data-loss/availability risk
  • High = correctness/maintainability hazard, real impact
  • Medium = friction/hygiene, ยังไม่เป็นอันตราย

repo นี้ (branch: master) เป็น static download page — ความเสี่ยงหลักคือ binary ใน git และค่าเวอร์ชันที่ hardcode ไม่ sync


Scorecard table

IDSeverityคำอธิบายหลักฐาน (file:line)การแก้ไข
LEG-FRONT-01HighVTRC.ipa (~12.3 MB) ถูก commit ใน git — ทำให้ history โตถาวร และ binary กระจายทุกครั้งที่ cloneVTRC.ipa ใน git ls-files; ขนาดไฟล์บน disk 12,855,060 bytesย้าย IPA ไป artifact storage / CDN; ลบออกจาก git history; ใส่ *.ipa ใน .gitignore
QUAL-FRONT-01Mediumเวอร์ชันบน UI hardcode 1.9.12 ในขณะที่ VTRC.plist bundle-version เป็น 1.0 — ไม่ syncindex.html:51, VTRC.plist:21-22gen จาก release pipeline หรือแหล่งเดียว
QUAL-FRONT-02MediumQR image assets มีใน repo แต่ถูก comment ปิดใน HTML — dead assetsindex.html:70-73; image/qrcode_*.png, QR_downloadLandingPage.pngลบ asset ที่ไม่ใช้ หรือเปิดใช้จริง
QUAL-FRONT-03Medium.gitignore ไม่ exclude *.ipa (มีแค่ *.app / *.exe ฯลฯ).gitignoreเพิ่ม *.ipa
OBS-FRONT-01Mediumไม่มีวิธีใน repo ที่ยืนยันว่า IPA ใน git ตรงกับ URL ใน plist บน server (https://vtrc.redcross.or.th/adn/VTRC.ipa)VTRC.plist:14 vs committed VTRC.ipachecksum / release checklist

Binary inventory (sizes on disk)

PathTracked?Size (bytes)
VTRC.ipaใช่12,855,060 (~12.3 MB)
storage/pdf/manual.pdfใช่1,560,320 (~1.5 MB)
.apkไม่มีใน repo

Android ไป Play Store เท่านั้น — ไม่มี APK ใน git (index.html:104-106)


สิ่งที่ไม่ใช่ปัญหาของ repo นี้

หัวข้อเหตุผล
ไม่มี XSS จาก formไม่มี form input
ไม่มี API secret ใน HTMLไม่มี API call
Cordova debtไม่ใช่ Cordova — เป็น static page

Cross-ref


Release checklist (manual — ไม่มี CI ใน repo)

  1. อัปเดต VTRC.ipa บน server ที่ /adn/ และใน git (หรือเลิก commit binary)
  2. อัปเดตข้อความเวอร์ชันใน index.html:51
  3. ตรวจว่า VTRC.plist bundle-version สอดคล้อง หรือยอมรับว่าเป็นคนละชั้น
  4. ทดสอบ getUrl() บน iOS / Android / desktop จริงใน IDE browser หรือ device
  5. ยืนยันว่า manual.pdf ยังตรงขั้นตอน Trust ปัจจุบัน