RIPS
Sorina-Georgiana CHIRILĂ
Software Security - 2013
General Information
●
●
●
●
●
●
●
●
●
●

PHP static source code analyzer,
Based on PIXY,
Author: Johannes Dahse,
Released: 24 May 2010,
Last version: 0.54,
Open source,
http://sourceforge.net/projects/rips-scanner/,
Requires a Web server and a browser(Firefox),
Languages: PHP(partial support for object oriented),
Vulnerabilities: SQL Injection, Cross-Site Scripting, File Inclusion and
more.
Web application security
● “A web application security
vulnerability can occur when data
supplied by the user (e.g. GET, POST
parameters) is not sanitized correctly
and used in critical operations of the
dynamic script. Then an attacker
might be able to inject code that
changes the behaviour and result of
the operation during the script
execution in an unexpected way.”
Johannes Dahse - RIPS A static source code analyser
for vulnerabilities in PHP scripts
RIPS context(1)
●
●

●

Taint-style vulnerabilities = tainted data + sensitive sinks,
Tainted data - untrusted sources such as user supplied data:
GET or POST parameters, cookie values, user agent,
database entries or files.

Sensitive sinks - vulnerable parts of the program,
- potential vulnerable functions(PVF),
- should be called with trusted or sanitized data,
- executes critical operations.
● An attacker may influence the data that is passed to the PVF and
read, modify, delete data or attack web server or a client.
RIPS context (2)

Johannes Dahse - RIPS A static source code analyser for vulnerabilities in PHP scripts
Technical details
●

Tokens
- the code is split into tokens(e.g. opening tag, closing tag,
string) which are analyzed,
● PVF
- Functions where can be introduced vulnerabilities,
current 287,
● RIPS traces back, whether the suitable parameters of the PVFs could be
tainted by the user,
● Verbosity levels - 5 levels( the default is 1)
1 - traces tainted PVFs without any securing actions applied,
2 - files and local DBs treated as potentially malicious,
3 - shows PVFs even if securing actions have been applied ,
4 - displays additional information about code structure,
5 - shows all PFVs calls and associated traces.
Usage
●
●

Easy to understand with a great simple web interface,
Mechanism : prepare a local web site and run in a web server.
Case studies
1. Cross-site scripting,
2. SQL injection,
3. Deprecated function,
4. Remote File Inclusion,
5. Remote Command Execution,
6. File Inclusion.
Demo
Future work
●
●
●

full object-oriented programming support,
all PHP code semantics such as variable aliases,
evaluation of dynamic strings at runtime (e.g. name of the included files).
Resources
●
●
●
●
●
●
●
●
●
●
●

,

https://www.owasp.org/index.php/Static_Code_Analysis
https://www.owasp.org/index.php/Source_Code_Analysis_Tools,
http://www.php-security.org/2010/05/24/mops-submission-09-rips-a-static-source-code-analyser-for-vulnerabilities-in-phpscripts/index.html,
http://holisticinfosec.org/toolsmith/pdf/july2011.pdf,
http://sourceforge.net/projects/rips-scanner,
https://websec.wordpress.com/category/projects/,
http://rips-scanner.sourceforge.net,
http://www.phpfreaks.com/tutorial/php-security/page6,
http://www.php-security.org/downloads/rips.pdf,
Secure coding training - Review of source code analyzers - Gerard Frankowski,Tomasz Nowak,
RIPS - A static source code analyser for vulnerabilities in PHP scripts - Johannes Dahse.
Questions ?

THANK YOU!

More Related Content

PDF
Dynamic PHP web-application analysis
PDF
Remote file path traversal attacks for fun and profit
PDF
Static analysis for beginners
PDF
50 shades of PHP
PDF
WAF protections and bypass resources
PDF
Binary art - Byte-ing the PE that fails you (extended offline version)
PDF
Egress-Assess and Owning Data Exfiltration
PDF
Static and Dynamic Analysis at Ning
Dynamic PHP web-application analysis
Remote file path traversal attacks for fun and profit
Static analysis for beginners
50 shades of PHP
WAF protections and bypass resources
Binary art - Byte-ing the PE that fails you (extended offline version)
Egress-Assess and Owning Data Exfiltration
Static and Dynamic Analysis at Ning

What's hot (20)

PDF
Understand study
PDF
Windows 10 - Endpoint Security Improvements and the Implant Since Windows 2000
PDF
Passive Intelligence Gathering and Analytics - It's All Just Metadata!
PDF
AV Evasion with the Veil Framework
KEY
No locked doors, no windows barred: hacking OpenAM infrastructure
PDF
DEF CON 23 - Ryan o'neil - advances in linux forensics with ecfs
PDF
Presentation buffer overflow attacks and theircountermeasures
PPTX
Hooks in postgresql by Guillaume Lelarge
PDF
Development and deployment with composer and kite
PDF
Raptor web application firewall
PDF
Last 2 Months in PHP - July & August 2016
PDF
What Goes In Must Come Out: Egress-Assess and Data Exfiltration
PDF
A Battle Against the Industry - Beating Antivirus for Meterpreter and More
PDF
Ever Present Persistence - Established Footholds Seen in the Wild
PPT
How PHP Works ?
ODP
Fscons scalable appplication transfers
PDF
PDF
The State of the Veil Framework
Understand study
Windows 10 - Endpoint Security Improvements and the Implant Since Windows 2000
Passive Intelligence Gathering and Analytics - It's All Just Metadata!
AV Evasion with the Veil Framework
No locked doors, no windows barred: hacking OpenAM infrastructure
DEF CON 23 - Ryan o'neil - advances in linux forensics with ecfs
Presentation buffer overflow attacks and theircountermeasures
Hooks in postgresql by Guillaume Lelarge
Development and deployment with composer and kite
Raptor web application firewall
Last 2 Months in PHP - July & August 2016
What Goes In Must Come Out: Egress-Assess and Data Exfiltration
A Battle Against the Industry - Beating Antivirus for Meterpreter and More
Ever Present Persistence - Established Footholds Seen in the Wild
How PHP Works ?
Fscons scalable appplication transfers
The State of the Veil Framework
Ad

Viewers also liked (20)

PDF
BSides Algiers - PHP Static Code Analysis - Abdeldjalil Belakhdar
PPT
Night of the Long Knives
PDF
Static Analysis of PHP Code – IPC Berlin 2016
PPTX
XSSの評価基準とRIPSプラグイン的なものを作った
PDF
Best Practices of Static Code Analysis in the SDLC
PDF
Static Analysis and Code Optimizations in Glasgow Haskell Compiler
PPTX
Poster Analysis Source Code
PDF
PHPcon Poland - Static Analysis of PHP Code – How the Heck did I write so man...
PPTX
ニューラルネットワークによる音声の分類
PPTX
Modern Static Code Analysis in PHP
PPT
Source Code Analysis with SAST
PPTX
Social Intelligence 2.0
PPTX
Hp fortify source code analyzer(sca)
PPTX
A2 - broken authentication and session management(OWASP thailand chapter Apri...
PDF
Php in the graph (Gremlin 3)
PDF
Review unknown code with static analysis - bredaphp
PDF
Static analysis saved my code tonight
PDF
Static Code Analysis
PPTX
A8 cross site request forgery (csrf) it 6873 presentation
PDF
Simplified Security Code Review Process
BSides Algiers - PHP Static Code Analysis - Abdeldjalil Belakhdar
Night of the Long Knives
Static Analysis of PHP Code – IPC Berlin 2016
XSSの評価基準とRIPSプラグイン的なものを作った
Best Practices of Static Code Analysis in the SDLC
Static Analysis and Code Optimizations in Glasgow Haskell Compiler
Poster Analysis Source Code
PHPcon Poland - Static Analysis of PHP Code – How the Heck did I write so man...
ニューラルネットワークによる音声の分類
Modern Static Code Analysis in PHP
Source Code Analysis with SAST
Social Intelligence 2.0
Hp fortify source code analyzer(sca)
A2 - broken authentication and session management(OWASP thailand chapter Apri...
Php in the graph (Gremlin 3)
Review unknown code with static analysis - bredaphp
Static analysis saved my code tonight
Static Code Analysis
A8 cross site request forgery (csrf) it 6873 presentation
Simplified Security Code Review Process
Ad

Similar to RIPS - static code analyzer for vulnerabilities in PHP (20)

PDF
Automated server-side model for recognition of security vulnerabilities in sc...
PDF
Ravel: Pinpointing Vulnerabilities
PDF
PROP - P ATRONAGE OF PHP W EB A PPLICATIONS
PDF
Pinpointing Vulnerabilities (Ravel)
PDF
PHP
PDF
How to Prevent RFI and LFI Attacks
PDF
Flaw Finder
PPT
Php manish
PPT
Buffer Overflow Attacks
PDF
Cyber Securitygttt buj bi j Mini Project.pdf
PDF
Advanced System Security and Digital Forensics
PDF
OSC2023_security_automation_data.pdf
PPTX
VAPT_FINAL SLIDES.pptx
PDF
Sqlas tool to detect and prevent attacks in php web applications
PPTX
VAPT PRESENTATION full.pptx
PDF
Detection of vulnerabilities in programs with the help of code analyzers
PDF
DEF CON 27 - CHRISTOPHER ROBERTS - firmware slap
PDF
Estimating Security Risk Through Repository Mining
PDF
My tryst with sourcecode review
PPTX
Shooting clay pidgins
Automated server-side model for recognition of security vulnerabilities in sc...
Ravel: Pinpointing Vulnerabilities
PROP - P ATRONAGE OF PHP W EB A PPLICATIONS
Pinpointing Vulnerabilities (Ravel)
PHP
How to Prevent RFI and LFI Attacks
Flaw Finder
Php manish
Buffer Overflow Attacks
Cyber Securitygttt buj bi j Mini Project.pdf
Advanced System Security and Digital Forensics
OSC2023_security_automation_data.pdf
VAPT_FINAL SLIDES.pptx
Sqlas tool to detect and prevent attacks in php web applications
VAPT PRESENTATION full.pptx
Detection of vulnerabilities in programs with the help of code analyzers
DEF CON 27 - CHRISTOPHER ROBERTS - firmware slap
Estimating Security Risk Through Repository Mining
My tryst with sourcecode review
Shooting clay pidgins

More from Sorina Chirilă (9)

PDF
Electronic commerce and Data Warehouses
PDF
Object-Oriented Analysis And Design With Applications Grady Booch
PDF
Introducing CHAOS - A graphic guide
PDF
SNAS - CGS - MobilPRO2016
PDF
THE ZEN OF PYTHON
PDF
PDF
PDF
A5-Security misconfiguration-OWASP 2013
Electronic commerce and Data Warehouses
Object-Oriented Analysis And Design With Applications Grady Booch
Introducing CHAOS - A graphic guide
SNAS - CGS - MobilPRO2016
THE ZEN OF PYTHON
A5-Security misconfiguration-OWASP 2013

Recently uploaded (20)

PDF
fundamentals-of-heat-and-mass-transfer-6th-edition_incropera.pdf
PDF
Journal of Dental Science - UDMY (2020).pdf
PDF
Farming Based Livelihood Systems English Notes
PDF
Lecture on Viruses: Structure, Classification, Replication, Effects on Cells,...
PDF
Compact First Student's Book Cambridge Official
PPTX
Thinking Routines and Learning Engagements.pptx
PPTX
ACFE CERTIFICATION TRAINING ON LAW.pptx
PDF
LIFE & LIVING TRILOGY - PART - (2) THE PURPOSE OF LIFE.pdf
PDF
Laparoscopic Colorectal Surgery at WLH Hospital
PDF
Journal of Dental Science - UDMY (2021).pdf
PDF
Chevening Scholarship Application and Interview Preparation Guide
PPTX
Case Study on mbsa education to learn ok
PDF
LIFE & LIVING TRILOGY- PART (1) WHO ARE WE.pdf
PPTX
Key-Features-of-the-SHS-Program-v4-Slides (3) PPT2.pptx
PDF
Disorder of Endocrine system (1).pdfyyhyyyy
PDF
Nurlina - Urban Planner Portfolio (english ver)
PPTX
principlesofmanagementsem1slides-131211060335-phpapp01 (1).ppt
PDF
0520_Scheme_of_Work_(for_examination_from_2021).pdf
PPTX
Macbeth play - analysis .pptx english lit
PPTX
Reproductive system-Human anatomy and physiology
fundamentals-of-heat-and-mass-transfer-6th-edition_incropera.pdf
Journal of Dental Science - UDMY (2020).pdf
Farming Based Livelihood Systems English Notes
Lecture on Viruses: Structure, Classification, Replication, Effects on Cells,...
Compact First Student's Book Cambridge Official
Thinking Routines and Learning Engagements.pptx
ACFE CERTIFICATION TRAINING ON LAW.pptx
LIFE & LIVING TRILOGY - PART - (2) THE PURPOSE OF LIFE.pdf
Laparoscopic Colorectal Surgery at WLH Hospital
Journal of Dental Science - UDMY (2021).pdf
Chevening Scholarship Application and Interview Preparation Guide
Case Study on mbsa education to learn ok
LIFE & LIVING TRILOGY- PART (1) WHO ARE WE.pdf
Key-Features-of-the-SHS-Program-v4-Slides (3) PPT2.pptx
Disorder of Endocrine system (1).pdfyyhyyyy
Nurlina - Urban Planner Portfolio (english ver)
principlesofmanagementsem1slides-131211060335-phpapp01 (1).ppt
0520_Scheme_of_Work_(for_examination_from_2021).pdf
Macbeth play - analysis .pptx english lit
Reproductive system-Human anatomy and physiology

RIPS - static code analyzer for vulnerabilities in PHP