kcve.ai취약점 정보 · 내 자산 확인

CVE-2024-4320 Remote Code Execution due to LFI in '/install_extension' in parisneo/lollms-webui

파리뉴/롤름스-웹의 '/install_extension'에서 LFI로 인한 원격 코드 실행

설명

A remote code execution (RCE) vulnerability exists in the '/install_extension' endpoint of the parisneo/lollms-webui application, specifically within the `@router.post("/install_extension")` route handler. The vulnerability arises due to improper handling of the `name` parameter in the `ExtensionBuilder().build_extension()` method, which allows for local file inclusion (LFI) leading to arbitrary code execution. An attacker can exploit this vulnerability by crafting a malicious `name` parameter that causes the server to load and execute a `__init__.py` file from an arbitrary location, such as the upload directory for discussions. This vulnerability affects the latest version of parisneo/lollms-webui and can lead to remote code execution without requiring user interaction, especially when the application is exposed to an external endpoint or operated in headless mode.

원격 코드 실행(RCE) 취약점은 parisneo/lollms-webui 애플리케이션의 '/install_extension' 엔드포인트에 존재하며, 특히 '@router.post("/install_extension")` 경로 핸들러 내에 있습니다. 이 취약점은 `ExtensionBuilder().build_extension()` 메소드에서 `name` 파라미터를 부적절하게 처리하여 로컬 파일 포함(LFI)이 임의 코드 실행으로 이어질 수 있기 때문에 발생합니다. 공격자는 서버를 불러와 임의의 위치에서 파일을 실행하게 하는 악의적인 `name` 파라미터를 만들어 이 취약점을 악용할 수 있습니다(예: 토론용 업로드 디렉토리). 이 취약점은 최신 버전의 파리스네오/롤름스-웹이 영향을 미치며, 특히 애플리케이션이 외부 엔드포인트에 노출되거나 헤드리스 모드에서 작동될 때 사용자 상호 작용 없이 원격 코드 실행을 유도할 수 있습니다.

영향 받는 제품 제품 1개

  • parisneo

    parisneo/lollms-webui

    영향 받는 버전

    • 버전 정보 확인 필요

    해결 버전

    해결된 버전 정보가 없습니다.

참고 자료 1건

‹ 목록

점검 지원 범위 문의

도입 문의