repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/model/j/form/input/float.php
app/model/j/form/input/float.php
<?php /** * One-line float number input field for a form * @author abiusx * */ class jFormInputFloat extends jFormInput { function __construct(jWidget $Parent,$Label=null,$minLength=0,$maxLength=-1) { parent::__construct($Parent,$Label); if ($maxLength===-1) $maxLength=4096; $this->SetValidation('/^[0-9...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/model/j/form/input/date.php
app/model/j/form/input/date.php
<?php /** * One-line date input field for a form * @author abiusx * */ class jFormInputDate extends jFormInput { function __construct(jWidget $Parent,$Label=null) { parent::__construct($Parent,$Label); $this->SetValidation('/^\d{4}-\d{2}-\d{2}$/'); $this->SetDescription($this->Description." Enter date in Y...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/test/main.php
app/test/main.php
<?php class MainTest extends JTestSuite { function __construct() { $this->add("test/InitTest"); $this->add("test/lesson/main"); } }
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/test/InitTest.php
app/test/InitTest.php
<?php /** * Tests for init controller * * @author Shivam Dixit <shivamd001@gmail.com> */ class InitTest extends JTest { /** * Test to check if user successfully created */ public function testUserExists() { $this->assertTrue(jf::$User->UserExists('guest')); } /* * Test t...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/test/plugin/autoform.php
app/test/plugin/autoform.php
<?php class AutoformPluginTest extends JTest { function __construct() { } function testStart() { $this->assertTrue(true); } function test1() { $p=new AutoformPlugin(); $p->AddElement(array( "type"=>"text", "style"=>"color:red;border:3px do...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/test/lesson/main.php
app/test/lesson/main.php
<?php class LessonTest extends JTestSuite { function __construct() { $this->add("test/lesson/base/main"); } }
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/test/lesson/base/main.php
app/test/lesson/base/main.php
<?php class LessonBaseTest extends JTestSuite { function __construct() { $this->add("test/lesson/base/CategoryTest"); } }
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/test/lesson/base/CategoryTest.php
app/test/lesson/base/CategoryTest.php
<?php namespace webgoat; /** * Tests for the Category class * * @author Shivam Dixit <shivamd001@gmail.com> */ class CategoryTest extends \JTest { private $category; /** * Class constructor */ public function __construct() { $this->category = new Category(); } /** ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/view/default/main.php
app/view/default/main.php
<div class="navbar navbar-inverse navbar-static-top"> <div class="container"> <a href="#" class="navbar-brand">OWASP WebGoatPHP</a> <button class="navbar-toggle" data-toggle="collapse" data-target=".navHeaderCollapse"> <span class="icon-bar"></span> <span class="icon-bar"></...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/view/default/about.php
app/view/default/about.php
<div class="navbar navbar-inverse navbar-static-top"> <div class="container"> <a href="<?php echo jf::url()?>" class="navbar-brand">OWASP WebGoatPHP</a> <button class="navbar-toggle" data-toggle="collapse" data-target=".navHeaderCollapse"> <span class="icon-bar"></span> <spa...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/view/default/features.php
app/view/default/features.php
<div dir='ltr'> <?php $this->SetTitle("jframework features"); ?> <title>jFramework Features</title> <h1>jFramework Features</h1> <p> You might wonder why you should switch to jFramework (or start using it as your first framework) when there are plenty of other frameworks with some benefits our there. Here's a list of ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/view/default/jform.php
app/view/default/jform.php
<?php $this->SetTitle("jframework test page"); $this->AddToHead($this->Widget->Header()); ?> Yo <?php $this->Widget->Present(); ?>
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/view/default/init.php
app/view/default/init.php
<div class="container"> <div class="row"> <div class="col-sm-12"> <h1 class="text-success">Successfully updated the database.</h1> </div> </div> </div>
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/view/default/mode/contest/home.php
app/view/default/mode/contest/home.php
<link rel="stylesheet" href="<?php echo jf::url().'/style/flipclock.css';?>"> <script src="<?php echo jf::url().'/script/flipclock.min.js'?>"></script> <script src="<?php echo jf::url().'/script/contest.js'?>"></script> <?php if(isset($this->TimeRemaining)):?> <script> var time = <?php echo $this->TimeRema...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/view/default/mode/contest/admin.php
app/view/default/mode/contest/admin.php
<script src="<?php echo jf::url()."/script/contest-admin.js"?>"></script> <script src="<?php echo jf::url()."/script/moment.js"?>"></script> <script src="<?php echo jf::url()."/script/bootstrap-datetimepicker.js"?>"></script> <link rel="stylesheet" type="text/css" href="<?php echo jf::url().'/style/dashboard.css'?>"> <...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/view/default/mode/contest/user/signup.php
app/view/default/mode/contest/user/signup.php
<link rel="stylesheet" type="text/css" href="<?php echo jf::url().'/style/signin.css'?>"> <div class="container"> <form class="form-signin" role="form" method="POST" action=""> <?php if (isset($this->Error)) { echo "<div class='alert alert-danger'>$this->Error</div>"; ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/view/default/mode/contest/challenges/__catch.php
app/view/default/mode/contest/challenges/__catch.php
<!--navbar ============--> <div class="navbar navbar-inverse navbar-static-top"> <div class="container"> <a href="#" class="navbar-brand"><b>Contest Mode</b></a> <button class="navbar-toggle" data-toggle="collapse" data-target=".navHeaderCollapse"> <span class="icon-bar"></span> ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/view/default/mode/workshop/admin.php
app/view/default/mode/workshop/admin.php
<script src="<?php echo jf::url()."/script/workshop.js"?>"></script> <script type="text/javascript" src="https://www.google.com/jsapi"></script> <script type="text/javascript"> google.load("visualization", "1", {packages:["corechart"]}); google.setOnLoadCallback(drawChart); var noOfLessonsData = <?php echo ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/view/default/mode/workshop/challenges/__catch.php
app/view/default/mode/workshop/challenges/__catch.php
<script type="text/javascript"> var hints = <?php if(isset($this->hints)) echo json_encode($this->hints); else echo "['No hints']"?>; </script> <!--navbar ============--> <div class="navbar navbar-inverse navbar-static-top"> <div class="container"> <a href="#" class="navbar-brand"><b>Workshop Mode</b></...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/view/default/mode/single/challenges/__catch.php
app/view/default/mode/single/challenges/__catch.php
<script type="text/javascript"> var hints = <?php if(isset($this->hints)) echo json_encode($this->hints); else echo "['No hints']"?>; </script> <!--navbar ============--> <div class="navbar navbar-inverse navbar-static-top"> <div class="container"> <a href="#" class="navbar-brand"><b>Single User Mode</b...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/view/default/user/logout.php
app/view/default/user/logout.php
<div id="logout_container" style="margin:auto;text-align:Center;"> <?php if ($this->Username) { ?> <strong><?php echo $this->Username?></strong> <?php tr("logged out successfully.");?> <?php } else { ?> <?php tr("You must be already logged in to be able to log out!");?> <?php } ?> <br /> <?php tr("You w...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/view/default/user/login.php
app/view/default/user/login.php
<link rel="stylesheet" type="text/css" href="<?php echo jf::url().'/style/signin.css'?>"> <div class="container"> <form class="form-signin" role="form" method="post" action=""> <?php if (isset($this->Result) and !$this->Result) { echo "<div class='alert alert-danger'...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/view/default/user/create.php
app/view/default/user/create.php
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/view/default/_template/head.php
app/view/default/_template/head.php
<?php if (jf::$RunMode->IsEmbed()) return; ?> <!DOCTYPE html> <html> <head> <title><?php echo $this->Title()?:jf_Application_Title; ?></title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <m...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/view/default/_template/foot.php
app/view/default/_template/foot.php
<?php if (jf::$RunMode->IsEmbed()) return;?> <!--contact modal ==================--> <div class="modal fade" id="contact"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h2>Contact Us</h2> </div> <div class="modal-body"...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/view/mobile/main.php
app/view/mobile/main.php
<?php $m=new UseragentMobilePlugin(); //echo "Hi this is intended to be the mobile view of jFramework! You're on ".$m->IsMobileUserAgent().BR; ?> <h1>jFramework Powered Mobile Interface</h1> <p> Sorry, but the website you're trying to visit has enabled different presentation for mobile devices, but is lacking a duplica...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/view/_internal/error/401.php
app/view/_internal/error/401.php
<?php header("HTTP/1.1 401 Authentication Required",false); // header("WWW-Authenticate: Basic realm='".constant("jf_Application_Name")."'"); ?> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>401 Not Authorized</title> </head><body> <h1>Not Authorized</h1> <p>You are not authorized to access ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/view/_internal/error/401-authentication-required.php
app/view/_internal/error/401-authentication-required.php
<?php // define ("Permission",$Permission); header("HTTP/1.1 401 Authentication Required",false); ?> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>401 Not Authorized</title> </head><body> <h1>Not Authorized</h1> <p>You are not authorized to access this resource, i.e you don't have the su...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/view/_internal/error/404-file-not-found.php
app/view/_internal/error/404-file-not-found.php
<?php //$File is usable here // this is invoked when jFramework tried to present a file which does not exist (as a resource) header("HTTP/1.1 404 Not Found"); ?> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>jFramework could not find t...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/view/_internal/error/403.php
app/view/_internal/error/403.php
<?php #authenticated but can not access the page header("HTTP/1.1 403 Forbidden",false); ?> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>403 Forbidden</title> </head><body> <h1>Forbidden</h1> <p>You are not allowed to access this page.</p> <hr/><span style='font-size:smaller;'><?php echo \jf\...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/view/_internal/error/500.php
app/view/_internal/error/500.php
<?php header("HTTP/1.1 500 Internal Server Error"); ?> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>500 Internal Server Error</title> </head><body> <h1>Internal Server Error</h1> <p>Server encountered an internal error. The incident is recorded on the server. </p> <hr/><span style='font-size:s...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/view/_internal/error/system-interface-not-found.php
app/view/_internal/error/system-interface-not-found.php
<?php // $Module and $Request are usable here // you can use the constants at above ?> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>System Not Found</title> </head><body> <h1>System Not Found</h1> <p>The requested system interface does not exist: <b><?php echo $Request?></b> at <b><?php echo ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/view/_internal/error/400.php
app/view/_internal/error/400.php
<?php header("HTTP/1.1 400 Bad Request"); ?> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>400 Bad Request</title> </head><body> <h1>Bad Request</h1> <p>Your client sent a bad request.</p> <hr/> <span style='font-size:smaller;'><?php echo \jf\WHOAMI;?></span> </body></html> <? ?>
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/view/_internal/error/501-invalid-request.php
app/view/_internal/error/501-invalid-request.php
<?php //$Request,$RequestType is usable here // this is invoked when jFramework receives an unknown request type! (like test.main) header("HTTP/1.0 501 Not Found"); ?> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>501 Not Implemented</title> </head><body> <h1>Not Implemented</h1> <p>jFramewor...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/view/_internal/error/404.php
app/view/_internal/error/404.php
<?php header("HTTP/1.1 404 Not Found"); ?> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The request resource <b><?php exho (jf::$Request) ?></b> not found.</p> <hr/> <span style='font-size:smaller;'><?php echo \jf\WHOAMI;?></span> </bod...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/view/_internal/error/test-interface-not-found.php
app/view/_internal/error/test-interface-not-found.php
<?php // $Request, $Module // you can use the constants at above ?> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>Test Not Found</title> </head><body> <h1>Test Not Found</h1> <p>The requested test does not exist: <b><?php echo $Request?></b> at <b><?php echo HttpRequest::URL()?></b></p> </body...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/view/_internal/error/service-not-found.php
app/view/_internal/error/service-not-found.php
<?php // $Request, $Service, $Params are usable // you can use the constants at above ?> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>Service Not Found</title> </head><body> <h1>Service Not Found</h1> <p>The requested service does not exist: <b><?php echo $Request?></b> at <b><?php echo HttpR...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/view/_internal/error/501.php
app/view/_internal/error/501.php
<?php // this is invoked when jframework receives an unknown request type! ) header("HTTP/1.1 501 Not Implemented"); ?> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>501 Not Implemented</title> </head><body> <h1>Not Implemented</h1> <p>The type of request is not implemented.</p> <hr/><span styl...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/config/setup.php
app/config/setup.php
<?php $setup=false; if (isset($_POST['submit'])) { $config['DBUSER']= $_POST['db_username']; $config['DBPASS']= $_POST['db_password']; $config['DBNAME']= $_POST['db_name']; $config['LOCALHOSTURL'] = $_POST['develop_url']; #TODO: check if these DB settings actually work! $configFile=__DIR__."/a...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/config/more.php
app/config/more.php
<?php #################################################################################### # add any more configuration you need for your application here, examples provided # #################################################################################### //Path to lessons directory define('LESSON_PATH', dirname(...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/config/transition.php
app/config/transition.php
<?php ##################################################################################### # Transition script. Used to make changes between versions, such as database schema # # upgrades and similar things. # ##################################################################################### $OldVers...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/config/application.php
app/config/application.php
<?php jf::import("config/setup"); //setup on first run INITIALSETUP ##################################################################### ### this is the application configuration file, please configure ### ### and customize your application before starting to use it ### ##########################################...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/config/hook/post.php
app/config/hook/post.php
<?php /** * This is the post-hook. It is run after the request is run, before the framework is about to shutdown. */
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/config/hook/pre.php
app/config/hook/pre.php
<?php /** * This is the pre-hook. It is run before the request is run, after everything is loaded. */ jf::run("config/transition"); $Stats=new StatsPlugin(); $Stats->Insert();
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/control/main.php
app/control/main.php
<?php class MainController extends JControl { function Start() { return $this->Present (); } } ?>
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/control/about.php
app/control/about.php
<?php class AboutController extends JControl { function Start() { $this->Present(); } } ?>
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/control/jform.php
app/control/jform.php
<?php class jFormController extends JControl { function Start() { $form1 = $this->CreateForm (); $form2 = new jForm (); if (isset ( $_POST )) { $form1->SetData (); print_ ( $form1->IsValid () ); } $this->Widget = $form1; return $this->Present (); } function CreateForm() { $form1 = new jForm ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/control/init.php
app/control/init.php
<?php /** * Copyright (c) 2014 Shivam Dixit <shivamd001@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * or (at your option) any later version, as published by the Free * Software Foundation * * This program ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/control/mode/contest/home.php
app/control/mode/contest/home.php
<?php class ContestHomeController extends JControl { public function Start() { $request = jf::$BaseRequest; if (jf::CurrentUser()) { // User is logged in, check if the user is authorized if (jf::Check("view_contest_chal")) { if (($activeContest = \webgoa...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/control/mode/contest/admin.php
app/control/mode/contest/admin.php
<?php class ModeContestAdmin extends JControl { public function Start() { if (jf::CurrentUser()) { if (jf::Check("contest")) { // User is authorized if (isset($_POST['contest_submit'])) { // Request to store the contest in the database ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/control/mode/contest/ajax/challenge.php
app/control/mode/contest/ajax/challenge.php
<?php class ModeContestAjaxChallenge extends JControl { public function Start() { if (jf::CurrentUser()) { if (jf::Check("contest")) { if (isset($_POST['challenge']) && isset($_POST['name']) && isset($_POST['points']) ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/control/mode/contest/user/signup.php
app/control/mode/contest/user/signup.php
<?php /** * Copyright (c) 2014 Shivam Dixit <shivamd001@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * or (at your option) any later version, as published by the Free * Software Foundation * * This program ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/control/mode/contest/user/update.php
app/control/mode/contest/user/update.php
<?php /** * Class ModeContestUserUpdate * * To be used with AJAX calls */ class ModeContestUserUpdate extends JControl { public function Start() { if (jf::CurrentUser()) { $userName = jf::$XUser->Username(); $oldPass = $_POST['old_password']; $newPass = $_POST['...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/control/mode/contest/challenges/__catch.php
app/control/mode/contest/challenges/__catch.php
<?php class ContestChallengeController extends JCatchControl { public function Handle($request) { // This gives complete request path $request = jf::$BaseRequest; if (jf::CurrentUser()) { // Check if the user has permissions to view the challenges if (jf::Check(...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/control/mode/workshop/admin.php
app/control/mode/workshop/admin.php
<?php class ModeWorkshopAdmin extends JControl { public function Start() { if (jf::CurrentUser()) { // Authorize the user if (jf::Check('workshop')) { $hiddenLessons = jf::LoadGeneralSetting("hiddenWorkshopLessons"); // If request to hide the le...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/control/mode/workshop/user/delete.php
app/control/mode/workshop/user/delete.php
<?php /** * Copyright (c) 2014 Shivam Dixit <shivamd001@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * or (at your option) any later version, as published by the Free * Software Foundation * * This program ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/control/mode/workshop/user/create.php
app/control/mode/workshop/user/create.php
<?php /** * Copyright (c) 2014 Shivam Dixit <shivamd001@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * or (at your option) any later version, as published by the Free * Software Foundation * * This program ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/control/mode/workshop/user/get.php
app/control/mode/workshop/user/get.php
<?php /** * Copyright (c) 2014 Shivam Dixit <shivamd001@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * or (at your option) any later version, as published by the Free * Software Foundation * * This program ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/control/mode/workshop/challenges/__catch.php
app/control/mode/workshop/challenges/__catch.php
<?php class WorkshopModeController extends JCatchControl { public function Handle($request) { // This gives complete request path $request = jf::$BaseRequest; //FIXME: Fix JCatchControl so that this is not required if (jf::CurrentUser()) { // If user is logged in // ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/control/mode/single/challenges/__catch.php
app/control/mode/single/challenges/__catch.php
<?php class SingleModeController extends JCatchControl { private $indentSize; public function Handle($request) { // This gives complete request path $request = jf::$BaseRequest; //FIXME: Fix JCatchControl so that this is not required if (jf::CurrentUser()) { // If user is lo...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/control/user/logout.php
app/control/user/logout.php
<?php class UserLogoutController extends JControl { public function Start() { // If user is logged in if (jf::CurrentUser()) { jf::Logout(); } if (isset($_GET["return"])) { $Return = $_GET["return"]; } else { $Return = ""; } ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/control/user/captcha.php
app/control/user/captcha.php
<?php class UserCaptchaController extends BaseControllerClass { function Start() { usleep(500*1000); $c=new CaptchaPlugin(); $c->Present($_GET['title']); } }
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/control/user/login.php
app/control/user/login.php
<?php class UserLoginController extends JControl { public function Start() { // If user is already logged in if (jf::CurrentUser()) { if (isset($_GET["return"])) { $return = $_GET["return"]; } else { $return = ""; } ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/app/control/user/create.php
app/control/user/create.php
<?php class UserCreateController extends JControl { public function __construct() { parent::__construct(); } public function Start() { if (isset($_POST['username']) && isset($_POST['password'])) { $Username = $_POST['username']; $Password = $_POST['password'...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/loader.php
_japp/loader.php
<?php $Request=null; if (isset ( $_GET ['__r'] )) //HTTP { $Request = ($_GET ['__r']); unset ( $_GET ['__r'] ); } if (isset($argc) && $argc>1) //SAPI { $Request=$argv[1]; if (strpos($Request, "?")!==false) { parse_str(substr($Request,strpos($Request,"?")+1),$_GET); //get params from CLI $Request=substr($Reques...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/plugin/i18n.php
_japp/plugin/i18n.php
<?php /** * * This class provides infrastructure for i18n alongside all appliaction outputs. * @author abiusx * @version 2.0 */ class I18nPlugin extends BaseApplicationClass { private $TranslatePreparedStatement; private $SavePreparedStatement; protected $Pivot=null; protected $Active=null; public $Lang...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/plugin/phpxml.php
_japp/plugin/phpxml.php
<?php /** @file xml.php @class XML. XML Parser class. This class changes php arrays into xml text and vice versa. */ final class XMLConvertor { //------------------------------------------------------------------- public $XSLpath; public $CSSpath; public function SetXSL($XSLPath) { $this->XSLpath=$XSLPath; ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/plugin/useragent/mobile.php
_japp/plugin/useragent/mobile.php
<?php /** * mobile UserAgent detector plugin * @version 1.2 */ class UseragentMobilePlugin { static function IsMobileUserAgent () { $UserAgent = $_SERVER['HTTP_USER_AGENT']; // get the user agent value - this should be cleaned to ensure no nefarious input gets executed $accept = $_SERVER['HTTP_ACCEPT'...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/plugin/nusoap/nusoap.php
_japp/plugin/nusoap/nusoap.php
<?php /* $Id: nusoap.php,v 1.123 2010/04/26 20:15:08 snichol Exp $ NuSOAP - Web Services Toolkit for PHP Copyright (c) 2002 NuSphere Corporation This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundati...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
true
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/plugin/view/parser.php
_japp/plugin/view/parser.php
<?php #TODO: optimize this class ViewParserPlugin extends BasePluginClass { public $Title; function GetRipTitle(&$Data) { #<title> preg_match("/<title>(.*?)<\/title>/i",$Data,$Title); if (array_key_exists(1, $Title)) { $this->Title=$Title[1]; preg_replace("/<title>(.*?)<\/title>/i","",$Data); } } ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/plugin/phpunit/loader.php
_japp/plugin/phpunit/loader.php
<?php namespace jf; class PhpunitLoaderPlugin extends Plugin { private static $Archive=null; private static function Phar() { return __DIR__ . '/phpunit.phar'; } private static function ListModules() { foreach (new \RecursiveIteratorIterator(self::$Archive) as $file) { print_($file->getPathname()); } }...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/plugin/jpki/core.php
_japp/plugin/jpki/core.php
<?php /* * Concepts: * A CSR contains a public key and a distinguished name * A key (or PrivateKey) contains a private key and a public key, generated by config args * A PublicKey contains only a PublicKey * A X509 contains whatever a CSR has + a signature provided by another X509 (or self!), * so you need the...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/model/j.php
_japp/model/j.php
<?php namespace jf; class ImportException extends \Exception{} /** * jf helper class * entry point to all jframework modules * @author abiusx * @version 4.0 */ class jf { /** * Holds the request used to init jf. mostly the same with request unless on embed mode * @var string */ static $Ba...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/model/functions.php
_japp/model/functions.php
<?php /** * * Outputs a translated version of an string * @param string $Phrase * @param optional $Lang string language * @param optional $Target desired language * @version 1.08 */ function tr($Phrase,$Lang=null,$Target=null) { echo trr($Phrase,$Lang,$Target); } /** * * Returns a translated version of an ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/model/frontcontroller.php
_japp/model/frontcontroller.php
<?php namespace jf; /** * Entry point for a jFramework Application. * This has functions for handling main application events and objects for handling framework tasks. * @version 3.0 */ class BaseFrontController { protected function GenerateRequestID() { $this->RequestID = ""; for($i = 0; $i < 10; ++ $i) ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/model/service/manager.php
_japp/model/service/manager.php
<?php //Service General Controller //sample: http://localhost/jdiary/service.diary.store?method=post&output=jsonp&input=soap&jsonp=sth&postdata=postdatafield namespace jf; /** * * Service Controller * @author abiusx * @version 3.03 */ class ServiceManager extends Model { /** * Headers outputed by Service...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/model/service/input/base.php
_japp/model/service/input/base.php
<?php abstract class BaseServiceInputFormatter { public $App; function __construct(jfBaseFrontController $App) { $this->App=$App; } abstract function Format($Data); } ?>
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/model/service/input/array.php
_japp/model/service/input/array.php
<?php class ServiceInput_array extends BaseServiceInputFormatter { function Format($Data) { return $Data; } } ?>
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/model/service/input/serialized.php
_japp/model/service/input/serialized.php
<?php class ServiceInput_serialized extends BaseServiceInputFormatter { function Format($Data) { return unserialize($Data); } } ?>
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/model/service/input/xml.php
_japp/model/service/input/xml.php
<?php class ServiceInput_xml extends BaseServiceInputFormatter { function Format($Data) { $XML=new XMLConvertor(); return $XML->xml_to_array($Data); } } ?>
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/model/service/input/json.php
_japp/model/service/input/json.php
<?php class ServiceInput_json extends BaseServiceInputFormatter { function Format($Data) { return json_decode($Data,true); } } ?>
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/model/service/input/soap.php
_japp/model/service/input/soap.php
<?php class ServiceInput_soap extends BaseServiceInputFormatter { function Format($Data) { if (!isset($Data) or $Data=="") { //Bug fix on PHP 5.2.2 ! if (!isset($HTTP_RAW_POST_DATA)) $HTTP_RAW_POST_DATA = file_get_contents('php://input'); $Data=isset($HTTP_RAW_POST_DATA)?$HTTP_RAW_POST_DATA:""; ...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/model/service/output/base.php
_japp/model/service/output/base.php
<?php abstract class BaseServiceOutputFormatter { public $App; public $Headers; //HTTP headers on this output type function __construct(jfBaseFrontController $App) { $this->App=$App; } abstract function Format($Data,$Request); } ?>
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/model/service/output/array.php
_japp/model/service/output/array.php
<?php class ServiceOutput_array extends BaseServiceOutputFormatter { function Format($Data,$Request) { return $Data; } } ?>
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/model/service/output/serialized.php
_japp/model/service/output/serialized.php
<?php class ServiceOutput_serialized extends BaseServiceOutputFormatter { function Format($Data,$Request) { $Result=serialize($Data); return $Result; } } ?>
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/model/service/output/jsonp.php
_japp/model/service/output/jsonp.php
<?php class ServiceOutput_jsonp extends BaseServiceOutputFormatter { function Format($Data,$Request) { $Result=json_encode($Data); if (!isset($Request['jsonp'])) { //JSONP callback not set error $JSONP="callback"; return "alert('jFramework Service Error: JSONP call without JSONP callback parameter set...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/model/service/output/xml.php
_japp/model/service/output/xml.php
<?php class ServiceOutput_xml extends BaseServiceOutputFormatter { function Format($Data,$Request) { $XML=new XMLConvertor(); $Result=$XML->array_to_xml($Data); $this->Headers=array("content-type"=>"text/xml"); return $Result; } } ?>
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/model/service/output/json.php
_japp/model/service/output/json.php
<?php class ServiceOutput_json extends BaseServiceOutputFormatter { function Format($Data,$Request) { $Result=json_encode($Data); $this->Headers=array("content-type"=>"text/javascript"); return $Result; } } ?>
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/model/service/output/soap.php
_japp/model/service/output/soap.php
<?php class ServiceOutput_soap extends BaseServiceOutputFormatter { function Format($Data,$Request) { if (!isset($this->App->SOAPserver)) { $this->App->LoadSystemModule("plugin.nusoap.nusoap"); $this->App->SOAPserver=new soap_server(); } $this->App->SOAPserver->methodreturn=$Data; $this->App->SO...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/model/launcher/base.php
_japp/model/launcher/base.php
<?php namespace jf; class BaseLauncher extends Model { protected $Result=null; function Result() { return $this->Result; } }
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/model/launcher/file.php
_japp/model/launcher/file.php
<?php namespace jf; /** * File launcher. Gets a request (of type file) and feeds the file * @author abiusx * @version 1.0 */ class FileLauncher extends BaseLauncher { public static $StaticContentPrefix = array ("img" => "images", "images"=>"images", "image"=>"images", "files"=>"files", "file" => "files", "scrip...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/model/launcher/test.php
_japp/model/launcher/test.php
<?php namespace jf; /** * Test launcher. Gets a test request and runs an automated test * works with PHPUnit * @author abiusx * @version 1.0 */ class TestLauncher extends BaseLauncher { function __construct($Request) { $this->Request=$Request; if (!$this->Launch()) jf::run ( "view/_internal/error/404...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/model/launcher/application.php
_japp/model/launcher/application.php
<?php namespace jf; /** * Application launcher. Gets a request (of type application) and runs the corresponding controller. * @author abiusx * @version 1.01 */ class ApplicationLauncher extends BaseLauncher { protected $Request=null; function __construct($Request) { $this->Request=$Request; $this->Result=$t...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/model/launcher/system.php
_japp/model/launcher/system.php
<?php namespace jf; /** * Application launcher. Gets a request (of type application) and runs the corresponding controller. * @author abiusx * @version 1.0 */ class SystemLauncher extends ApplicationLauncher { /** * Launches a system (admin interface) controller. Returns what the controller returns. * If it is...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/model/base/view.php
_japp/model/base/view.php
<?php namespace jf; class View extends Model { static $IterativeTemplates=true; static $TemplateFolder="_template"; /** * Presents a template file, e.g _template/head or _template/foot * @param string $ViewModule * @param string $Template name * @return boolean */ private function PresentTemplate($ViewMo...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/model/base/model.php
_japp/model/base/model.php
<?php namespace jf; abstract class Model { protected function TablePrefix() { return DatabaseManager::Configuration()->TablePrefix; } protected function ModuleFile($Module=null) { if ($Module===null) $Module=$this->ModuleName(); return jf::moduleFile($Module); } /** * returns module name for this o...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/model/base/service.php
_japp/model/base/service.php
<?php namespace jf; abstract class Service { abstract function Execute($Params); } ?>
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/model/base/test.php
_japp/model/base/test.php
<?php namespace jf; abstract class Test extends \PHPUnit_Framework_TestCase { function __construct() { parent::__construct(); } /** * Adds another module to the test suite * @param string $TestModule */ function add($TestModule) { $file=jf::moduleFile($TestModule);; if (!in_array($file, TestLauncher::$...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/model/base/control.php
_japp/model/base/control.php
<?php namespace jf; /** * Base controller class for jframework * @author abiusx * @version 4.0 */ abstract class Controller extends Model { static $AutoPresent=true; static $IterativeCatchController=true; public static $CatchControllerFile="__catch"; static $DefaultView="default"; /** * View Module * *...
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false
OWASP/OWASPWebGoatPHP
https://github.com/OWASP/OWASPWebGoatPHP/blob/b54f87daf476d4d80493e9d1d55cf48d119c09b3/_japp/model/base/plugin.php
_japp/model/base/plugin.php
<?php namespace jf; abstract class Plugin extends Model { } ?>
php
Apache-2.0
b54f87daf476d4d80493e9d1d55cf48d119c09b3
2026-01-05T04:19:20.157253Z
false