Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2024-04-03 (8 months ago) | Not enough user ratings | Total: 27 | All time: 11,209 This week: 73 |
Version | License | PHP version | Categories | |||
yrprey-application 1.0 | GNU General Publi... | 5 | PHP 5, Security, Applications, Global |
Backend created by Fernando Mengali
Frontend created by Vagner Mengali
The Vulnerable API (Based on OpenAPI 3)
Yprey is an API framework with vulnerabilities from the OWASP TOP 10 API 2019 and 2023. The framework was developed for teaching and learning details in Pentest (penetration testing) and Application Security. In the context of Offensive Security, vulnerabilities contained in APIs can be identified, exploited and compromised. For application security professionals and specifics, the framework provides an in-depth understanding of code-level vulnerabilities. Currently, Yrprey is one of the frameworks with the highest number of vulnerabilities in the world, making it valuable for educational, learning and teaching purposes in the Information Security area. For more information about the vulnerabilities, we recommend exploring the details available at yrprey.com.
- Based on OWASP's top 10 vulnerabilities for APIs. - OpenAPI3 specs and Postman collection included.
Initially, an unregistered user has access to minimal information about the framework such as the Landing Page and the Blog. When registering, the user can log in, thus obtaining a token that will be used to purchase Ethereum cryptocurrency. Features include buying Ethereum, sending messages, viewing news, viewing shopping list, etc. The framework was built based on vulnerabilities and is not recommended to be used for business and service sales.
In this section, we have a comparison of the vulnerabilities present in the framework with the routes and a comparison between the OWASP TOP 10 API of 2019 and 2023. This table makes it easier to understand how to exploit vulnerabilities in each systemic function. In the last two columns we have a parenthesis and the scenario associated with the OWASP TOP 10 API of the last two years, facilitating the understanding of the theory described on the page https://owasp.org/API-Security/. After understanding the scenario and the vulnerable route, the process of identifying and exploiting vulnerabilities becomes easier. If you are an Application Security professional, knowing the scenario and routes of endpoints makes the process of identifying and correcting vulnerabilities easier with manual Code Review Security techniques or automated SAST, SCA and DAST analyses
Complete table with endpoint routes, vulnerability details and a comparison between OWASP TOP 10 API 2019 and 2023 vulnerabilities:
| Qtde| Action| Path | Details | OWASP 2019 | OWASP 2023 | |:-------:|:---------:|:------------:|:------------------------------:|:--------------------------------------------------:|:-----------------------------| | 01 | POST | /profile | Tokenized data access | API-1 Broken Object Level Authorization (Scene 01) | API-1 Broken Object Level Authorization (Scene 01) | | 02 | POST | /login | Brute Force Attack | API-2 Broken User Authentication (Scene 01) | API-2 Broken Authentication (Scene 01) | | 03 | POST | /home | Changing the session token (storage) | API-2 Broken User Authentication | API-2 Broken Authentication (Scene 02) | | 04 | POST | /login | Authentication Error | API-3 Excessive Data Exposure (Scene 01) | API-3 Broken Object Property Level (Scene 01) |Authorization (Scene 01) | | 05 | GET | /shop |Shop Page Image Slides | API-4 Lack of Resources&Rate Limiting(Scene 2) | API-4 Unrestricted Resource Consumption | | 06 | GET | /alter | Delete Product | API-5 Broken Function Level Authorization(Scene 1)| API-5 Broken Function Level Authorization(Scene 1) | | 07 | GET | /v1/status | View purchase history | API6:2019 - Mass Assignment | Change to API-3 Broken Object Property Level (Scene 1) |Authorization (Scene 2)| | 08 | GET | / | Sending message as SPAM | Does not exist in OWASP 2019| API6:2023 Unrestricted Access to Sensitive Business Flows | | 09 | GET |/ftp/WS_FTP.LOG | WS_FTP Logs File | API-7 Misconfiguration | Change to API-8 Misconfiguration | | | 10 | GET | /phpinfo | PHP Settings | API-7 Misconfiguration | Change to API-8 Misconfiguration | | | 11 | GET | / | Connection without HTTPS and Certificate| API-7 Misconfiguration | Change to API-8 Misconfiguration | | | 12 | GET | /login | Authentication without captcha | API-7 Misconfiguration | Change to API-8 Misconfiguration | | | 13 | GET | / | Checks if back-end is Active| Does not exist in OWASP 2019 | API-7 Server Side Request Forgery (SSRF) | | 14 | POST | /login | User authentication | API-8 Injection (MySQLi) | Does not exist in OWASP 2023 | | 15 | POST | /register | Register user | API-8 Injection (RCE Command) | Does not exist in OWASP 2023 | | 16 | GET | /vendor/jquery.js | Library exploration | API-8 Injection (XSS e Prototype Pollution ) | Does not exist in OWASP 2023 | | 17 | GET | /vendor/bootstrap.js | Library exploration | API-8 Injection (XSS) | Does not exist in OWASP 2023 | | 18 | GET | /vendor/lodash.js | Library exploration | API-8 Injection (RCE,ReDos e PrototypePollution ) | Does not exist in OWASP 2023 | | 19 | POST | /logout | Logout and direct to home | API-8 Injection (Open Redirect) | Does not exist in OWASP 2023 | | 20 | POST | /profile | Redefine password | API-8 Injection (CSRF) | Does not exist in OWASP 2023 | | 21 | GET | /shop | View my purchases | API9:2019 Improper Assets Management (Scene 01) | Change to API3:2023 Broken Object Property Level Authorization | | 22 | GET | /about?id={injection} | View content About | API10:2019 Insufficient Logging & Monitoring | Does not exist in OWASP 2023 |
For more details you can use a service like the swagger editor.
You can created one local servers:
Backend - Linux Ubuntu with PHP and MySQL - Give chmod 777 /var/www/html/ - Give chmod 777 /var/www/html/log/log.php - Create database with name yrprey - Download the yrprey database file (yrprey.sql) and run it in the MySQL database - In the database yrprey, dive: "SET GLOBAL sql_mode = ''"
Please, avoid taking this action and requesting a CVE!
The application intentionally has some vulnerabilities, most of them are known and are treated as lessons learned. Others, in turn, are more "hidden" and can be discovered on your own. If you have a genuine desire to demonstrate your skills in finding these extra elements, we suggest you share your experience on a blog or create a video. There are certainly people interested in learning about these nuances and how you identified them. By sending us the link, we may even consider including it in our references.
Files (148) | / | .docker | / | dev |
File | Role | Description |
---|---|---|
app.yaml | Data | Auxiliary data |
location-nginx.conf | Data | Auxiliary data |
Files (148) | / | backend |
File | Role | Description | ||
---|---|---|---|---|
ftp (1 file) | ||||
jquery (1 file) | ||||
log (1 file) | ||||
v1 (1 file) | ||||
v2 (1 file) | ||||
.htaccess | Data | Auxiliary data | ||
about.php | Example | Example script | ||
buy.php | Example | Example script | ||
cards.php | Example | Example script | ||
delete.php | Example | Example script | ||
index.php | Aux. | Auxiliary script | ||
jquery-2.1.4.min.js | Data | Auxiliary data | ||
login.php | Example | Example script | ||
logout.php | Example | Example script | ||
message.php | Example | Example script | ||
phpinfo.php | Aux. | Auxiliary script | ||
profile.php | Example | Example script | ||
README.md | Doc. | Documentation | ||
register.php | Example | Example script | ||
reset.php | Example | Example script | ||
resposta.php | Example | Example script | ||
shop.php | Example | Example script | ||
ssh-key.priv | Data | Auxiliary data | ||
ssrf.php | Example | Example script | ||
WS_FTP.LOG | Data | Auxiliary data | ||
yrprey.sql | Data | Auxiliary data |
Files (148) | / | frontend |
File | Role | Description | ||
---|---|---|---|---|
public (1 directory) | ||||
src (5 directories) | ||||
.env | Data | Auxiliary data | ||
next-env.d.ts | Data | Auxiliary data | ||
next.config.js | Data | Auxiliary data | ||
package.json | Data | Auxiliary data | ||
README.md | Doc. | Documentation | ||
tsconfig.json | Data | Auxiliary data | ||
yarn.lock | Data | Auxiliary data |
Files (148) | / | frontend | / | public | / | vendor |
File | Role | Description |
---|---|---|
bootstrap.js | Data | Auxiliary data |
jquery.js | Data | Auxiliary data |
lodash.js | Data | Auxiliary data |
Files (148) | / | frontend | / | src |
File | Role | Description | ||
---|---|---|---|---|
components (15 directories) | ||||
context (1 file) | ||||
interfaces (12 directories) | ||||
pages (10 files) | ||||
validators (5 files) |
Files (148) | / | frontend | / | src | / | components |
File | Role | Description | ||
---|---|---|---|---|
CardBlog (2 files) | ||||
ErrorPage (1 file) | ||||
Footer (2 files) | ||||
Header (2 files) | ||||
HomeButton (2 files) | ||||
InfoBanner (2 files) | ||||
Layout (2 files) | ||||
Routes (8 directories) | ||||
SEO (1 file) | ||||
ShopCard (2 files) | ||||
Sidebar (2 files) | ||||
SimpleShopCard (2 files) | ||||
StatusApi (2 files) | ||||
TableCollection (2 files) | ||||
Tabs (2 files, 1 directory) |
Files (148) | / | frontend | / | src | / | components | / | CardBlog |
Files (148) | / | frontend | / | src | / | components | / | ErrorPage |
File | Role | Description |
---|---|---|
index.tsx | Data | Auxiliary data |
Files (148) | / | frontend | / | src | / | components | / | Header |
Files (148) | / | frontend | / | src | / | components | / | HomeButton |
Files (148) | / | frontend | / | src | / | components | / | InfoBanner |
Files (148) | / | frontend | / | src | / | components | / | Layout |
Files (148) | / | frontend | / | src | / | components | / | Routes |
Files (148) | / | frontend | / | src | / | components | / | Routes | / | About |
Files (148) | / | frontend | / | src | / | components | / | Routes | / | About | / | Banner |
Files (148) | / | frontend | / | src | / | components | / | Routes | / | About | / | Counter |
Files (148) | / | frontend | / | src | / | components | / | Routes | / | About | / | OurGoals |
Files (148) | / | frontend | / | src | / | components | / | Routes | / | About | / | WhoWeAre |
Files (148) | / | frontend | / | src | / | components | / | Routes | / | Blog |
File | Role | Description | ||
---|---|---|---|---|
CardBlogPage (2 files) | ||||
index.tsx | Data | Auxiliary data | ||
style.ts | Data | Auxiliary data |
Files (148) | / | frontend | / | src | / | components | / | Routes | / | Blog | / | CardBlogPage |
Files (148) | / | frontend | / | src | / | components | / | Routes | / | Home |
File | Role | Description | ||
---|---|---|---|---|
AboutSection (2 files) | ||||
BlogSection (2 files) | ||||
ContactSection (2 files, 1 directory) | ||||
InitialSection (2 files) | ||||
ShopSection (2 files) | ||||
index.tsx | Data | Auxiliary data |
Files (148) | / | frontend | / | src | / | components | / | Routes | / | Home | / | AboutSection |
Files (148) | / | frontend | / | src | / | components | / | Routes | / | Home | / | BlogSection |
Files (148) | / | frontend | / | src | / | components | / | Routes | / | Home | / | ContactSection |
Files (148) | / | frontend | / | src | / | components | / | Routes | / | Home | / | ContactSection | / | Form |
Files (148) | / | frontend | / | src | / | components | / | Routes | / | Home | / | InitialSection |
Files (148) | / | frontend | / | src | / | components | / | Routes | / | Home | / | ShopSection |
Files (148) | / | frontend | / | src | / | components | / | Routes | / | Login |
Files (148) | / | frontend | / | src | / | components | / | Routes | / | Login | / | Form |
Files (148) | / | frontend | / | src | / | components | / | Routes | / | Profile |
Files (148) | / | frontend | / | src | / | components | / | Routes | / | Register |
Files (148) | / | frontend | / | src | / | components | / | Routes | / | Register | / | Form |
Files (148) | / | frontend | / | src | / | components | / | Routes | / | Shop |
File | Role | Description | ||
---|---|---|---|---|
Carousel (2 files) | ||||
Collections (2 files) | ||||
TopCollections (2 files) | ||||
index.tsx | Data | Auxiliary data |
Files (148) | / | frontend | / | src | / | components | / | Routes | / | Shop | / | Carousel |
Files (148) | / | frontend | / | src | / | components | / | Routes | / | Shop | / | Collections |
Files (148) | / | frontend | / | src | / | components | / | Routes | / | Shop | / | TopCollections |
Files (148) | / | frontend | / | src | / | components | / | Routes | / | Transactions |
File | Role | Description | ||
---|---|---|---|---|
CardTransation (2 files) | ||||
index.tsx | Data | Auxiliary data | ||
style.ts | Data | Auxiliary data |
Files (148) | / | frontend | / | src | / | components | / | Routes | / | Transactions | / | CardTransation |
Files (148) | / | frontend | / | src | / | components | / | ShopCard |
Files (148) | / | frontend | / | src | / | components | / | Sidebar |
Files (148) | / | frontend | / | src | / | components | / | SimpleShopCard |
Files (148) | / | frontend | / | src | / | components | / | StatusApi |
Files (148) | / | frontend | / | src | / | components | / | TableCollection |
Files (148) | / | frontend | / | src | / | components | / | Tabs |
Files (148) | / | frontend | / | src | / | components | / | Tabs | / | AllTabs |
Files (148) | / | frontend | / | src | / | components | / | Tabs | / | AllTabs | / | FirstTab |
Files (148) | / | frontend | / | src | / | components | / | Tabs | / | AllTabs | / | SecondTab |
Files (148) | / | frontend | / | src | / | components | / | Tabs | / | AllTabs | / | ThirdTab |
Files (148) | / | frontend | / | src | / | interfaces |
File | Role | Description | ||
---|---|---|---|---|
FormDrop (1 file) | ||||
ICardBlog (1 file) | ||||
ICartStyled (1 file) | ||||
IChildren (2 files) | ||||
IContext (1 file) | ||||
IFormContact (1 file) | ||||
IFormLogin (1 file) | ||||
IFormProfile (1 file) | ||||
IFormRegister (1 file) | ||||
ISeo (1 file) | ||||
News (1 file) | ||||
SidebarProps (1 file) |
Files (148) | / | frontend | / | src | / | interfaces | / | FormDrop |
File | Role | Description |
---|---|---|
IFormDrop.ts | Data | Auxiliary data |
Files (148) | / | frontend | / | src | / | interfaces | / | ICardBlog |
File | Role | Description |
---|---|---|
ICardBlog.ts | Data | Auxiliary data |
Files (148) | / | frontend | / | src | / | interfaces | / | ICartStyled |
File | Role | Description |
---|---|---|
ICartStyled.ts | Data | Auxiliary data |
Files (148) | / | frontend | / | src | / | interfaces | / | IChildren |
File | Role | Description |
---|---|---|
ICardShop.ts | Data | Auxiliary data |
IChildren.ts | Data | Auxiliary data |
Files (148) | / | frontend | / | src | / | interfaces | / | IContext |
File | Role | Description |
---|---|---|
IContext.ts | Data | Auxiliary data |
Files (148) | / | frontend | / | src | / | interfaces | / | IFormContact |
File | Role | Description |
---|---|---|
IFormContact.ts | Data | Auxiliary data |
Files (148) | / | frontend | / | src | / | interfaces | / | IFormLogin |
File | Role | Description |
---|---|---|
IFormLogin.ts | Data | Auxiliary data |
Files (148) | / | frontend | / | src | / | interfaces | / | IFormProfile |
File | Role | Description |
---|---|---|
IFormProfile.ts | Data | Auxiliary data |
Files (148) | / | frontend | / | src | / | interfaces | / | IFormRegister |
File | Role | Description |
---|---|---|
IFormRegister.ts | Data | Auxiliary data |
Files (148) | / | frontend | / | src | / | interfaces | / | SidebarProps |
File | Role | Description |
---|---|---|
SidebarProps.ts | Data | Auxiliary data |
Files (148) | / | frontend | / | src | / | pages |
File | Role | Description |
---|---|---|
about.tsx | Data | Auxiliary data |
blog.tsx | Data | Auxiliary data |
index.tsx | Data | Auxiliary data |
login.tsx | Data | Auxiliary data |
profile.tsx | Data | Auxiliary data |
register.tsx | Data | Auxiliary data |
shop.tsx | Data | Auxiliary data |
transactions.tsx | Data | Auxiliary data |
_app.tsx | Data | Auxiliary data |
_document.tsx | Data | Auxiliary data |
Files (148) | / | frontend | / | src | / | validators |
File | Role | Description |
---|---|---|
contact.ts | Data | Auxiliary data |
drop.ts | Data | Auxiliary data |
login.ts | Data | Auxiliary data |
profile.ts | Data | Auxiliary data |
register.ts | Data | Auxiliary data |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.