🇰🇷 한글 설명
phpCOIN 1.2.2의 articles_funcs.php에서 rec_next 파라미터를 통한 SQL injection 취약점으로, 공격자가 ORDER BY 절 이후에서 SQL 구문을 수정할 수 있습니다. 직접적인 명령어 실행은 제한되나 문법 오류로 인한 오류 메시지를 통해 데이터베이스 경로 정보가 공개될 수 있습니다.
💡 쉬운 설명
phpCOIN 1.2.2 웹 소프트웨어의 rec_next라는 URL 파라미터에 악의적인 데이터베이스 명령어를 주입하여 시스템 정보를 노출시킬 수 있는 문제입니다. 에러 메시지를 통해 서버 내부 경로 정보가 유출될 위험이 있습니다.
🇺🇸 원문 (English)
SQL injection vulnerability in articles\articles_funcs.php in phpCOIN 1.2.2 allows remote attackers to modify SQL syntax and possibly execute SQL in limited circumstances via the rec_next parameter. NOTE: the original disclosure suggests that command injection is not feasible because the injection occurs after an "ORDER BY" clause, but it is likely that this bug could result in an error message path disclosure due to a syntax error, in some environments. Therefore this is an exposure and should be included in CVE.
📍 영향받는 시스템
phpCOIN 1.2.2 이하 버전
⚔️ 공격 벡터
articles_funcs.php의 rec_next GET/POST 파라미터에 SQL 페이로드 주입
🛡️ 대응 방법
phpCOIN을 최신 버전으로 업그레이드하거나 입력값 검증 및 prepared statement 구현
🔧 검증 코드
articles_funcs.php 파일이 시스템에 존재하고 rec_next 파라미터를 사용하면 취약점이 있을 가능성이 있습니다.
find / -name 'articles_funcs.php' 2>/dev/null | xargs grep -l 'rec_next' 2>/dev/null