summaryrefslogtreecommitdiff
path: root/informationals/teso-i0015.txt
diff options
context:
space:
mode:
Diffstat (limited to 'informationals/teso-i0015.txt')
-rw-r--r--informationals/teso-i0015.txt45
1 files changed, 45 insertions, 0 deletions
diff --git a/informationals/teso-i0015.txt b/informationals/teso-i0015.txt
new file mode 100644
index 0000000..e3ed9d9
--- /dev/null
+++ b/informationals/teso-i0015.txt
@@ -0,0 +1,45 @@
10015 2000/02/19 Possible security weakness in implementation of PHP3 scripts
2
3==== TESO Informational =======================================================
4This piece of information is to be kept confidential.
5===============================================================================
6
7Description ..........: set values for PHP variables from URL handler
8Date .................: 2000/01/19 00:01
9Author ...............: hendy
10Publicity level ......: unknown?
11Affected .............: PHP3 scripting engine, possibly other scripting
12 languages
13Type of entity .......: PHP(3)
14Severity/Importance ..: low
15Found by .............: hendy
16
17Information ===================================================================
18
19In PHP it is possible to supply 'external' variables via HTTP POST or GET
20methods which is useful for html-forms or something. the weakness in this
21implementation is that anybody can easily set values for variables.
22for example you can request
23
24http://teso.scene.at/index.php3?foo=bar
25
26within the PHP script index.php3 there will be the variable $foo with value
27bar. this should be no real problem, because usually coders initialize
28variables in the program if they first use it. but there are some exceptions
29where (lazy?) coders often do
30
31while(bleh)
32{
33 $foo = $foo . $bar;
34 ...
35}
36
37so you could insert code into the variable $foo now. such loops are for example
38used for dynamically making mysql query code, you can insert your own code
39then, exploiting the backend database.
40
41there is one point which is still very difficult: whats the name of the
42variable(s) used, and for what. i dont have a solution for that, sorry. brute
43force and a bit brain is the best solution IMHO ;)
44
45===============================================================================