Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when calling Komponent:pnh --> Aktion: Monitor #1845

Open
jengra opened this issue Aug 20, 2015 · 2 comments
Open

Error when calling Komponent:pnh --> Aktion: Monitor #1845

jengra opened this issue Aug 20, 2015 · 2 comments

Comments

@jengra
Copy link

jengra commented Aug 20, 2015

Steps to reproduce the issue:

  1. Run ZAP;
  2. Access the following URL while proxying through ZAP:

http://zap/JSON/pnh/action/monitor/?zapapiformat=JSON&id=1&message=testing

Logfile:
2015-08-20 15:33:34,490 [ZAP-ProxyThread-404] ERROR ZAP$UncaughtExceptionLogger - Exception in thread "ZAP-ProxyThread-404"
net.sf.json.JSONException: A JSONObject text must begin with '{' at character 1 of 1
at net.sf.json.util.JSONTokener.syntaxError(JSONTokener.java:499)
at net.sf.json.JSONObject._fromJSONTokener(JSONObject.java:972)
at net.sf.json.JSONObject._fromString(JSONObject.java:1201)
at net.sf.json.JSONObject.fromObject(JSONObject.java:165)
at net.sf.json.JSONObject.fromObject(JSONObject.java:134)
at org.zaproxy.zap.extension.plugnhack.PlugNHackAPI.handleApiAction(PlugNHackAPI.java:106)
at org.zaproxy.zap.extension.api.API.handleApiRequest(Unknown Source)
at org.parosproxy.paros.core.proxy.ProxyThread.processHttp(Unknown Source)
at org.parosproxy.paros.core.proxy.ProxyThread.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

@kingthorin
Copy link
Member

This is easy to recreate. It's unclear what the "message" param is supposed to be?

@thc202
Copy link
Member

thc202 commented May 21, 2018

I don't think it needs to be clear this is an "internal" endpoint (but one can check it in pnh_probe.js), we just need to fix the exception handling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants