Skip to main content
QUICK REVIEW

[논문 리뷰] Leveraging Flawed Tutorials for Seeding Large-Scale Web Vulnerability Discovery

Tommi Unruh, Bhargava Shastry|arXiv (Cornell University)|2017. 04. 10.
Web Application Security VulnerabilitiesComputer Science인용 수 8
한 줄 요약

이 논문은 인기 있는 튜토리얼에서 결함이 있는 코드 스니펫을 채굴하여, 수만 개의 오픈소스 PHP 프로젝트 전반에서 유사한 취약성을 탐지하는 반자동화된 방법을 제안한다. 이 방법은 상위 튜토리얼에서 유래한 취약한 스니펫과 강한 문법적 유사성을 보이는 117개의 취약성을 발견하였으며, 이는 결함이 있는 튜토리얼이 대규모 취약성 탐지의 효과적인 시드로 기능할 수 있음을 보여준다.

ABSTRACT

The Web is replete with tutorial-style content on how to accomplish programming tasks. Unfortunately, even top-ranked tutorials suffer from severe security vulnerabilities, such as cross-site scripting (XSS), and SQL injection (SQLi). Assuming that these tutorials influence real-world software development, we hypothesize that code snippets from popular tutorials can be used to bootstrap vulnerability discovery at scale. To validate our hypothesis, we propose a semi-automated approach to find recurring vulnerabilities starting from a handful of top-ranked tutorials that contain vulnerable code snippets. We evaluate our approach by performing an analysis of tens of thousands of open-source web applications to check if vulnerabilities originating in the selected tutorials recur. Our analysis framework has been running on a standard PC, analyzed 64,415 PHP codebases hosted on GitHub thus far, and found a total of 117 vulnerabilities that have a strong syntactic similarity to vulnerable code snippets present in popular tutorials. In addition to shedding light on the anecdotal belief that programmers reuse web tutorial code in an ad hoc manner, our study finds disconcerting evidence of insufficiently reviewed tutorials compromising the security of open-source projects. Moreover, our findings testify to the feasibility of large-scale vulnerability discovery using poorly written tutorials as a starting point.

연구 동기 및 목표

  • 보안 취약성이 포함된 결함이 있는 튜토리얼이 대규모 취약성 탐지의 기초 자료로 활용될 수 있는지 조사하기.
  • 상위 순위 튜토리얼에서 유래한 취약한 코드 패턴이 실제 웹 애플리케이션의 오픈소스 프로젝트에 얼마나 자주 재현되는지 평가하기.
  • 검토가 부족한 튜토리얼이 오픈소스 소프트웨어 프로젝트의 보안에 끼치는 영향을 평가하기.

제안 방법

  • XSS 및 SQL 인젝션과 같은 보안 결함을 포함하고 있는 것으로 알려진 상위 순위 웹 튜토리얼의 코드 스니펫을 수집하기.
  • 오픈소스 레포지토리에서 튜토리얼의 취약한 스니펫과 일치하는 코드 패턴을 탐지하기 위해 문법적 유사성 분석을 적용하기.
  • GitHub에 호스팅된 64,415개의 PHP 코드베이스를 스캔하기 위해 반자동화된 파이프라인을 사용하기.
  • 분석 프레임워크를 실행하기 위해 표준 PC를 사용하여 확장성과 실용성을 확보하기.
  • 실제 코드 재사용 가능성을 극대화하기 위해 널리 사용되는 튜토리얼의 코드 스니펫을 우선순위에 두기.

실험 결과

연구 질문

  • RQ1인기 있는 튜토리얼에서 유래한 취약한 코드 패턴이 오픈소스 웹 애플리케이션에 얼마나 자주 재현되는가?
  • RQ2결함이 있는 튜토리얼이 대규모 웹 취약성 탐지의 효과적인 시드로 기능할 수 있는가?
  • RQ3실제 오픈소스 프로젝트에서 취약한 튜토리얼 코드가 얼마나 널리 재사용되고 있는가?

주요 결과

  • 분석 프레임워크는 상위 튜토리얼의 취약한 스니펫과 강한 문법적 유사성을 보이는 117개의 취약성을 64,415개의 오픈소스 PHP 코드베이스에서 성공적으로 식별하였다.
  • 실제 프로젝트에서 발견된 다수의 취약성은 검토가 부족한 널리 사용되는 튜토리얼에 존재하는 코드 패턴으로 뿌리를 두고 있었다.
  • 연구 결과는 개발자들이 충분한 보안 검토 없이 튜토리얼 코드를 재사용함으로써 알려진 취약성이 확산된다는 점을 확인하였다.
  • 본 연구는 결함이 있는 튜토리얼을 대규모 코드베이스에서 자동화된 취약성 탐지의 확장 가능한 진입점으로 사용할 수 있음을 입증하였다.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.